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,419

Results 1 to 20 of 212
14 Feb 2017, 1:00 PM
#1
torvista avatar

torvista

Totally Zenned

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

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

I have done a Plugin that adds Schema (in JSON-LD format), Facebook and Twitter structured markup to all pages.
This plugin was based on the Super Data code with reviews and breadcrumbs added from Zen 4All Github but my modifications got out of hand and I redid it completely.

Plugin Page: Zen Cart Structured Data

Latest version, which may be more up-to-date is here:
https://github.com/torvista/Structured-Data-for-Zen-Cart

No size fits all, please be prepared to modify things for your particular business.
Let me know of any problems.

24 Feb 2017, 3:04 PM
#2
jimmyv avatar

jimmyv

Zen Follower

Join Date:
Feb 2008
Location:
Philadelphia
Posts:
292
Plugin Contributions:
2

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

Nice!!! Checking it out!

5 Apr 2017, 2:52 PM
#3
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...

Great plugin
Installed on my test system and it worked first time (which is unusual for me) :clap:

Installed on my live site and ran the Google test tool; no errors or warnings! :smile:

Couple of questions, hope you can help!
I got an "unspecified type" message; I clicked on the detail but it did not show where on my web page it failed?
See image below

Also on payment method I always see type "LoanOrCredit" even for cash! I do not see where this wording is generated.

acceptedPaymentMethod
@type
LoanOrCredit
name
http://purl.org/goodrelations/v1#Cash

My website is https://www.simmar.ch/catalog if you want to take a look

7 Apr 2017, 12:04 AM
#4
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...

Did some more research and found "LoanOrCredit" comes from https://schema.org/acceptedPaymentMethod, does not explain why it shows up for non-loan payment methods!

7 Apr 2017, 2:30 PM
#5
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...

I tried adding itemtype="http://schema.org/WebPage to the definition of HTML_PARAMS which seems to work on other web sites that do not have the "unspecified type" message!

7 Apr 2017, 8:50 PM
#6
torvista avatar

torvista

Totally Zenned

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

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

  1. Unspecified type seems to be a problem with the Google tool, not the Facebook markup. This is now referenced in the readme.
  2. The paymentmethod is fixed, that was a bug.
  3. added a fix for the reviews datepublished format as pointed out by lat9.

Any other issues that others have come across?

7 Apr 2017, 10:08 PM
#7
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...

Great thanks.

As mentioned this plugin is really useful and easy to use :)

7 Apr 2017, 10:24 PM
#8
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...

Just to say I installed the update and I confirm the payment method is fixed. :smile:

11 Jul 2017, 1:26 PM
#9
csgodeimos avatar

csgodeimos

Zen Follower

Join Date:
May 2016
Posts:
191
Plugin Contributions:
0

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

torvista:

I have done a Plugin that adds Schema (in JSON-LD format), Facebook and Twitter structured markup to all pages.
This plugin was based on the Super Data code with reviews and breadcrumbs added from Zen 4All Github but my modifications got out of hand and I redid it completely.
Full details here:
https://github.com/torvista/Structured-Data-for-Zen-Cart

No size fits all, please be prepared to modify things for your particular business.
Let me know of any problems.

Does this function better than the Super Data module? We're using that on our site but it seems like it's not functioning as intended. Can I drop these files in without uninstalling super data?

We have like 3000 products and it seems only a few of them are marked and we randomly dropped from 300 marked pages to 45 on Saturday :lookaroun

11 Jul 2017, 1:36 PM
#10
csgodeimos avatar

csgodeimos

Zen Follower

Join Date:
May 2016
Posts:
191
Plugin Contributions:
0

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

Attachment 17135

Here's the graph :blink:

24 Oct 2017, 12:49 PM
#11
allmart avatar

allmart

Zen Follower

Join Date:
Feb 2016
Location:
Canada
Posts:
192
Plugin Contributions:
0

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

When installing this I get a blank page on my test site. Checked my log and get the following error:
PHP Parse error: syntax error, unexpected '{' in /volume1/web/includes/templates/xxxx/jscript/jscript_plugin_structured_data.php on line 275
Any thoughts on this error please

24 Oct 2017, 1:25 PM
#12
torvista avatar

torvista

Totally Zenned

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

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

Indeed! There was a surplus bracket there.

Line 275 should be

    if ( isset($reviewArray) && is_array($reviewArray) ) {
24 Oct 2017, 6:16 PM
#13
allmart avatar

allmart

Zen Follower

Join Date:
Feb 2016
Location:
Canada
Posts:
192
Plugin Contributions:
0

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

Thank you ... Great Addon!

8 Jan 2018, 10:09 AM
#14
ttfan avatar

ttfan

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
231
Plugin Contributions:
0

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

Is anyone else using this successfully? Does it work on ZC v1.5.5d?

8 Jan 2018, 10:28 AM
#15
torvista avatar

torvista

Totally Zenned

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

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

It's valid to 1.55e. f not tried yet, but probably is fine.

8 Jan 2018, 11:39 AM
#16
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...

ttfan:

Is anyone else using this successfully? Does it work on ZC v1.5.5d?

Yes and 155e, great addon

10 Jan 2018, 1:14 AM
#17
ttfan avatar

ttfan

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
231
Plugin Contributions:
0

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

Thank you!

23 Jun 2018, 9:12 PM
#18
explorer40 avatar

explorer40

New Zenner

Join Date:
Jul 2017
Location:
Sotheastern, North Carolina, USA
Posts:
5
Plugin Contributions:
0

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

Thank You! Great add-on, worked on first try on v1.5.5f.

3 Oct 2018, 4:23 PM
#19
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

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

Ok, I managed to dive into the deep end. Everything working as advertised. FYI dont look for the new meta tags at the top of the source code where you usually find them. They are ALOT further down.

18 Oct 2018, 3:45 AM
#20
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...

Hi Steve - I have a couple of questions if I may;

**Can your plugin add structured data to Featured Products, New Products and/or Specials on the index page? **
refer to this home page (store.harmonynecklace dot com) of a competitor that has 5 products that show on the structured data test on the index page url - it is a Shopify store and no doubt they have their own inbuilt code (or plugin) that applies the structured data attributes to every / all individual products on a page - this is consistent throughout the site - even a specific item product page which also offers accessory products on that page, like 'Better_Together" plugin for ZC at the bottom of the product page, all are marked up.

I figure that this would offer some advantage over an index page with nothing other than 'organization' in structured data (YES/NO) and each of us can use any advantage we can get, right? It is understood that the other products shown on the front page and at the bottom of product pages of this example site are fixed products, i.e. they are not managed / configured like featured products or better together for example which can swap and change.

The other question was asked by someone else on page #1 in this thread but not answered, and in your readme you suggest that this plugin is better than Super_Data, also suggesting that Super Data doesn't work (properly, or as intended) - can you maybe explain why / how your plugin is better - as you can appreciate I would like to make sure I am using the best available plugin for a particular purpose.

cheers,
Mike