KARTiT compare-at 5% logic demo
Hardcoded cents via the reusable kartit-show-compare-at snippet (same rule as storefront). No product data changed.
| Selling | Compare-at | Threshold (×1.05) | Rendered price | Expected | Result |
|---|---|---|---|---|---|
| $100.00 | $110.00 | $105.00 |
$100.00
|
SHOW | ✓ SHOW |
| $100.00 | $105.00 | $105.00 |
$100.00
|
SHOW | ✓ SHOW |
| $100.00 | $104.00 | $105.00 | $100.00 | ✓ HIDE | |
| $100.00 | $102.00 | $105.00 | $100.00 | ✓ HIDE | |
| $100.00 | $100.00 | $105.00 | $100.00 | ✓ HIDE | |
| $100.00 | $95.00 | $105.00 | $100.00 | ✓ HIDE |
Rule: compare-at displays only when compare_at ≥ selling × 1.05 (integer cents: price | times: 105 | divided_by: 100). Draft theme: KARTiT Compare-at 5% (draft).
