It is important to advertise your customers about your loyalty program. Therefore, showing loyalty information on your shop and product pages can help a lot in motivating your customers.
In WooRewards, you have full control over what you display in both pages. Here’s how to use this feature.
Shop Page
The shop page is the page where you display a list of products to your customers. To add information about your loyalty program, go to the following page :
Once you’re on the page, you’ll first see some instructions on how to use the feature and the shortcodes you can use.
Let’s review the different options at your disposal
You can add html to the content area for a better display. Go into the input area and click on the Text tab on the top right of the area. Here’s an example of content you can set :
[wr_product_points]<div class="wr-wrapper" style="margin-top: 20px;">
<div class="wr-icon lws-icon-cockade"></div>
<div class="wr-content">Earn <b>[points]</b></div>
</div>[/wr_product_points]
And here’s how it will look :
Edit the content to your liking and save your settings.
Product Page
The product page is the page where you display the details of a product to your customers. To add information about your loyalty program, go to the following page :
Once you’re on the page, you’ll first see some instructions on how to use the feature and the shortcodes you can use.
Let’s review the different options at your disposal
You can add html to the content area for a better display. Go into the input area and click on the Text tab on the top right of the area. Here’s an example of content you can set :
[wr_product_points]<div class="wr-wrapper" style="margin-top: 20px;">
<div class="wr-icon lws-icon-cockade"></div>
<div class="wr-content">Buy this product to earn <b>[points]</b></div>
</div>[/wr_product_points]
And here’s how it will look :
Edit the content to your liking and save your settings.
Two forms of the shortcode
For details about the shortcode attributes, see WooRewards inline documentation.
As for a lot of shortcode, this one can be used in a short form and a long/content form.
Short form
[wr_product_points]
This one will only display the points amount or an empty string if no points can be earned by the current user for the current product. Useful if you want to show points alone.
Long/Content form
[wr_product_points]Earn [points][/wr_product_points]
In this one, you could include a whole sentence that will only be displayed if points can be earned by the current user for the current product. Here you have to use a placeholder in your sentence that will be replace by the value the shortcode returns in its short form. Three placeholders exist relative to the argument value: