We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Structured data with syntax errors detected

Solved

Structured data with syntax errors detected

Alexa71
Shopify Partner
10 0 0

Screenshot_8.png

 

On my site, these issues are accrued how to resolve them. site is about custom night guards.

 

Screenshot_9.png

Accepted Solution (1)

tim
Shopify Partner
4812 598 1733

This is an accepted solution.

You need to check you sections/main-product.liquid 

Looks like it was modified and the comma is missing before "url":

      "offers": [{
            "@type" : "Offer","availability" : "http://schema.org/InStock",
            "price" : 149.0,
            "priceCurrency" : "USD",
              "priceValidUntil": "2024-12-31",
              "hasMerchantReturnPolicy": {
                            "value": true
                                        },
               "shippingDetails": {
                                "type": "FreeShipping",
                                "price": "0"
                                   }
            "url" : "https:\/\/shopkiry.com\/products\/custom-night-guards?variant=46911939936564"
          },

The original code is like this: https://github.com/Shopify/dawn/blob/c67c83387ba7b654e8f4cca683727d14c06b5c5c/sections/main-product.... 

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com

View solution in original post

Replies 5 (5)

tim
Shopify Partner
4812 598 1733

This is an accepted solution.

You need to check you sections/main-product.liquid 

Looks like it was modified and the comma is missing before "url":

      "offers": [{
            "@type" : "Offer","availability" : "http://schema.org/InStock",
            "price" : 149.0,
            "priceCurrency" : "USD",
              "priceValidUntil": "2024-12-31",
              "hasMerchantReturnPolicy": {
                            "value": true
                                        },
               "shippingDetails": {
                                "type": "FreeShipping",
                                "price": "0"
                                   }
            "url" : "https:\/\/shopkiry.com\/products\/custom-night-guards?variant=46911939936564"
          },

The original code is like this: https://github.com/Shopify/dawn/blob/c67c83387ba7b654e8f4cca683727d14c06b5c5c/sections/main-product.... 

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com

sumanthjois1996
Shopify Partner
23 0 7

Personally, I don't like messing around with Structured Data. I used to use an app called JSON-LD -- took care of everything for me.

SofiiaAst
Shopify Partner
50 1 2

Hi!

You can add Shipping methods schema markup and Return Policy structure data effectively using the SA SEO JSON‑LD Schema markup app. If you have any questions, you can write to the app support and they will help you.

Sofiia Astanina, Shopify app developer
Try SA SEO JSON‑LD Schema markup from Shopify app store
NVV
Tourist
16 0 1

We started having a syntax error recently as well. We error we are getting is "incorrect value type". Can someone recommend a fix. The website is notveryvanilla.com

GSC Structure data syntax error 1.pngGSC Structure data syntax error 2.png

SofiiaAst
Shopify Partner
50 1 2

Hello!

 

As I can see, the "Spider free SEO optimizer" app added the incorrect code. I recommend deactivating the structured data in this app and using another app to add a schema markup. 

I am happy to help you set up SA SEO JSON‑LD Schema markup app settings if you would like.

 

Best Regards,
Sofiia

Sofiia Astanina, Shopify app developer
Try SA SEO JSON‑LD Schema markup from Shopify app store