BigCommerce - Blueprint: Installing the Yotpo Star Rating on Blueprint
- DarkLight
BigCommerce - Blueprint: Installing the Yotpo Star Rating on Blueprint
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
This article explains how to install Yotpo Star Ratings on various pages of your BigCommerce store.
Please note:
If you would like to install the Star Rating on Stencil, please click here and go to the relevant dropdown explanation.
Installing Star Ratings on product pages
To install Star Ratings on product pages:
- Log in to your Bigcommerce Admin page.
- Click Settings.
- Click Design in the Store Setup column.
- Click Edit HTML/CSS.
- Click ProductDetails.html under Other Template Files>Panels.
- Add the following code after the following line <h1 itemprop="name">%%GLOBAL_ProductName%%</h1>:Markup
<div class="yotpo bottomLine" data-product-id="%%GLOBAL_ProductId%%" data-url="%%GLOBAL_ProductLink%%"> <div>
- Click Save at the top left of the page.
Installing Star Ratings on category pages
To install Star Ratings on category pages:
- Log in to your Bigcommerce Admin page.
- Click Settings.
- Click Design in the Store Setup column.
- Click Edit HTML/CSS.
- Click CategoryProductsItem.html under Other Template Files>Snippets.
- Add the following code where you want to the Star Ratings to appear (the exact location depends on your store):Markup
<div class="yotpo bottomLine" data-product-id="%%GLOBAL_ProductId%%" data-url="%%GLOBAL_ProductLink%%"> div>
Please note:If you have a custom theme, and the above file isn't available or doesn't work, add this code to any other similar files of the ***ProductsItem.html format. - Click Save at the top left of the page.
Important:
By default, the Yotpo Star Rating on Category Pages does not link anywhere.
If you wish to set up Star Rating as an anchor to product pages, please click here.
Installing Star Ratings on the homepage
This is relevant for "New" and "Featured" products.
To install Star Ratings on your store's homepage:
- Log into your Bigcommerce Admin page.
- Click Settings.
- Click Design in the Store Setup column.
- Click Edit HTML/CSS.
- Click HomeFeaturedProductsItem.html under Other Template Files>Snippets.
- Add the following code where you want to the Star Ratings to appear (the exact location depends on your store):
<div class="yotpo bottomLine"
data-product-id="%%GLOBAL_ProductId%%"
data-url="%%GLOBAL_ProductLink%%">
</div>
- Click Save at the top left of the page.
- Click HomeNewProductsItem.html under Other Template Files>Snippets.
- Add the following code where you want to the Star Ratings to appear (the exact location depends on your store):
<div class="yotpo bottomLine"
data-product-id="%%GLOBAL_ProductId%%"
data-url="%%GLOBAL_ProductLink%%">
</div>
- Click Save at the top left of the page.
Installing Star Ratings on the BigCommerce Quickview
To install Star Ratings on BigCommerce Quickview:
- Log in to your Bigcommerce Admin page.
- Click Settings.
- Click Design in the Store Setup column.
- Click Edit HTML/CSS.
- Click QuickViewContent.html under Other Template Files>Panels.
- Add the following code above the following line: %%SNIPPET_ProductFieldsList%%:Markup
<script type="text/javascript"> (function e(){var e=document.createElement("script");e.type="text/javascript",e.async=true,e.src="//staticw2.yotpo.com/###APP_KEY###/widget.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)})(); script> <div class="yotpo bottomLine" data-product-id="%%GLOBAL_ProductId%%" data-url="%%GLOBAL_ProductLink%%"> div>
Please note:Replace the ###APP_KEY### value with your API Key - Click Save at the top left of the page.
Was this article helpful?