Adding the Product Points Widget to Your Store

      Adding the Product Points Widget to Your Store


        Article Summary

        Products


        Loyalty & Referrals
        Supported plans

        Premium, Enterprise

        eCommerce Platform

        Shopify, Shopify Plus

        The Product Points widget displays the number of loyalty points your customers can earn when purchasing a specific product from your store. The widget can help incentivize customers to make purchases and engage with your loyalty program.

        In this article, you'll learn how to add the Product Points widget to your store.

        How it works

        The Product Points widget appears on every product page and shows the number of loyalty points the customer can earn if they choose to purchase this product.

        The widget view changes according to the customer viewing the page:

        • Logged-in customers will see a link prompting them to visit your Rewards Page
        • Logged-out customers will see a link prompting them to log in or sign up with your store

        Customers will not see the Product Points widget when:

        • The customer is logged in but opted out of your loyalty program, either via API or excluded customer tags
        • The customer belongs to a segment that’s excluded from the Points for Purchases earning rule/s
        • The specific product or product variant is excluded from the Points for Purchases earning rule/s

        Calculating product points

        When calculating the number of points that can be earned, we take into account all active points for purchases earning rules. This means that if you’re running a Double Points campaign, the number of points customers can earn for a product will double as well.

        To learn more about the Double Points campaign, see Sending a Double Points SMS Campaign.

        The calculation and display of points to be earned changes according to the following parameters and how they are set up in your program:

        • Quantity of products
        • Product variant
        • Customer tags/segments
        • VIP tier points multiplier

        Limitations

        • Shopify Markets is not supported - A customer viewing the page from a locale that uses a currency other than the store currency will see an incorrect number of points
        • The widget cannot be added to a Shopify headless implementation

        Before you start

        You need to have at least 1 active Points for Purchases earning rule. To learn more about the earning rule and how to set it up, see Setting up a Points for Purchases Earning Rule on Shopify

        Customizing the widget

        To access the widget editor and customize the widget:

        1. In your Yotpo Loyalty & Referrals main menu, go to DisplayOn-site > Product Points.
        2. Click +Create.

        The editor includes the following sections:

        Messaging

        This is the text that will be shown to the viewing customer. You can edit the text for a logged-out customer and a logged-in customer.

        • Logged out view: This text will appear to logged-out customers and customers who haven’t signed up with your store. The text includes the {{points_amount}} placeholder that changes dynamically according to the calculation of points from all active earning rules available to all customers. Make sure that the link to your login/signup page is correct.
        • Logged in view: This text will appear to logged-in customers. The text includes the {{points_amount}} placeholder that changes dynamically according to the calculated number of points for that customer. Make sure that the link to your Rewards Page is correct.

        Design

        The widget editor lets you customize every aspect of the Product Points widget, including the icon, colors, fonts, etc.

        You can apply your Brand Kit settings to quickly match the widget’s design to your brand. Click Preview Brand Kit settings to preview and apply your Brand Kit setting.

        Tip:

        If you’re using a custom font, we recommend uploading the bold weight of that font to use in the widget.

        To learn more about the Brand Kit and uploading custom fonts, see Setting up Your Yotpo Brand Kit.

        Adding the widget to your store

        To add the widget to your store follow the instructions relevant to your Shopify theme:

        Shopify 2.0

        1. In the widget editor, click Publish in the top right corner.
        2. Click Open Shopify to open the theme editor.
        3. Choose where you want to place the widget. We recommend adding it below the Price and above the Buy button.
        4. Click Add block.
        5. Go to Apps.
        6. Search for Product Points Widget and select it.
        7. Click Save.
        8. Go back to your Yotpo Loyalty & Referrals account and click Done.

        The widget is now live on your site. You can also see the widget in the theme editor on the default product page.

        Shopify Vintage

        1. In the widget editor, click Publish in the top right corner.
        2. Click Get the code and copy the code.
        3. In your Shopify admin main menu, go to Online Store > Themes.
        4. Click the 3-dot menu for your active theme and select Edit Code.
        5. Locate the file that you use for your product pages. This is usually called product-template.liquid or main-product.liquid.
        6. Paste the copied code into the file, under the {{ product.title }} element.
        7. Click Save.
        8. Go back to your Yotpo Loyalty & Referrals account and click Done.


        The widget is now live on your site.


        Was this article helpful?