#Why not use the order subtotal?
A subtotal is the price before anything went wrong for your margin. A customer who uses a 20% code, pays half the bill with a gift card, or gets free shipping has not given you the same money as one who paid in full. If points follow the subtotal, you pay rewards on money you never collected, and a code-hunter earns the same as a full-price buyer.
Shopify itself separates the pieces. An order has product lines, discounts, tax, shipping and transactions, and the transactions are where the truth about payment lives.
You can display store credit as a payment method at checkout.
Because credit and gift cards are payment methods, they show up as transactions, and LoyalXP can see them.
#How does LoyalXP work out the base?
The earning base is built in a fixed order.
- Gross. Products after discounts, plus product tax if tax is not already inside the price, plus shipping, plus other charges (duties, COD fees, tips).
- Exclusions. Product types, collections and products you chose under "Products that earn nothing" drop out first. You pick them from your store, and the app needs read access to products to list them.
- Tender. Gift card and store credit payments are read from the order's successful sale or capture transactions. Each kept part is scaled by (gross - tender) / gross, so only the cash share earns.
- Switches. Include tax, Include shipping and Include other charges are applied. Anything switched off is removed.
- Rate. points = floor(base x rate / per amount).
The tender figure is stored once on the order event, so if the order is replayed later the base comes out the same. Gateways are matched by name patterns that look like a gift card or store credit.
#What does it look like with real arithmetic?
This is an EXAMPLE with an assumed rate of 1 point per ₹10. An order has ₹1,800 of products after discounts, ₹100 shipping and a ₹50 COD fee, so gross is ₹1,950. The customer pays ₹390 with a gift card.
The cash share is (1,950 - 390) / 1,950 = 0.8. Each kept part is scaled by 0.8: products ₹1,440, shipping ₹80, COD fee ₹40.
| Switches | Base | Points |
|---|---|---|
| Shipping off, other charges off | ₹1,440 | 144 |
| Shipping on | ₹1,520 | 152 |
| Shipping and other charges on | ₹1,560 | 156 |
If the base were ₹1,439, the order would earn 143. Round-down is deliberate: a customer never earns a point they did not pay for.
#What about tiers and slabs?
Under "More points on bigger orders" you can set tiers. Choose what happens when an order crosses one: the whole order earns the higher rate, or only the part above each tier does. The base computed above is what the tiers act on, so a discounted order can land in a lower tier than its sticker price suggests.
#Which orders should not earn at all?
Settings has an Order types section where each kind can earn or be skipped: in-person orders, wholesale, free orders, gift-card-only orders, orders lost to chargeback, draft orders, subscription renewals and exchanges. A gift-card-only order is paid wholly in tender, which never earns, and the switch makes your intent explicit.
#How do you set it up?
- In setup, open the Earning step (step 2 of 9). After launch it lives under Settings, then Earning.
- Enter "1 point for every ₹X spent".
- Tick or clear Include tax, Include shipping and Include other charges.
- Pick products that earn nothing, if any.
- Review Order types.
- Check the preview on the Redeeming step so you can see the give-back percentage.
#What are the pitfalls?
- Switching shipping on, then discounting shipping to zero. The line contributes nothing, which is correct, but customers may ask.
- Excluding a collection and forgetting that gift-card-only or free orders are separate switches.
- Reading the sticker price on the product page and promising more points than the cart delivers. The cart and thank-you blocks quote the order's points, which avoids the surprise.
- Expecting a refund to leave points alone. The same basis is used in reverse, see loyalty points and refunds.
#Related guides and posts
- Loyalty points guide
- Loyalty points and refunds
- Loyalty points on COD orders
- Backfill points for past orders
- LoyalXP vs LoyaltyLion
LoyalXP is $15 a month with every feature, 250 paid orders included, each further 250 is $5 as a Shopify usage charge up to a cap you set, with a 14-day free trial, billed in US dollars by Shopify. Request early access.
Frequently asked questions about LoyalXP and this topic
Do discounts reduce the points?
Yes. Points are worked out on the amount after discounts.
Does shipping earn points?
Only if you switch on Include shipping.
What if a customer pays part with a gift card?
The order earns on the cash share only. Gift card and store credit tender never earns.
Are points rounded up or down?
Down. A fraction of a point is dropped.