Page 1 of 2 12 LastLast
Results 1 to 10 of 193

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,637
    Plugin Contributions
    30

    Default 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.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  2. #2
    Join Date
    Feb 2008
    Location
    Philadelphia
    Posts
    283
    Plugin Contributions
    3

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

    Nice!!! Checking it out!

  3. #3
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default 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)

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

    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

  4. #4
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default 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!

  5. #5
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default 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!

  6. #6
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,637
    Plugin Contributions
    30

    Default 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?
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  7. #7
    Join Date
    May 2016
    Posts
    188
    Plugin Contributions
    0

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

    Quote Originally Posted by torvista View Post
    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
    http://www.youtube.com/c/csgodeimos - New Videos Wednesday & Saturday
    Gaming Content / Deimos

  8. #8
    Join Date
    May 2016
    Posts
    188
    Plugin Contributions
    0

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

    Click image for larger version. 

Name:	a7084ae0573dc6147b921435a82f981d.jpg 
Views:	2538 
Size:	19.1 KB 
ID:	17135

    Here's the graph
    http://www.youtube.com/c/csgodeimos - New Videos Wednesday & Saturday
    Gaming Content / Deimos

  9. #9
    Join Date
    Feb 2016
    Location
    Canada
    Posts
    148
    Plugin Contributions
    0

    Default 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

  10. #10
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,637
    Plugin Contributions
    30

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

    Indeed! There was a surplus bracket there.

    Line 275 should be
    PHP Code:
        if ( isset($reviewArray) && is_array($reviewArray) ) { 
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 13
    Last Post: 27 Jun 2019, 05:31 AM
  2. v150 Contact# structured data markup
    By ShopVille in forum General Questions
    Replies: 9
    Last Post: 12 Nov 2014, 03:01 PM
  3. I want to add Facebook open graph tags
    By stevemax in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Jul 2011, 07:07 PM
  4. Where do I add facebook open graph tags?
    By surlybroad in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 25 May 2011, 04:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR