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 161 to 180 of 212
18 Feb 2022, 5:10 AM
#161
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

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

simon1066:

Although I haven't kept up with the latest updates for this plugin, I think (my notes aren't great) that I had to add a 'Brand' object type. In jscript_plugin_structured_data.php I changed:

"brand": <?php echo json_encode($manufacturer_name); ?>,

> to
> ```
"brand" : {
              "@type" : "Brand",
               "name" : <?php echo json_encode($manufacturer_name); ?>
                },

With this I don't get a Brand warning in https://search.google.com/test/rich-results

many thanks Simon - worked a treat

18 Feb 2022, 5:12 AM
#162
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

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

torvista:

Just tested one of my products. No errors.
This is the relevant html generated. Using same code as GitHub.

"googleProductCategory": "2788",
"brand": {
"@type" : "Brand",
"name" : "Scottoiler"
},
"category" : "Spare Parts",

many thanks Steve - wiil check the current status of code in GitHub in future before posting in here :cool:

10 Mar 2022, 5:45 PM
#163
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...

Will this version work on 1.5.6c?

https://github.com/torvista/Zen_Cart-Structured_Data

10 Mar 2022, 7:09 PM
#164
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...

Probably, but as always, test on a development server first.

15 May 2022, 9:08 AM
#165
giancalr avatar

giancalr

Zen Follower

Join Date:
Jul 2010
Location:
L'Aquila
Posts:
113
Plugin Contributions:
1

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

Hello, once you have installed the plug in from these errors in the products:
__comment

attribute stock handling default: zc_default (The __comment property is not recognized by the schema (e.g. schema.org) for an object of type Product.)

warninglowPrice

10 (The lowPrice property is not recognized by the schema (e.g. schema.org) for an object of type Offer.)
warninghighPrice

10 (The highPrice property is not recognized by the schema (e.g. schema.org) for an object of type Offer.)
warningofferCount

14 (The offerCount property is not recognized by the schema (e.g. schema.org) for an object of type Offer.)

other errors are attached

15 May 2022, 9:29 AM
#166
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...

You are using the Github version?

16 May 2022, 8:28 AM
#167
giancalr avatar

giancalr

Zen Follower

Join Date:
Jul 2010
Location:
L'Aquila
Posts:
113
Plugin Contributions:
1

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

Hello, we use that version, but in admin there is no option that allows you to insert SKU etc etc is there any modification to do in some file?

16 May 2022, 9:31 AM
#168
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...

SKU, EAN, ISBN, etc. are site-specific so no plug and play solution is considered.

Information about including additional fields is in the readme:
https://github.com/torvista/Zen_Cart-Structured_Data

and commented in the code where customisation is required to pull in your custom database fields.

16 May 2022, 9:33 AM
#169
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...

attribute stock handling default: zc_default (The __comment property is not recognized by the schema (e.g. schema.org) for an object of type Product.)
Can you post an obfuscated link to the page that has the problem?

16 May 2022, 10:12 AM
#170
giancalr avatar

giancalr

Zen Follower

Join Date:
Jul 2010
Location:
L'Aquila
Posts:
113
Plugin Contributions:
1

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

The site is this: https://www.biocanapa.abruzzo.it/caramel-canapa-p-4.html
in the FAq it says:
SKU / MPN / GTIN

This section describes adding custom fields to your product table.

There is a companion Plugin available to both install custom fields and add the corresponding fields in the admin Product Edit page:

https://github.com/torvista/Zen_Cart-Extra_Product_Fields

sku: is populated by products_model. This is the code used by your shop, which is probably unique to your shop.

mpn: is the original manufacturers part number. It is unlikely that you are using that as your shop sku, so you will need to add this column to your products table and populate it.

ALTER TABLE products ADD products_mpn VARCHAR (32) NOT NULL DEFAULT '';

gtin: international identification number that depends on the products you sell: UPC / GTIN-12 / EAN / JAN / ISBN / ITF-14. You'll need to deal with this similarly to mpn.

I used ean and added a products_ean field to the products table:

ALTER TABLE products ADD products_ean VARCHAR (13) NOT NULL DEFAULT '';

In the code, you will need to modify the code to use the column names you have created: the necessary sections for modification are marked CUSTOM CODING.

By default, they are left unpopulated so Google Rich Results Tool will remind you they are missing.

But which file needs to be changed?

16 May 2022, 4:41 PM
#171
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...

But which file needs to be changed?

There is only one file that does everything, all changes are made in that file: jscript_plugin_structured_data.php

30 Jun 2022, 7:33 AM
#172
flappingfish avatar

flappingfish

Zen Follower

Join Date:
Nov 2020
Posts:
319
Plugin Contributions:
4

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

i'm getting the following error shown by google console saying my data-vocabulary.org schema is deprecated on just 137 pages out of thousands, is this the fix im looking for guys?

30 Jun 2022, 8:33 AM
#173
flappingfish avatar

flappingfish

Zen Follower

Join Date:
Nov 2020
Posts:
319
Plugin Contributions:
4

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

flappingfish:

i'm getting the following error shown by google console saying my data-vocabulary.org schema is deprecated on just 137 pages out of thousands, is this the fix im looking for guys?

Attachment 20040

also 830 valid pages with warnings, my seo ranking has tanked too ;/

30 Jun 2022, 11:44 AM
#174
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...

Are you using the Github version? If not, try it.

2 Jul 2022, 4:20 PM
#175
flappingfish avatar

flappingfish

Zen Follower

Join Date:
Nov 2020
Posts:
319
Plugin Contributions:
4

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

torvista:

Are you using the Github version? If not, try it.

i've been looking into the issue and come across this when i googled the issue as one of the top results, yet to give it a go. I had some assistance from a zen veteran to get my checkout issue sorted out after a company made a mess of the site, ive asked him about installing as the installation notes put me off attempting it lol. it seems my site has dropped off in the google search results, i use google product search feeder and recently my approved items have had poor performance, i used to be able to find my stores items in seconds on a shopping search, my assumption is anything on google console would be my issue, it seems this one issue may be the cause in the drop in sales ect. trend micro also had my site marked as a "phising scam" i emailed them and they changed it to "safe shopping with noteworthy content" and my trust score changed from 0 to 100. wondering if that was caused by the same issue?

8 Nov 2022, 7:38 AM
#176
vasilt avatar

vasilt

New Zenner

Join Date:
Jan 2006
Posts:
44
Plugin Contributions:
0

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

Hello,
Testing this plugin on 1.5.8 and got this error log:

PHP Fatal error: Uncaught Error: Cannot access protected property breadcrumb::$_trail in ..\includes\templates\responsive_classic\jscript\jscript_plugin_structured_data.php:400
Stack trace:
#0 ..\includes\templates\responsive_classic\common\html_header.php(172): require()
#1 ..\index.php(42): require('...')
#2 {main}
thrown in ..\includes\templates\responsive_classic\jscript\jscript_plugin_structured_data.php on line 400

Any ideas?

8 Nov 2022, 9:01 AM
#177
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...

Are you using the latest version?
https://github.com/torvista/Zen_Cart-Structured_Data

8 Nov 2022, 9:07 AM
#178
vasilt avatar

vasilt

New Zenner

Join Date:
Jan 2006
Posts:
44
Plugin Contributions:
0

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

Yes, fresh download from yesterday. When I comment out line 400 in jscript_plugin_structured_data. php everything is smooth but there’s no breadcrumb in the schema.

8 Nov 2022, 9:33 AM
#179
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
507
Plugin Contributions:
1

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

try replacing line 400

$breadcrumb_this_page = $breadcrumb->_trail[count($breadcrumb->_trail) - 1]['title'] ?? '';

with

$breadcrumb_this_page = $breadcrumb->last() ?? '';
8 Nov 2022, 10:05 AM
#180
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...

Changes for ZC158 were not pushed to Github, use the version online now.