Ship Certain Items with FedEx and Provide Flat-Rate Shipping for others using WooCommerce Shipping Plugin for FedEx with Print Label
In this article, you will learn how to display FedEx real-time shipping rate at a cart page for most of the products. While offering a flat rate for some of the products. We will discuss a unique business case. In which store owners want to hide the shipping rate for certain shipping class.
Understanding the Business Case:
Showing real-time shipping rates at a cart page
Print shipping label within WooCommerce
Enable tracking, and more
To understand this use case, let’s check out a query from one of our customers. Hope it will help you get an idea of it.
We will be using FedEx for shipping most of our product. but there are a couple of small products, such as small stickers that we would like to ship in a regular envelope. For these small products, we will charge a flat rate. How can I achieve this?
In the above case, the user wants to show flat rate when the small product (in this case “sticker” ) is at cart page. For all other conditions, they want to show real-time FedEx rates at a cart/checkout page. So for the above case, we will have three conditions:
|si no||Conditions||Required rates at a cart page|
|1||Only small products are added to the cart||Flat- Rate|
|2||Regular products ordered without a small product||FedEx real-time rates|
|3||Small and regular products ordered together||FedEx real-time rates|
Solution Using WooCommerce Shipping Plugin for FedEx with Print Label
You can solve the above cases by using WooCommerce Shipping Plugin for FedEx with Print Label. The first step would involve adding two shipping class. One for small items and others for the rest of the products.
For this case, we will display shipping rates from UPS when you add the regular product to a cart page. But when customers add the only small product to a cart page. we will hide the shipping rate from UPS using Hide shipping method add-on. Let us try to understand this feature with this simple example.
Now go to Manage Shipping Methods and add two shipping Rate Option. One to hide flat-rate for small items and hide FedEx shipping method for Small items. Also, enable Break on the first occurrence. You can refer to the image below:
You can watch this video to learn how to hide the shipping method at a cart page based on shipping class.
Now let us place test orders and check our cart page for the different cases. For testing, I have added “Bjorn Tee SS Jack & Jones” as the regular item and “CAP” as a small item in shipping class.
1st case: Add only small item to the cart
2nd case: Add only regular item to the cart
3rd case: Add both regular and small product together
We hope this short guide will help you display FedEx shipping rates based on the shipping class. Also, hide the shipping methods based on shipping class in some cases.
If you have any doubts or need help setting up FedEx shipping on your WooCommerce-based website then feel free to Contact PluginHive Customer Support.