How to calculate the product quantity range based WooCommerce shipping method

A product quantity range shipping method allows you to charge shipping fees based on the number of items added from selected products in the cart. For example:

  • 1–3 items of belt → $5 shipping
  • 4–6 items of belt → $10 shipping
  • 7+ items of belt → Free shipping

This setup is easy to achieve with the Flat Rate Shipping Plugin for WooCommerce.

Why use product quantity range-based shipping?

  • Fair pricing: Ensure customers pay according to the number of items they order.
  • Encourage bigger orders: Offer discounts or free shipping when cart quantities increase.
  • Profit protection: Cover shipping costs for heavy or bulk orders.
  • Flexibility: Different ranges can apply to different products or categories.

Configuration steps

1. Add a new shipping method

  • Go to Dashboard → Dotstore → Flat Rate Shipping (Dotstore).
  • Click Add New Shipping Method.
  • Give it a descriptive name, like “Product Range Shipping”.

    configure the product range shipping method

2. Create quantity range rules

  • Open the shipping method and go to the Shipping Rules tab.
  • Click Add New Rule.
  • From the Condition dropdown, select Quantity.
  • Enter a range (e.g., 1–3, 4–6, 7–10).

    product range shipping method rules settings

3. Save and test

  • Click Save Changes.
  • Go to your store and add products to the cart.
  • The shipping fee should update automatically based on the total quantity.

    product range based shipping method


Two real examples

Example 1: Small items with increasing fee

  • Rule:
    • 1–3 items → $5 shipping
    • 4–6 items → $10 shipping
    • 7+ items → $15 shipping

      Scenario: Customer buys 5 books.

      Checkout result:

    • Subtotal: $75
    • Shipping: $10
    • Total = $85

Example 2: Bulk promotion with free shipping

  • Rule:
    • 1–5 items → $7 shipping
    • 6–10 items → $12 shipping
    • 11+ items → Free shipping

      Scenario: Customer buys 12 T-shirts.

      Checkout result:

    • Subtotal: $300
    • Shipping: Free
    • Total = $300

Expected outcome

Once configured, WooCommerce will automatically calculate shipping charges based on the quantity range you define. This provides you with complete flexibility to reward bulk buyers, protect your profit margins, and maintain transparent shipping costs for your customers.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.