Skip to main content

Show points and store credit in your order confirmation email

Add a short snippet to Shopify's order confirmation email so customers see their points and store credit balance and, on Shopify Plus, what the order will earn.

Shopify sends an order confirmation email every time a customer places an order. With a short snippet from Appstle Loyalty & Rewards, that email can show the customer's points and store credit balance, so every purchase reminds them about your loyalty program. On Shopify Plus, it can also show how much they will earn with the order.

Shopify sends this email, not Appstle Loyalty & Rewards. It is separate from the loyalty emails you manage in More → Email Templates. To change those, see Customize your loyalty emails.


What the email can show

The snippet adds up to four lines to the email. Each line appears only when it has something to show.

Line in the email

When it shows

Your points balance before this order: 480 points

The customer is a member of your program. It shows 0 points too.

Your store credit balance before this order: USD 12.50

The customer has a store credit balance.

You'll earn about 120 points with this order.

Shopify Plus only. The order earns points, and the Loyalty Checkout block saved an estimate on it (see the steps below).

You'll earn about USD 4.50 in store credit with this order.

Shopify Plus only. The order earns store credit, and the Loyalty Checkout block saved an estimate on it.

The balances are the ones from before the order. Shopify sends the email as soon as the order is placed, before the points or store credit for that order are added.


Before you start

  • The balance lines show only for members of your loyalty program. Appstle Loyalty & Rewards saves each member's balance on their Shopify customer record, and the email reads it from there.

  • For the "You'll earn about" lines, you need a Shopify Plus store. The balance lines work on every Shopify plan.


Add the snippet to the email

Copy the snippet

  1. In Appstle Loyalty & Rewards, go to Design. On the On-site blocks card, click Manage.

  2. Under Cart, checkout, and post-purchase, find Rewards in order confirmation email and click Configure.

  3. Under Code snippet, click Copy.

Paste it into Shopify's email

  1. In Shopify admin, go to Settings → Notifications → Customer notifications → Order confirmation. The Open notification settings button in the app takes you to Notifications.

  2. Click Edit code.

  3. In Email body (HTML), paste the snippet on a new line where you want the lines to appear. In Shopify's default template, pasting it right after <p>{{ email_body }}</p> puts the lines under the opening message.

  4. Click Save.

If you change the wording, keep the Liquid variables, the parts inside {{ }} and {% %}, as they are.

Check it with a test order

Place a test order as a customer who is a member of your program, then open the confirmation email. Shopify's own test email uses sample data, so it never shows points or store credit.


Show what the order will earn

On Shopify Plus, the email can also say how many points or how much store credit the order will earn. Appstle Loyalty & Rewards saves an estimate on the order at checkout, and the snippet you pasted already shows it.

  1. On the same page in the app, find the Rewards earned on this order card and click Open checkout editor.

  2. Add the Loyalty Checkout block to your checkout if it isn't there yet. For help, see Integrating Appstle Loyalty & Rewards into the Checkout Process.

  3. In the block's settings, turn on Save Estimated Points on Order. Leave Hide Acquired Points or Store Credits turned off: the estimate is saved only while the block shows what the order earns.

  4. Click Save.

Save Estimated Points on Order saves the store credit estimate too. The email says "about" because the figure is an estimate. The rewards actually awarded can differ, for example when rewards need approval or are given on fulfillment.


Things to know

  • The snippet is built from your active earning rules. Whenever you add, remove, turn on or turn off an earning rule, copy the snippet again and replace the old one in Shopify.

  • If no active earning rule gives store credit, the store credit line shows only for customers who have more than zero credit.

  • If every active earning rule gives store credit, the points line shows only for customers who have points.

  • Customers who don't have a loyalty balance yet, such as guests who never joined your program, see no balance lines, but they can still see the "You'll earn about" lines. Customers who are excluded from your program or opted out of it see none of the lines.

  • With Save Estimated Points on Order on, Shopify admin also shows the estimate on each order under Additional details, as appstle_estimated_points and appstle_estimated_store_credit.


Troubleshooting

  • The lines don't show in Shopify's test email. The test email uses sample data. Place a test order instead.

  • No balance lines show for a real order. The customer doesn't have a loyalty balance yet (for example, a guest who never joined your program), or is excluded from your program or opted out. Find the customer on the Customers page in Appstle Loyalty & Rewards to check their status.

  • The "You'll earn about" lines don't show. Check that your store is on Shopify Plus, that Save Estimated Points on Order is turned on in the Loyalty Checkout block, and that the order earns points or store credit. Orders placed before you turned the setting on don't carry an estimate.

  • The "You'll earn about" lines show for some customers only. The estimate is saved only when the checkout block shows the customer what they'll earn. Guests don't see the block when Hide these blocks from guests is on, on the Checkout and account blocks page. Customers whose tags keep them from seeing loyalty in Design don't see it either.

  • The balance is lower than what the customer sees in their account. The email shows the balance from before the order, because Shopify sends it before the order's points are added.

  • The lines stopped showing. The template was edited or reverted to Shopify's default, which removes the snippet. Copy the snippet again and paste it back.

Did this answer your question?