Hi there,
I got a amazon review importer named ‘‘EZ amazon reviews importer’’, and there is a widget code for the reviews to be shown on all pages. I would like to have it on a specific page only, this is the code they have for my shop:
But I would like to have it for this product page: https://milehac.com/products/1pcs-airplane-car-neck-pillow-travel-comfy-sleep-orthopedic-neck-pillow-for-neck-pain-v-c-shape-no-inflatable-back-pain-support
Could anyone help me with this? Thank you in advance
You can do this with Liquid code. Here’s the reference document for the product object: https://shopify.dev/docs/api/liquid/objects/product
I would use product tag, so if you want to have it show on more products later, you just need to tag the product.
Here’s how you would do that:
{% if product.tags contains "name of the tag" %}
{% endif %}
Just put that snippet wherever you want it to show. For example, if you want it to show below the add to cart button, search your theme files for the add to cart button (will probably be in a snippet like product-form.liquid).
If you’re not familiar traversing through files in the theme editor, just start from the top level template, for example product.liquid, then look for the sections / includes, and open those files up and read the code, eventually you’ll find what you’re looking for.
Make sure to duplicate your theme and work on the backup theme, so that you can preview your edits before making it live.