Liquid, JavaScript, themes, sales channels
Hi all, I am getting this issue on one of my product pages, found by Google Search Console: Unparsable structured data > Duplicate unique property
// add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "Add to cart", soldOut: "Sold out", unavailable: "Unavailable" } </script> <script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "Product", "@id": "https:\/\/theelephant.world\/products\/aotearoad-natural-dry-shampoo-for-dark-hair", "@id": "https:\/\/theelephant.world\/products\/aotearoad-natural-dry-shampoo-for-dark-hair", "@id": "https:\/\/theelephant.world\/products\/aotearoad-natural-dry-shampoo-for-dark-hair", "name": "Aotearoad Natural Dry Shampoo for Dark Hair", "url": "https:\/\/theelephant.world\/products\/aotearoad-natural-dry-shampoo-for-dark-hair","image": [ "https:\/\/cdn.shopify.com\/s\/files\/1\/0551\/4271\/1461\/products\/ShampooDark_750x.png?v=1615214030" ],"description": "Aotearoad Dry
An example product page is here: https://theelephant.world/collections/featured-collection/products/aotearoad-natural-dry-shampoo-for...
I am not sure how I access this code to resolve the issue? Any help appreciated!
Leighton
Solved! Go to the solution
This is an accepted solution.
Hi Cheiro!
Yes, this is what you need, in the first screenshot, remove two lines of ID fields(35,36 lines) https://prnt.sc/12ebha4
Alex
Hi Leighton! Hope you are doing well!
I see your problem - https://prnt.sc/129gm3o, most likely the micro-data is in templates/product.liquid or sections/product-template.liquid file. To search within a file, you can use a query like this:
"@type": "Product"
If you find this place, then take a screenshot and provide it to me so that I can give further instructions on how to fix the problem.
Alex
Awesome! Thanks Alex,.will take a look 👍
Hi @AlexHodzitsky here is the screenshot as requested - is this the right place? (From templates: product.liquid)
I also found this in sections: product-template.liquid
This is an accepted solution.
Hi Cheiro!
Yes, this is what you need, in the first screenshot, remove two lines of ID fields(35,36 lines) https://prnt.sc/12ebha4
Alex
Perfect! Thank you so much!
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024