Zen Cart Logo
Forums / Addon Admin Tools / Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Views: 91,626

Results 101 to 120 of 212
23 Jul 2021, 7:49 AM
#101
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Nick1973:

Products Shipping Weight doesn't appear to be in my product info data. Is this something that has been updated?

I still can't get products shipping weight to appear in structured data. This is necessary for the google shopping feed if using the Website Crawl method for listing products on Googles Shopping Channel and Free Listings if using variable shipping costs calculated by weight.

23 Jul 2021, 9:41 AM
#102
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,874
Plugin Contributions:
7

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Where is the Google structured data specification for weight?

23 Jul 2021, 10:11 AM
#103
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

torvista:

Where is the Google structured data specification for weight?

If structured data is used for a google shopping feed which is processed using 'Website Crawl' rather than uploading an xml feed, and it has variable postage prices based on weight, products are Disallowed and show up as 'missing product data' - the reason is because the structured data product information is missing a weight value.

If I mark all my products as Free Shipping or a Flat Rate, even though neither apply, then the products are allowed as no weight value is required.

Does this help?

https://support.google.com/merchants/answer/6324490

https://support.google.com/merchants/answer/7052112?visit_id=637626315459978037-2007430222&rd=1

Look for unit_​​pricing_​​base_​​measure

23 Jul 2021, 10:37 AM
#104
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,874
Plugin Contributions:
7

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Those seem to be the specs for the XML feed, not the parameters embedded in the product file.

However, I added weight using educated guessing and the Rich Snippets tool did not complain. It's on Github.

23 Jul 2021, 10:49 AM
#105
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

torvista:

Those seem to be the specs for the XML feed, not the parameters embedded in the product file.

However, I added weight using educated guessing and the Rich Snippets tool did not complain. It's on Github.

Ok no idea, however that's what came up when I searched for 'structured data weight specification'

I got to it through here https://support.google.com/merchants/answer/6386198?hl=en-GB

'Attributes and schema.org annotations' - there's a link to 'product data specification'

I'll see if it works anyway.

23 Jul 2021, 12:26 PM
#106
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

torvista:

Those seem to be the specs for the XML feed, not the parameters embedded in the product file.

However, I added weight using educated guessing and the Rich Snippets tool did not complain. It's on Github.

Do I need to re-install the SQL? Or can I just overwrite the files?

23 Jul 2021, 3:53 PM
#107
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,874
Plugin Contributions:
7

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Always use a comparison tool like Beyond Compare to be very clear on code changes.
In this case only the jscript and readme have changed, as indicated by the history:
https://github.com/torvista/Zen_Cart-Structured_Data/commit/ddedb6c74846b37b905797bb7c51bc03313f952e

5 Aug 2021, 1:01 PM
#108
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

torvista:

Always use a comparison tool like Beyond Compare to be very clear on code changes.
In this case only the jscript and readme have changed, as indicated by the history:
https://github.com/torvista/Zen_Cart-Structured_Data/commit/ddedb6c74846b37b905797bb7c51bc03313f952e

Since I updated this to include weight it appears to be missing the

url and mpn from the data

"@context": "https://schema.org",                      "@type": "Product",                       "name": "Brass Plaques and Metal Memorial Name Signs Engraving in the UK",                      "image": "https://ventureengravings.uk/images/brass-plaques-uk.jpg",                "description": "Brass Memorial Plaques and Signs.Order Memorials and Metal Signs Online through our Website Today.Our Brass Plaques come with a range fixing options and corner finishes.Choose from a range of popular fonts, or if you have a custom font you would like to use, ask us if we can Engrave it for you.Please Note: All of our Engraved products are measured in inches. And text is always aligned central to the plaque, unless you state otherwise.When you purchase an Metal Signs and Memorials through our website, you can enter additional instructions during the checkout process.All spelling must be correct when you submit your specified requirements at time of purchase. Once your Brass Memorial Plaques or Signs has taken place, corrections will not be possible, so please ensure you check your spelling before sending it to us.",                        "sku": "Brass Plaques",                  "productID": "Brass Plaques",                      "brand": "Venture Engravings",                  "category" : "Brass Plaques",                               "offers" : {                                    "@type" : "Offer",                                    "price" : "28.99",                                 "lowPrice" : "28.99",                                "highPrice" : "28.99",                               "offerCount" : "962",                            "priceCurrency" : "GBP",                          "priceValidUntil" : "2021-12-31",                            "itemCondition" : "http://schema.org/NewCondition",                             "availability" : "http://schema.org/InStock",                                   "seller" : "Venture Engravings",                         "deliveryLeadTime" : "",                              "itemOffered" : "Brass Plaques and Metal Memorial Name Signs Engraving in the UK",                           "eligibleRegion" : "GB",                    "acceptedPaymentMethod" : {                                       "@type" : "PaymentMethod",                                        "name" : ["http://purl.org/goodrelations/v1#Paypal",                "http://purl.org/goodrelations/v1#SquarePay",                "http://purl.org/goodrelations/v1#Mastercard",                "http://purl.org/goodrelations/v1#Visa",                "http://purl.org/goodrelations/v1#AmericanExpress",                "http://purl.org/goodrelations/v1#Maestro"]                                              }                                          }

You can see here by the way (CODE IN FOOTER, NOT HEADER):

https://ventureengravings.uk/brass-plaques-and-brass-signs/brass-plaques-and-brass-signs-made-in-the-uk

And to compare, this site has your 2020 25 02 update on it which has the url and mpn in place:

https://businesscardprinting.uk/cheap-business-cards/cheap-affordable-business-cards-printing-online

5 Aug 2021, 1:25 PM
#109
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Nick1973:

Since I updated this to include weight it appears to be missing the

url and mpn from the data

"@context": "https://schema.org", "@type": "Product", "name": "Brass Plaques and Metal Memorial Name Signs Engraving in the UK", "image": "https://ventureengravings.uk/images/brass-plaques-uk.jpg", "description": "Brass Memorial Plaques and Signs.Order Memorials and Metal Signs Online through our Website Today.Our Brass Plaques come with a range fixing options and corner finishes.Choose from a range of popular fonts, or if you have a custom font you would like to use, ask us if we can Engrave it for you.Please Note: All of our Engraved products are measured in inches. And text is always aligned central to the plaque, unless you state otherwise.When you purchase an Metal Signs and Memorials through our website, you can enter additional instructions during the checkout process.All spelling must be correct when you submit your specified requirements at time of purchase. Once your Brass Memorial Plaques or Signs has taken place, corrections will not be possible, so please ensure you check your spelling before sending it to us.", "sku": "Brass Plaques", "productID": "Brass Plaques", "brand": "Venture Engravings", "category" : "Brass Plaques", "offers" : { "@type" : "Offer", "price" : "28.99", "lowPrice" : "28.99", "highPrice" : "28.99", "offerCount" : "962", "priceCurrency" : "GBP", "priceValidUntil" : "2021-12-31", "itemCondition" : "http://schema.org/NewCondition", "availability" : "http://schema.org/InStock", "seller" : "Venture Engravings", "deliveryLeadTime" : "", "itemOffered" : "Brass Plaques and Metal Memorial Name Signs Engraving in the UK", "eligibleRegion" : "GB", "acceptedPaymentMethod" : { "@type" : "PaymentMethod", "name" : ["http://purl.org/goodrelations/v1#Paypal", "http://purl.org/goodrelations/v1#SquarePay", "http://purl.org/goodrelations/v1#Mastercard", "http://purl.org/goodrelations/v1#Visa", "http://purl.org/goodrelations/v1#AmericanExpress", "http://purl.org/goodrelations/v1#Maestro"] } }

> 
> You can see here by the way (CODE IN FOOTER, NOT HEADER):
> 
> <https://ventureengravings.uk/brass-plaques-and-brass-signs/brass-plaques-and-brass-signs-made-in-the-uk>
> 
> And to compare, this site has your 2020 25 02 update on it which has the url and mpn in place:
> 
> <https://businesscardprinting.uk/cheap-business-cards/cheap-affordable-business-cards-printing-online>


I think I might have fixed it actually, was it just this line that needed adding?

```html
"weight": <?php echo json_encode($weight . TEXT_PRODUCT_WEIGHT_UNIT); ?>,
5 Aug 2021, 1:49 PM
#110
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Nick1973:

I think I might have fixed it actually, was it just this line that needed adding?

"weight": <?php echo json_encode($weight . TEXT_PRODUCT_WEIGHT_UNIT); ?>,


Just seen this line needed replacing as well:

```html
"weight" : "<?php echo ($weight + $product_attribute['weight'] > 0 ? $weight + $product_attribute['weight'] : $weight) . TEXT_PRODUCT_WEIGHT_UNIT; //if a subtracted attribute weight is less than zero, use base weight ?>",

Please can you check the data though as it appears to be just pulling the weight Unit and not the actual weight?

https://ventureengravings.uk/brass-plaques-and-brass-signs/brass-plaques-and-brass-signs-made-in-the-uk

5 Aug 2021, 4:17 PM
#111
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Nick1973:

Just seen this line needed replacing as well:

"weight" : "<?php echo ($weight + $product_attribute['weight'] > 0 ? $weight + $product_attribute['weight'] : $weight) . TEXT_PRODUCT_WEIGHT_UNIT; //if a subtracted attribute weight is less than zero, use base weight ?>",

> 
> Please can you check the data though as it appears to be just pulling the weight Unit and not the actual weight?
> 
> 
> <https://ventureengravings.uk/brass-plaques-and-brass-signs/brass-plaques-and-brass-signs-made-in-the-uk>


Ok I have managed to get this resolved myself. I'll PM you the fileset for you to go through, if there is anything you want to add to it that I may have missed torvista?
5 Aug 2021, 4:21 PM
#112
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Nick1973:

Ok I have managed to get this resolved myself. I'll PM you the fileset for you to go through, if there is anything you want to add to it that I may have missed torvista?

Just seen I can't attach the fileset I have updated so where can I send this to please?

6 Oct 2021, 1:30 PM
#113
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Hi,

I am getting these google search console messages for around 10% of my products "Products, Invalid object type for field "brand"".
Below is an example they provide.
The Brand is shown as Chiara which is the correct name of the manufacturer

  "sku": "CHJ-Y1811A",
  "productID": "CHJ-Y1811A",
      "brand": "Chiara",
  "category" : "Chiara 2021 Kollektion",

I have no clue what the problem is the message identifies so do not know what to fix, could somebody please help?

Many thanks

6 Oct 2021, 3:28 PM
#114
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,874
Plugin Contributions:
7

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Lots of info out there regarding this change that Google implemented.
This caught me on a loose minute, so I've updated Github accordingly.

6 Oct 2021, 3:41 PM
#115
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

torvista:

Lots of info out there regarding this change that Google implemented.
This caught me on a loose minute, so I've updated Github accordingly.

Good old google!

6 Oct 2021, 3:52 PM
#116
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

torvista:

Lots of info out there regarding this change that Google implemented.
This caught me on a loose minute, so I've updated Github accordingly.

Installed your update and it works fine on my test site, now to see how Google reacts.
Thanks again

6 Oct 2021, 4:53 PM
#117
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

marton_1:

Installed your update and it works fine on my test site, now to see how Google reacts.
Thanks again

You may already know this, but you can see how Google reacts by testing it at:

https://search.google.com/test/rich-results

6 Oct 2021, 7:24 PM
#118
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

simon1066:

You may already know this, but you can see how Google reacts by testing it at:

https://search.google.com/test/rich-results

Thanks, positive results from this test :)

11 Oct 2021, 6:31 PM
#119
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

marton_1:

Installed your update and it works fine on my test site, now to see how Google reacts.
Thanks again

Eventually, google recrawled my site and the brand problem has gone away - many thanks.

12 Oct 2021, 5:57 PM
#120
richard7315 avatar

richard7315

New Zenner

Join Date:
Jul 2017
Location:
West Midlands, UK
Posts:
51
Plugin Contributions:
1

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

torvista:

Where is the Google structured data specification for weight?

Thank you for offering the structured data add on. We have been testing this mod and it seems to work well for adding structured data.

We have tried to setup a google merchant center feed using the ‘website crawl’ option. Unfortunately we have been unable to get any products approved (our account uses weight based shipping).

The schema.org test states that “weight” is the correct attribute and does not generate any errors. However after google had completed the ‘website crawl’ all of our products were disapproved due to a missing value for the shipping_weight.

We have contacted google support and they claimed that the correct attribute is “shipping_weight” instead of “weight”. Updating the attribute appeared to make no difference. Google still disapproved all products and schema.ora stated that there was now an error.

As we cannot supply the weight to google and products do not update very often, we have decided to use an alternative mod https://github.com/torvista/Zen_Cart-Google_Merchant_Center_Feeder

Hopefully this post will help other users as I have spent five days trying to get the ‘website crawl’ feed to work correctly but have not found a solution. I would still recommend using the structured data mod to improve organic search rankings. Unfortunately it does not appear to be compatible with merchant center weight based shipping.