Add A2Reviews snippet code manually in Shopify theme
Shopify theme basic standards
Some reasons that A2Reviews cannot add snippet code to your Shopify theme, you can do it manually.
* Display total reviews widget on the product page:
In your theme, open this file sections/product-template.liquid. Add snippet code below to anywhere want to display total reviews.
* Display total reviews widget on the collection page:
Each Shopify theme can have different file names to display the product list on the collection page. Find a suitable position to display total reviews. Snippet code below you can add.
* Main reviews / QA widget snippet code, (Mostly added in the file templates/product.liquid)
QA Widget Snippet Code
or
Shopify theme ONLINE STORE 2.0
Online Store 2.0 is a set of features and feature improvements that make themes and theme apps easier to build, more flexible, and easier to maintain.
Many Online Store 2.0 features rely on JSON templates. You can migrate a theme's templates to add support for these features by converting a Liquid template into a JSON template, and moving any required Liquid code or HTML into sections that you can include in the new JSON template.
For Online Store 2.0 theme, setting widget display on product page will be added in templates/product.json file. With the general A2Reviews application will be added with the reference example below.
Example templates/product.json file
Last updated