How to solve these structured data errors?

Highlighted
Shopify Partner
2 0 0

Hi everybody,

 

I was setting up my shopping feed for Google shopping ads and my products keep getting rejected...

 

When I check my site for structured data I keep getting the same errors over and over again.

Now I'm not really an expert at coding and I googled this problem for what feels like 50 years and I didn't find a solution.

 

I hope anybody can help me out with solving these errors.

 

The sentence in red roughly translates to: "Value needed for field name/image"

 

Thanks in advance guys

0 Likes
Highlighted
Shopify Partner
1023 214 464

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>

For Image error, please follow this step: https://structuredseo.com/how-to-fix-schema-markup-errors-using-googles-structured-data-tool/

 

Let me know if I can help you more!

Shopify Expert | Skype: tejas.nadpara
- Like and Mark as an Accepted Solution if reply helpful
- Feel free to contact me on support@hexaecommerce.com regarding any help
0 Likes
Highlighted
Shopify Partner
2 0 0

Hey Tejas,

 

This helped a lot :-)

 

Thank you!!!

0 Likes
Highlighted
Excursionist
63 0 4

Hi I am facing the same problems - where exactly should this script be placed ? Thanks Sabine

0 Likes
Highlighted
Shopify Partner
1023 214 464

@Sabine_Mohr 

 

Add above script into your product.liquid file.

Let me know if you need more help for same.

 

Cheers,

Tejas

Shopify Expert | Skype: tejas.nadpara
- Like and Mark as an Accepted Solution if reply helpful
- Feel free to contact me on support@hexaecommerce.com regarding any help
0 Likes
Highlighted
Shopify Partner
4 0 0

Hi Tejas,

 

Thanks for the information,

 

But i have problem with schema there is warning shows as,

price
A value for the price field is required.
warning
priceValidUntil
The priceValidUntil field is recommended. Please provide a value if available.
warning
url
The url field is recommended. Please provide a value if available.
warning
aggregateRating
The aggregateRating field is recommended. Please provide a value if available.
warning
review
The review field is recommended. Please provide a value if available.
warning
sku
The sku field is recommended. Please provide a value if available.
warning
 
This Product is missing a global identifier (e.g. isbn, mpn or gtin8). Please see documentation for valid identifiers.

 

So how it can be solved,please help.

0 Likes
Highlighted
Shopify Expert
37 0 16

Hey @shahid123,

 

If you wish you can try by following this guide  - it's very detailed as it covers examples of exactly which data types and properties you should add to your homepage, collection, product, blog and article pages in Shopify.

Alternatively, you can try with an app (but it's important not to use more than one SEO app at a time as you may end up with a mess of duplicate structured data). You can check out the SmartSEO app. 

And if none of this helps, it will be best to contact a Shopify expert to fix these errors and warnings for you.

 

Kindly,

Raya from Sherpas Design

 

 

0 Likes
Highlighted
Tourist
4 0 1

Hi Tejas,

 

We are getting a few errors in Structured data which says " JSON Uncategorized Errors" as seen in the image. Can you please help us?Screenshot (28).png

0 Likes
Highlighted
Tourist
4 0 1


Capture.PNG

Hi @Tejas_Nadpara ,

 

Can you help me with solving these structured data errors for our website Sculpt Australia please. I tried everything but didn't find a solution. Really appreciate any help. 

I look forward to your reply,

 

Karthik

0 Likes
Highlighted
Shopify Expert
37 0 16

Hi,

 

We can of course do that but please note that this will require development effort on our part and we will have to charge you for a small task, the price of which is $60.

 

In any case if you decide that you want us to do that, please request the job here:

 

https://experts.shopify.com/sherpas-design/optimize-web-pages-for-seo

 

Thanks!

0 Likes