2 Product Schemas: How to Remove one?

Highlighted
New Member
3 0 0

I have two product schema snippets. One is the JSON file located in the theme.liquid file.

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Product",
   "brand": {
    "@type": "Brand",
    "name": "{{ product.vendor }}"
  },
  "sku": {{product.variants[0].sku | json }},
  "description": {{product.description | strip_html | json }},
  "url": "{{ shop.secure_url }}{{ product.url }}",
  "name": {{ product.title | json }},
  "image": "{{ product | img_url }}",
  "offers": {
  "@type": "Offer",
    "price": "{{ product.price | money_without_currency | remove: ',' }}",
    "priceCurrency": "{{ shop.currency }}",
    "availability": "{% if product.available %}http://schema.org/InStock{% else %}https://schema.org/OutOfStock{% endif %}"

The other is in the product.liquid file. This one is contained throughout the file with "itemprop"

<div itemscope itemtype="http://schema.org/Product">
  <meta itemprop="url" content="{{ shop.url }}{{ product.url }}">
  <meta itemprop="image" content="{{ product.featured_image.src | img_url: 'grande' }}">



When testing I see this. 

2 schema.png

How do I fix this? Easiest way, please.

0 Likes