Search Console issue with my products. DEBUT THEME.

Jose13
Shopify Partner
122 1 13

I was looking at Search Console Engine and found an issue in my products: 

 

Either "offers", "review", or "aggregateRating" should be specified.

 

I read a bit further and it seems to be something with the JSON Schema, but I'm not very sure what is it nor how to fix it. I'm using Debut Theme. I believe this errors have a direct impact on my SEO ranking, right? Is there a fix for this? 

SCE_error.JPG

Reply 1 (1)
MS-WEB-DESIGNER
Shopify Partner
3012 181 484

Dear Jose13,

 

Hope this will help.

 

Please check your JSON-LD. It should be nicely placed in one place.

Here is the Liquid code used to remove Product error:

 

<script type="application/ld+json">
{
  "@context": "http://schema.org/",
  "@type": "Product",
  "url": "{{ shop.url | append: '/products/' | append: product.handle }}",
  "name": "{{ product.title }}",
  "image": "{{ product.featured_image.src | img_url: 'master' }}",
  "description": "{{ product.description | strip_html | escape }}",
  {% if collection_urls != blank %}
  "category": [
    {{ collection_urls }}
  ],
  {% endif %}
  "brand": {
    "name": "{{ product.vendor }}"
  },
  "offers": {
    "@type": "Offer",
    "priceCurrency": "{{ shop.currency }}",
    "price": "{{ current_variant.price | money }}",
    "availability": "http://schema.org/{% if product.available %}InStock{% else %}OutOfStock{% endif %}",
    "seller": {
      "@type": "Organization",
      "name": "{{ shop.name }}"
    }
  }
}
</script>