Fera.js watches the page for HTML element changes and looks for
data-fera attributes. These can be used to run functions on Fera.js dynamically.
You can add
data-fera-action="writeReview" to any of your links or buttons to make clicking on them show the fera review, photo or video submission modal.
<a href="#" data-fera-action="writeReview">Write Review</a>
Fera will automatically use the currently being viewed product as the product being reviewed if you're using Shopify, Wix or any other supported eCommerce platform.
If the current product is not clear or if there are multiple products on the current page, you can specify the product ID being reviewed with the
For example, this link would open show the "Write Review" modal for the product with ID "123":
<a href="#" data-fera-action="writeReview" data-product="123">Write Review</a>
Updated about 1 year ago