Loyalty Program
Merchants on Zid can activate the loyalty program through their dashboard. As a theme developer, your role is to integrate loyalty program features into the theme, ensuring customers can interact with these functionalities seamlessly.
Activation Steps for Merchants
Merchants can activate the loyalty program by visiting: Zid Loyalty Program Activation.
Upon activation, merchants configure the points collection method. This customization includes setting the number of points awarded for each completed order.
Next, merchants add various redemption methods they wish to offer.
Code Snippet Integration for Theme Partners
As a theme developer, you need to integrate loyalty program templates into the appropriate theme files:
- Add
template_for_product_loyalty_points_widget
intemplates/product.twig
- Add
template_for_cart_loyalty_points_widget
intemplates/cart.twig
Code Sample for product.twig
:
<div>
{{ template_for_product_loyalty_points_widget }}
</div>
Code Sample for cart.twig
:
<div>{{ template_for_cart_loyalty_points_widget }}</div>
Customer points code sample for template/account-loyalty-program.twig
:
check payload data wallet
Last modified: 2 months ago