How to Calculate WooCommerce Shipping Cost Based on Quantity?

By Nimesh Patel 8 min Read

Table of Contents

    Shipping costs for online items may vary depending on various factors. The distance of the recipient’s city from the seller’s location, the weight of the product(s), nature of the product(s), the quantity of purchase, cost of purchased item(s), medium of delivery, and dozens of other factors can play a decisive role in the finalization of shipping costs.

    Out of all these parameters, quantity-based shipping cost calculation is used in many cases.

    In this post, we shall take a look at –

    • Who can and should calculate quantity-based shipping costs for WooCommerce?
    • How to enable WooCommerce store to accept quantity-based shipping fees?
    • How to calculate WooCommerce shipping cost based on quantity?
    • Some Example Use Cases

    Who Should Calculate WooCommerce Shipping Costs based on Quantity?

    If you are selling pricey products that need to be shipped to multiple locations, belonging to multiple countries, it can be better to pick the location as the main decisive factor for shipping cost calculation. However, this is not possible for all types of businesses.

    Similarly, the calculation of shipping cost as per quantity in WooCommerce is not suitable for all business models but can be very important for other ventures. In this section, we will figure out if calculating quantity-based shipping fees is a feasible option for your business.

    To do so, you need to answer a few questions first –

    • Are the products being sold through your online store bulky?
    • Does the expenditure of delivery for a few or all products depend on their weight?
    • Do your buyers order multiple products at once, resulting in a heavy cart?
    • Do you want to give shipping discounts to the buyers when they buy a lot of things from your shop, in order to reward them?

    If you answered ‘yes’ to any question or are thinking to deploy something similar to this to your online store, you need to set up WooCommerce quantity-based shipping. Hence, let us take a look at how you can enable quantity-based fee calculation for WooCommerce.

    Advanced Flat Rate Shipping Methods

    Boost your WooCommerce store’s revenue with flexible shipping options. Your business deserves the best!

    14-day, no-questions-asked money-back guarantee.

    Advanced Flat rate shipping Banner 3 1

    Enabling Quantity-based Shipping Fee Calculation For WooCommerce

    You need not develop custom solutions for implementing this feature on your store, as we have a ready plugin that can help you – The Advanced Flat Rate Shipping Plugin for WooCommerce.

    Along with allowing you to configure quantity-based shipping fee methods, this plugin also enables your eCommerce shop to charge shipping based on locations, products, categories, tags, color, size, shipping method, user, user role, order cost, product cost, cart subtotal before discount and many other parameters.

    Not just that, you may also create conditional rules and charge a shipping fee as per multiple conditions using this plugin. Or, eCommerce stores can create multiple separate shipping rules for different conditions.

    How To Calculate Shipping Cost Per Quantity In Woocommerce?

    Step 1: Go to the Plugin Dashboard

    Go to the plugin dashboard. To do so (for your WooCommerce shop), you will have to click on the name of the plugin – the link listed in the left side of your admin dashboard.

    Figure 2: The link to use 'Advanced Flat Rate for WooCommerce Pro'
    Figure 2: The link to use ‘Advanced Flat Rate for WooCommerce Pro’

    Step 2: Add Shipping Method

    Click on the ‘Add Shipping Method’ button.

    This button will send you to another page, where you can add a shipping method to charge the shipping fee as per quantity.

    Step 3: Configure Your Shipping Method

    This page has two sections and many options. These 2 sections are, namely, shipping method configuration details and conditional shipping method rules list. Just below this, there is another option to add advanced rules for your shipping method.

    In the shipping method configuration part, you will have to add the basic details, such as shipping method name, shipping method title that your buyers will see, the cost of shipping for the method you’ve created, delivery date, delivery time, and so on.

    flat-rate-shipping-settings-23
    Figure 4: Shipping method Configuration & fields to fill in this section

    In the basic conditional rules section, you may create multiple logical conditions, for which, your method’s fee will be applicable. These conditions can be based on location, product, category, tag, color, size, shipping class, shipping method, cart subtotal, and various such factors. There is no limit on the number of conditional rules you can add to a shipping method rule.

    Create multiple shipping method rules
    Figure 5: Section through which you can add multiple shipping method rules

    To add advanced rules to your shipping method rule, you will have to enable the respective feature through the toggle button.

    Once enabled, a multi-tab section will appear. It is for creating table-rate shipping rules. In case you do not know, table rate shipping is the way to create shipping fee tables and apply different shipping rates for different ranges for a parameter. This helps in the faster deployment of various shipping rate-related rules for your cart.

    flat-rate-shipping-settings-24
    Figure 6: Section through which you can add multiple advanced shipping price rules

    As you can see here, you can figure out the names of the parameters for which table-rate shipping prices can be specified. You may add the minimum quantity and maximum quantity for a parameter and define the shipping fee for it.

    Some Example Use Cases

    Calculating shipping cost per quantity is a common requirement when it comes to eCommerce stores. The businesses selling heavy items of similar types generally need to do so. The best way to explain the process for the same is through examples. So, here, we have considered that a cake baking online shop needs to use it. 

    Here is how it will be configured for different cases –

    • Setting Shipping Cost Per Item

    Let’s say that you want to charge $2 as a shipping fee for each cake you sell. For this, the process is simple.

    First, create a shipping method rule and add basic details. Now, specify the shipping fee and fill in the other needed details.

    Now, go to the ‘Shipping Method Rules’ section and add a rule that says ‘cart contains product’ equals to ‘Cake’. You may add any number of products to the box in the right-hand side field.

    flat-rate-shipping-settings-25
    Figure 7: Use-case – Setting Shipping Cost per item

    Save and exit.

    This condition, applied to the cart, will make sure that whenever your buyer’s cart will have ‘cake’ as an item, it will be charged with a $2 shipping fee.

    Setting Shipping Cost For Bulk Orders – Varying Shipping Cost With Increasing Items

    In the previous use case, if you will have to send 10 cakes to one buyer, the cart will have $20 as a shipping charge. In bulk orders, sellers generally want to give discounts, and customers expect the same. Here is how you can do it –

    • As in the previous step, you will have to create a shipping method rule, and enter basic details.
    • Once it is done, come to the shipping charge field. Do you notice the ‘Apply per quantity’ option there? Tick the checkbox in front of it. Thereafter, you will have a new section with few more options available in front of you.
    Figure 8: Shipping Charge - Apply per quantity
    Figure 8: Shipping Charge – Apply per quantity
    • In the ‘Calculate Quantity Based On’ drop-down, we need to choose ‘product based’ as the value, because we want this setting to work for cakes only.
    • Next, specify the value of money (in Euro) to add per new item.
    • Now, creating the ‘shipping method rules’ through the section dedicated to it, is your next task. So, in this section, add a rule related to the product i.e. cake, just as we did in the previous case.
    • Save and exit the settings.

    In this case, if a person orders one cake, the shipping cost will be $2. For two cakes, it will be $2 + $0.1 i.e. %2.1. Similarly, for 10 cakes, the shipping fee will be $2.9. Naturally, you can set the fee as per your needs, but this arrangement makes more sense.

    • Table Rate Shipping Cost Per Quantity

    While our two use cases will help you add quantity-based shipping fee calculation rules for a few conditions, there are many times when you want to add a whole chart i.e. a price table for the shipping cost. That can also be done using the Advanced Flat Rate Shipping Plugin.

    For this, you will have to enable Advanced Shipping Rules and go to the ‘cost on total cart quantity’ tab. In this tab, you may specify the minimum cart quantity, maximum cart quantity, and the fee amount for the range you have just specified.

    flat-rate-shipping-settings-26
    Figure 9: Table Rate Shipping Cost per Quantity in WooCommerce

    If you want this setting to work for a particular product or a particular condition, you may add those conditions in the basic rules section. We’ve already told you how to do it. So, try the plugin with your eCommerce store and leverage its potential.

    Such small functionalities can increase your sales and customer satisfaction level to a great extent. Hence, do not miss out on adding these important arrangements for your buyers. It will give you an edge over your competitors and will help increase the brand factor of your online shop.

    The Final Word

    Quantity is a very important parameter when it comes to deciding shipping costs. Store owners prefer to give discounts on shipping, as per the number of products or items present in customers’ carts. 

    The Advanced Flat Rate Shipping plugin for WooCommerce can help you easily integrate quantity-based shipping fee-related functionality for your online shop and increase your average order value for the store.

    Have queries regarding how to calculate shipping cost per quantity in WooCommerce? Drop a comment to let us know. Our WooExperts will be in touch with you soon!

    Advanced Flat Rate Shipping Methods

    Boost your WooCommerce store’s revenue with flexible shipping options. Your business deserves the best!

    14-day, no-questions-asked money-back guarantee.

    Advanced Flat rate shipping Banner 3
    Author Image

    Nimesh Patel

    Nimesh Patel is the Product Manager and Growth Hacker at Dotstore. For the past 10 years, Nimesh has been a prolific marketer and product builder in the WordPress and e-commerce industry.

    🚚 Simplify Your Shipping Costs and Maximize Revenue

    Try the plugin 100% risk free!

    Blog Sidebar Banner Image
    0 Shares facebook twitter linkedin
    Author Pic

    Written by Nimesh Patel

    I am a Product Marketer and Growth hacker with expertise in Digital marketing, Search engine optimization (SEO), Email Marketing, Paid Campaigns on Facebook and Twitter, Content development strategies, and Competitive Research & Analysis. Nimesh is Product Manager at theDotstore.com