Skip to main content

Discount Rounding

Admin

Discount rounding controls whether percentage-based discounts are rounded to the nearest whole dollar instead of keeping cents. Rounding simplifies the numbers displayed on receipts and on the POS screen, which many stores prefer for a cleaner customer-facing experience.

Feature flags required

Each rounding option is an independent toggle. All four are off by default. Enable any combination under Settings > Edit Settings > Products tab, in the Product Features section.


The Four Rounding Options

Round Campaign Discounts

Setting: Enable Discount Rounding

When enabled, sale campaigns can optionally round their calculated discount to the nearest whole dollar. This is a per-campaign opt-in — a separate toggle appears on each campaign's form when this store-level flag is on.

Example: 15% off a $33.00 item = $4.95 raw discount → rounds to $5.00.

Round Loyalty Tier Discounts

Setting: Round Loyalty Tier Discounts

When enabled, all automatic loyalty tier percentage discounts are rounded to the nearest whole dollar.

Example: A Gold tier customer with 10% off buys a $33.00 item. Raw discount = $3.30 → rounds to $3.00.

This applies to the loyalty tier discount line calculated in the cart for customers assigned to a loyalty tier.

Round Tier Consolidation Savings

Setting: Round Tier Consolidation Savings

When enabled, the savings amount from quality tier consolidation (combining multiple weight-based items into a bulk price) is rounded to the nearest whole dollar.

Example: Two 3.5g items consolidate into a 7g bulk price, generating $0.50 in savings → rounds to $1.00 (minimum $1.00 threshold still applies).

This only applies to stores using quality tier pricing (use_quality_tiers enabled) with tier consolidation active.

Round Manual Discounts

Setting: Round Manual Discounts

When enabled, any percentage-based manual discount applied by a cashier — either at the line item level or the order level — is rounded to the nearest whole dollar.

Example: A cashier applies a 10% manual discount to a $33.00 order. Raw discount = $3.30 → rounds to $3.00.

Dollar-amount manual discounts are not affected; rounding only applies to percentage-based manual discounts.


How Rounding Works

All rounding uses standard .round(0) (round half up to nearest integer). The raw calculated discount is computed first, then rounded before being applied to the cart total. Each discount type is rounded independently — enabling one option does not affect any other.

Discount TypeWhere CalculatedRounding Method
Campaign discountCartCalculatorraw_discount.round(0)
Loyalty tier discountCartCalculatorraw_loyalty.round(0)
Tier consolidation savingsCartCalculatorraw_savings.round(0)
Manual line item / order discountCartCalculatorraw_discount.round(0)

Enabling Discount Rounding

  1. Log in to the Admin Panel.
  2. Navigate to Settings > Edit Settings.
  3. Click the Products tab.
  4. Scroll to the Product Features section.
  5. Check any combination of the four rounding toggles.
  6. Click Save Settings.

Changes take effect immediately on the next cart calculation.


Notes

  • Rounding can increase or decrease the discount amount depending on the raw value. For example, 10% off $33 rounds down ($3.30 → $3.00), while 15% off $33 rounds up ($4.95 → $5.00).
  • The Round Campaign Discounts flag only unlocks the per-campaign toggle — it does not automatically round all campaigns. Each campaign must individually opt in via the campaign form.
  • These flags are independent of the tax calculation, which always uses two decimal places.