Search through more than a hundred articles on every aspect of Growave

Polly T.
Written by Polly T.

How to add a Rewards widget "How many points you will earn"

Learn how to display a widget with the points price on the product page

The points price widget is intended to show customers how many points they can earn by purchasing a product. This feature is for the Place Order rule in the Points program.

The widget is displayed only for logged-in users and looks something like this:

In order to add it to your product page, please open the product-template.liquid file, and find the tag h1:

then insert the following code after the </h1> line:

{% if product.available %}
<div class="ssw-html-widget ssw-reward-place-order" data-module="Reward" data-name="PlaceOrder" data-product_id="{{}}"></div>
 {% endif %}

Once it's done, please make sure that the Place Order rule and the Points program both are enabled.

That's it! Now you will have a points price widget on your product pages.

NOTE: If a customer has a tier and his points get multiplied, the widget will consider it, when showing the number of points for an item. However, please be kindly noted that the widget does not consider settings such as including taxes, etc., and only works with the Place Order rule.

If you have any questions or facing any difficulties with adding the widget on your end, please contact us at email or click on the live-chat button without hesitation.