Cart Specific Shipping Rule

About this rule

Cart-specific rules let you charge shipping based on what’s in the cart and how it qualifies. Use these rules to keep charges fair, simple, and predictable.

Available parameters

  • Cart subtotal (before discount)
  • Cart subtotal (after discount)
  • Quantity (total items in cart)
  • Weight (lb or kg)
  • Coupon
  • Shipping class
  • Product-specific subtotal (subtotal of selected products or categories in the cart)

Tip: Set the correct weight unit in WooCommerce → Settings → Products → Measurements. Use lb or kg to match your catalog.


How it works (with quick examples)

1) Cart subtotal before discount

Applies the rule based on the cart total before any coupon or discount.

Example: If the subtotal before discount is ≥ $500, charge $10 shipping. Otherwise, charge $20.

2) Cart subtotal after discount

Applies the rule based on the cart total after discounts.

Example: If the subtotal after discount is≥ $300, charge $5 shipping. Otherwise $12.

3) Quantity (total items)

Targets carts by the number of items.

Example: If total items ≥ 6, charge $15; otherwise $8.

To target a specific product type or category by quantity, combine this with a Category or Product condition.

4) Weight

Prices are calculated based on the total cart weight.

Example: If cart weight ≤ 5 lb (≈ 2.27 kg), charge $9; if > 5 lb, charge $19.

This is useful for air or freight shipments where weight drives cost.

5) Coupon

Shows a special rate only when a matching coupon is applied.

Example: With coupon SHIP10, show Flat rate: $10. Without the coupon, show your normal rate.

6) Shipping class

Charges are based on the shipping class of items in the cart.

Example: If the cart contains items with class Bulky, charge $18; otherwise $9.

7) Product-specific subtotal

Targets the subtotal of selected products or categories inside the cart.

Example: If Electronics subtotal ≥ $200, charge $4; otherwise $11.

Great for running category-only promotions without affecting the whole cart.

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