Skip to main content

Cart & Pricing Strategies

These examples show how to calculate shipping based on cart totals, weight thresholds, and quantity-based adjustments. Copy any template below and adapt it to your needs.

Default Rate Lab function

  • Calculates a base price from cart weight.
  • Adds a surcharge for “abkayak” SKUs to cover oversize handling.

Percentage of cart subtotal

  • Charges 12% of the cart subtotal.
  • Uses guardrails to enforce a minimum and maximum shipping charge.

Weight and spend combined

  • Starts with a flat fee, increases for heavier orders, and offers free shipping for high-value US orders.

First item plus incremental extras

  • Counts only shippable items.
  • Adds $2.50 for every additional unit beyond the first.
Looking for more specialized rules? Continue to Vendor-Based Logic.