Points dropdown at checkout
Allowing customers to redeem points at checkout is a great way to promote points spending and boost engagement with your reward program. Adding a points dropdown to your checkout makes spending points quick, easy, and seamless.
Shopify Plus required
Adding a points dropdown at checkout requires modifying the checkout.liquid template file, which is a feature currently only available to Shopify Plus merchants.


1. Navigate to your theme editor in Shopify

Select Online Store in the left sidebar, and then from the Actions button, choose Edit HTML/CSS.

2. Create a new snippet in Shopify

Create a new snippet in Shopify called smile-points-products-dropdown.

3. Add sample code to snippet

Copy the contents of our smile-points-products-dropdown.liquid code sample into the new snippet you just created.
The code sample uses jQuery. If your site does not already include or use jQuery, you should uncomment the jQuery script at the top of the sample.

4. Customize which PointsProducts are included

By default, the sample code will include all of your PointsProducts in the dropdown, but sometimes there are rewards in your program that don't apply to the cart, such as Free Products. You can hide PointsProducts from being shown in the dropdown menu by adding specific PointsProduct IDs to the hidePointsProductsIds variable.
In order to find the IDs of points products that you want to hide, visit the Smile Admin and navigate to your points program.
Go to your rewards and select one that you wish to hide from the points products dropdown. When you select a reward, you will be able to find the corresponding ID of the points product in the address bar.
This ID can be added to the hidePointsProductsId variable in order to hide it from the dropdown.

5. Add new snippet to checkout.liquid

Add the following snippet at the bottom of checkout.liquid right before the </body> tag. The smile-initializer snippet already exists. It was created when you installed the Smile.io app.
{% include 'smile-initializer' %}
{% include 'smile-points-products-dropdown' %}
Can't find checkout.liquid file?
If you cannot find the checkout.liquid file, it's likely because you are not a Shopify Plus merchant. Shopify Plus is required to be able to add a points dropdown to the checkout page.

6. You're done! 🎉

Visit your store's checkout page to confirm the dropdown works as expected.

Tips for the best customer experience

Certain PointsProducts apply discounts to the cart in different ways. For example, gift cards can apply discounts to the total value of the cart whereas coupon codes may only apply discounts to the cart subtotal. There are other factors, including your region and cart setup, that prevent us from providing a single code sample that works flawlessly out of the box for every merchant.
Our sample code is meant to get you up and running with giving your customers the option to spend their points at checkout. It allows them to purchase any PointsProduct they can afford. As a result, your customers may accidentally spend their points on a PointsProduct that has a greater value than what can actually be discounted from the cart.
You may want to filter out these PointsProducts so that your customers are assured to have a great experience at checkout!
Last modified 5mo ago