WooCommerce UPS Rates & Free Shipping Based on the Product Category

In this article, we will be discussing the WooCommerce UPS Shipping plugin and how using that plugin you can easily provide UPS shipping options based on one shipping class and Free Shipping to others.

WooCommerce store owners may offer their customers more than one shipping option based on demand, shipping cost, and many other factors. However, handling the same scenario in WooCommerce is a pretty difficult task.

According to Matt, a WooCommerce store owner, “Hello, I have a query regarding the WooCommerce UPS shipping plugin. Is there any way I can provide shipping options based on a shipping class? I don’t need the UPS rates for all products. Only one product category needs UPS rates. I have 2 shipping options,

1) Free Class These are assigned to all Free shipping products
2) UPS Class These are assigned to all products I ship via UPS.

I need UPS shipping on all products excluding chairs which will be free. Is this possible with this plugin? Thanks!


Hide UPS Shipping options

Since Matt is providing UPS shipping as well as Free Shipping, it is necessary that these shipping options don’t get mixed with each other. Hence, in order to do that, we will be using the WooCommerce UPS Shipping plugin with Hide WooCommerce Shipping Methods and Rate Adjustment plugin, Matt can easily show the dedicated shipping options based on his shipping classes. This way he can get the UPS shipping options for the shipping class UPS and Free Shipping for the Free shipping class.


Skipping Free Shipped Products

Based on Matt’s scenario, one thing is sure in his case, in case there are two products in the cart from both the shipping classes – UPS and Free,  there should be no extra shipping charges for the product which is under the Free shipping class. Matt can easily achieve this using the code snippet from this link. Using this code, whenever there are products with both shipping classes available in the cart, all the products from the Free shipping class will be skipped from the UPS shipping calculation.

In other words, the shipping rates will be calculated for the products which are in the UPS shipping class. This way Matt will be able to achieve his complex-looking shipping scenario.


Summary…

So this article covers the WooCommerce UPS Shipping plugin. With the help of this article, you will be able to handle a shipping scenario when the store owner wants to show shipping rates based on a particular category of products. With the help of this article, you will be able to setup UPS Shipping Rates along with free shipping on your WooCommerce store.