Widget 2.0 Javascript Attributes

Here are the standard Widget 2.0 codes and list of customizations possible through coding. For basic customizations of Widget 2.0, please refer to the following guide instead: https://help.stamped.io/article/180-widget-2-0-customizations

Note: the value of the attributes may vary depending on the e-commerce platform you're using.


In This Guide


Customizable Attributes

<div id="stamped-main-widget" 
data-widget-style="standard" 
data-product-id="{{ product.id }}" 
data-name="{{ product.title | escape }}" 
data-url="{{ shop.url }}{{ product.url }}"
data-image-url="{{ product.featured_image | product_img_url: "large" |replace: '?', '%3F' | replace: '&','%26'}}"
data-description="{{ product.description | escape }}"
data-product-sku="{{product.handle}}"></div>
Attribute Value What it does
data-take-reviews 1 (numeric, max 30) Limit the number of reviews to load per page
data-take-questions 1 (numeric, max 30) Limit the number of questions to load per page
data-animation false Stops the scrolling to reviews widget on badge rating click
data-offset 150 (numeric) Adjusts the position of the scrolling to the widget from click of the badge

Still need help? Contact Us Contact Us