How to add a subscription widget to featured products
To add the RecurrinGO! Subscriptions widget to featured products or a featured collection, you should do the following:
Go to the theme code editing section in the admin panel of your web store Online Store > Themes > … (Actions) > Edit code.
In the Snippets directory, click + Add a new snippet.
In the pop-up, enter the File name
spurit_ros_featured_product_snippet
and click Done.
Paste the following code and click Save.
<script> |
Go to Sections and open the
featured-product.liquid
file to add the subscription widget to a featured product orfeatured-collection.liquid
to add it to a featured collection. The file name can vary for different themes. If you don’t find thefeatured-product.liquid
orfeatured-collection.liquid
file, go to Templates, open index.json, and find there the block responsible for featured products.
Render the snippet with
{% render 'spurit_ros_featured_product_snippet', product: product %}
If you have difficulties with adding the subscription widget to the featured products / collection, our support team is ready to help.