Closed bluec closed 7 years ago
The product schema creates invalid markup for grouped products which fails the Google structured data tests.
The two problems are a trailing comma and no declaration of "@type" so google assumes a "Thing" and therefore errors becauses of the SKU attribute.
Offending file: ./app/design/frontend/base/default/template/creareseo/product/schema.phtml
./app/design/frontend/base/default/template/creareseo/product/schema.phtml
The output looks like this:
"itemOffered": { "sku": "SOME-SKU", "name": "PRODUCT NAME", },
I believe it should look like this:
"itemOffered": { "@type": "Product", "sku": "SOME-SKU", "name": "PRODUCT NAME" },
Note the trailing comman is removed!!
Thanks for the report! Just fixed it.
Thanks @sprankhub I was going to do a PR but you saved me the bother!
The product schema creates invalid markup for grouped products which fails the Google structured data tests.
The two problems are a trailing comma and no declaration of "@type" so google assumes a "Thing" and therefore errors becauses of the SKU attribute.
Offending file:
./app/design/frontend/base/default/template/creareseo/product/schema.phtml
The output looks like this:
I believe it should look like this:
Note the trailing comman is removed!!