A percentage discount can produce different totals depending on when fractions of a cent are rounded. Small differences become easier to see when customers buy many inexpensive units.
Compare the calculation methods
These USD examples illustrate rounding the discounted unit price to cents before multiplying, compared with rounding once on the subtotal. They are diagnostic examples, not a guarantee that every Shopify discount follows the same calculation path.
| Cart | Rounded unit price × quantity | Rounded discounted subtotal |
|---|---|---|
| 6 × $2.99, 10% off | $2.69 × 6 = $16.14 | $17.94 × 90% = $16.15 |
| 24 × $2.99, 20% off | $2.39 × 24 = $57.36 | $71.76 × 80% = $57.41 |
Rounding the discount amount instead of the remaining price can produce another result. Record the actual discount allocation and checkout total before diagnosing the cause. The community rounding discussion reports different totals for these carts; its reported totals should not be treated as a universal rounding formula.
Choose the scope of the offer
Shopify provides separate Amount off products and Amount off orders discounts. Product discounts can target selected products or collections. See Shopify's amount off discount documentation for setup and minimum-purchase rules.
If your offer means a percentage off an eligible subtotal, evaluate an order discount. If some products must remain full price, confirm that the chosen implementation supports those exclusions at order level.
Configure a targeted order discount in Cart Marshal
- Create a Product / Order Discount rule and select order-level targeting.
- Set the percentage and choose automatic or code-based application.
- Configure the eligible products and exclusions for the offer.
- Review customer eligibility, purchase requirements, and discount combinations.
- Save a draft and compare checkout results against your intended eligible-subtotal calculation before publishing.
See the Product and Order Discount Guide for supported configuration. Changing a percentage offer to a fixed amount per item still requires checking the quantity calculation.
Test the totals customers will see
Use quantities of 1, 6, and 24, then repeat with a mixed cart containing an excluded product. Record the eligible subtotal, total discount, and final merchandise total separately from tax and shipping. Test each selling currency and any discount combinations your campaign allows.
Use the same calculation basis in promotional copy and customer support explanations. If checkout differs from the intended result, keep the rule unpublished and contact support with the cart, currency, rule settings, and observed allocations.