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/Structur...a-for-Zen-Cart
No size fits all, please be prepared to modify things for your particular business.
Let me know of any problems.
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
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 www.simmar.ch/catalog if you want to take a look
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!
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!
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?
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Great thanks.
As mentioned this plugin is really useful and easy to use :)
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:
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Quote:
Originally Posted by
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/Structur...a-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
1 Attachment(s)
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Attachment 17135
Here's the graph :blink: