Ship Certain Items with FedEx and Provide Flat-Rate Shipping for others with WooCommerce FedEx Shipping Plugin

In this article, you will learn how to display FedEx’s 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 classes.


Understanding the Business Case:

WooCommerce Shipping Plugin for FedEx with Print Label is one of the best shipping plugins. This plugin helps in automating the shipping by
  • Showing real-time shipping rates on 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 a flat rate when the small product (in this case “sticker” ) is on the cart page. For all other conditions, they want to show real-time FedEx rates on a cart/checkout page. So for the above case, we will have three conditions:

si noConditionsRequired rates at a cart page
1Only small products are added to the cartFlat- Rate
2Regular products ordered without a small productFedEx real-time rates
3Small and regular products ordered togetherFedEx 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.


Adding shipping class

To hide shipping rates at a cart page you need to have a Hide Shipping Methods Plugin.

For this case, we will display shipping rates from FedEx when you add the regular product to a cart. But when customers add only small products to a cart. we will hide the shipping rates from FedEx using the Hide WooCommerce shipping methods plugin. Let us try to understand this feature with this simple example.

Now go to Manage Shipping Methods and add two shipping Rate Options. One to hide flat-rate for regular products and hide FedEx shipping method for Small items. Also, enable Break on the first occurrence. You can refer to the image below:


Hiding shipping methods

You can watch this video to learn how to hide the shipping method on 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 the shipping class.


1st case: Add only a small item to the cart

Case1: for shipping small items

2nd case: Add only regular items to the cart

case 2 for shipping regular items

3rd case: Add both regular and small products together

Case 3 for shipping both regular and small items together

Conclusion

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.

Happy selling!