Add items
Live cart
Discount breakdown
What the customer bought
After change / cancellation
Discount rules & product catalog
These mirror the live Shopify Flow rules. Edit if Shopify changes; defaults can be restored anytime.
Shopify sync log
Every order whose recompute disagreed with what Shopify actually charged lands here β from staff fetches AND the daily auto-audit (every morning, all orders from the last 7 days). An open entry means a discount/shipping rule has drifted from the live store β review it with Claude, update the rules, and it auto-resolves when the numbers match again.
How the discount engine works
Why this tool exists
Shopify collapses Neodrift's per-product discount logic into a single Custom Discount line item. Sleek Invoice then flat-distributes that single discount across all products. When an order is modified β cancellation, swap, partial refund β the team can't simply subtract Sleek's line amount, because the cancelled item carried a different share of discount than the flat average.
The Calculator tab replays Shopify Flow as a cart simulator (build a cart β see what the customer would actually pay). The Order modification tab is the original use case (original vs. modified, refund delta).
The discount model
The engine has two branches and a freebie pass:
Branch A β Manual code (NEOCOMSECRET / NEOSAVE / NEOSPECIAL)
If the customer enters one of these codes (and cart β₯ βΉ1,000), 7% comes off the whole subtotal and it replaces the cart-level discounts β no tier, no Crazy Deal. The prepaid 5% / βΉ250 offer still applies when paying prepaid (it's a payment-page discount, computed on the post-code amount). These codes are stack-type NONE.
Branch B β Auto-stack (default)
- Crazy Deals β if subtotal β₯ βΉ3,000, matching SKUs get fixed % off (Travel Pillow 50%, Tramp 24%, β¦).
- Cart tier (AUTOFEST family) β the band is picked on the subtotal of items NOT in a Crazy Deal (βΉ1kβ2.5k: 6%, βΉ2.5kβ5k: 7%, βΉ5kβ8.5k: 8%, β₯βΉ8.5k: 10%), and the % applies to those same items.
- Prepaid offer β if payment method is UPI / Card / Wallet / Net Banking, 5% of (subtotal β Crazy β tier), capped at βΉ250. COD doesn't qualify.
Step 4 β Freebies (both branches)
If a qualifying SKU is in cart (e.g. JungleMax / CrystalMax bike cover), the freebie line item (microfiber) is auto-appended at βΉ0. It doesn't count toward subtotal, so it can't push the cart into a higher tier.
Step 5 β COD charge & shipping (mirrors Shopflo + Shopify delivery profiles)
COD fee varies by cart value β βΉ50 under βΉ2,000, βΉ100 from βΉ2,000ββΉ30,000 β and is unavailable above βΉ30,000 or for floor-mat / seat-cover SKUs (5DMAT/, 7DMAT/), which ship prepaid-only at βΉ499. Shipping mirrors the live Shopify delivery profiles: STANDARD is free up to βΉ30,000; EXPRESS (βΉ75 / βΉ150 / βΉ300) and PRIORITY (βΉ149 / βΉ250 / βΉ500) are optional paid speeds offered only for carts βΉ1,000ββΉ15,000 (post-discount value) and are prepaid-only. When an order is fetched from Shopify, the calculator uses that order's actual shipping charge instead of these rules. Surcharges are never discounted.
Sync check β fetched orders are the source of truth
A fetched Shopify order carries the live discounts and the real paid total. The calculator recomputes the same cart with its rules and compares: a red OUT OF SYNC banner means a rule here has drifted from the store (e.g. a discount condition changed) β the mismatch is auto-logged to the Sync Log tab so it can be reviewed and the rules fixed. Refetching the order after a fix auto-resolves the entry.
Worked example β order #63100
- Sunbrella βΉ799 + Car Cover βΉ2,687 + Travel Pillow βΉ499 = βΉ3,985 subtotal
- Subtotal β₯ βΉ3,000 β Crazy Deal: Travel Pillow 50% off = -βΉ249.50
- Subtotal in βΉ2.5k-5k tier β 6% on non-crazy items (βΉ799+βΉ2,687 = βΉ3,486) = -βΉ209.16
- Prepaid 5% Γ (βΉ3,985 - βΉ249.50 - βΉ209.16) = 5% Γ βΉ3,526.34 = -βΉ176.32 (under βΉ250 cap)
- Grand total: βΉ3,985 β βΉ634.98 = βΉ3,350.02 β matches Shopify
Sunbrella cancellation β the actual problem case
- Remaining: Car Cover βΉ2,687 + Travel Pillow βΉ499 = βΉ3,186 subtotal
- Still β₯ βΉ3,000 β Crazy Deal still applies (-βΉ249.50)
- Still in βΉ2.5k-5k tier β 6% on Car Cover (βΉ2,687) = -βΉ161.22
- Prepaid 5% Γ βΉ2,775.28 = -βΉ138.76
- New total: βΉ2,636.52
- Correct refund = βΉ3,350.02 β βΉ2,636.52 = βΉ713.50
- Sleek's flat-distributed refund would be only βΉ671.68 β customer underpaid by βΉ41.82.
How to use this tool
Calculator tab β fresh quote
- Pick items from the catalog on the left (or "+ Custom" to add a one-off line).
- Set qty in the live cart; remove with Γ.
- Optionally type a manual code (e.g. NEOCOMSECRET) β it replaces the tier/Crazy-Deal discounts; the prepaid 5%/βΉ250 offer still applies when paying prepaid.
- Pick the payment method β COD drops the 5% prepaid offer and adds the βΉ100 COD charge.
- Watch the breakdown panel update live. Copy quote when ready.
Order modification tab β refund calc
- Open the order in Shopify, copy line items into the Original pane (or use the catalog).
- Verify the grand total matches Shopify's "Paid by customer".
- Click β© Copy from original, then remove/edit items on the right.
- Read Refund to issue at the bottom β that's the amount Accounts processes.
Settings
Admin only. Passwords are stored server-side (hashed) and apply to the whole team immediately. Anyone already inside stays unlocked until they close their browser tab.
App password
The password everyone enters to open the app.
Admin password
Unlocks Rules & Catalog, Sync Log, How it works, Tests and this Settings tab β and authorizes password changes.