Adding the price and stock availability of your products to our Product Review SEO TrustBox widgets means that both price and availability can be indexed, allowing this information to be displayed on search engine result pages.
How to do it
All you need to do is add your price and stock information to the code of your widget:
<div class="trustpilot-widget" data-locale="en-US" data-template-id="X" data-businessunit-id="XXXXXXXXXXXXXXXXXXXXXXXX" data-style-height="XXX" data-style-width="XXX" data-theme="light" data-stars="1,2,3,4,5" data-sku="XXXXXXX" data-name="XXXXXXXXXXXXX"
data-price="100" data-price-currency="USD" data-availability="InStock">
The three attributes you need to add in the code of the widget are data-price, data-price-currency, and data-availability. Here’s a breakdown of what each of these mean:
Element | Description |
data-price | The price of the product. Make sure you follow the schema.org usage guidelines. |
data-price-currency | The currency used for the product price. The price needs to follow the three-letter ISO-4217 format. |
data-availability | The value describing the product availability. If this attribute is used, it needs to match one of the following values: Discontinued InStock InStoreOnly LimitedAvailability OnlineOnly OutOfStock PreOrder PreSale SoldOut |
Our TrustBox widgets take this product information and reformat it to JSON-LD, a data format search engines are able to display. Once your data is added, your products will begin displaying with the added information.