1. Home
  2. Getting Started
  3. Add All/Shop Reviews or Reviews for a specific product to any Shopify template.

Add All/Shop Reviews or Reviews for a specific product to any Shopify template.

You can display all your shop reviews on any Shopify page of your choice. Paste this code in the desired template in one of the liquid files of your Shopify theme.

<div style="clear:both;"></div><div id="opinew-reviews-all-reviews-code" class="">
<span id="opinew-shop-plugin">
{{ shop.metafields.opinew['opinew_all_reviews'] }}
</span>
</div>
                                    

To display reviews of one chosen product (on a page like home or about us page but not product page), add this code:

<div style="clear:both;"></div><div id="opinew-reviews-all-reviews-code" class="">
<span id="opinew-shop-plugin">
{{ all_products['PRODUCT HANDLE'].metafields.opinew_metafields['product_plugin'] }}
<span id="opinew_product_plugin_app"></span>
</span>
</div>

You need to replace the PRODUCT HANDLE with a handle for your chosen product.

PRODUCT HANDLE is the ending of the URL of the product page.

Ex:

https://demo.opinew.com/collections/frontpage/products/mega-helmet

the product handle is “mega-helmet”

Updated on November 9, 2019

Was this article helpful?

Related Articles

Leave a Comment