Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,390
    Plugin Contributions
    1

    Default Structured Data Markup - a need for 'Markdown' in Zen Cart

    Google Structured Data Tester continually throws errors when marking up 'articles' in EZ pages when links are included in the 'article body' ..... because of the commas ( " ) used in <a href="http://domain">anchor</a> which also includes those used for image source when images are included. The use of commas in JSON-LD markup suggests a 'tag'

    Markdown used for links [anchor](link address) would eliminate this issue because commas are not used- how can Markdown be incorporated in Zen Cart?

    cheers,
    Mike
    Last edited by shags38; 28 Nov 2019 at 12:07 PM.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    6,664
    Plugin Contributions
    262

    Default Re: Structured Data Markup - a need for 'Markdown' in Zen Cart

    When you say "commas" do you actually mean "double quotes?" Because otherwise I am completely confused by what you are saying.
    That Software Guy, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  3. #3
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,390
    Plugin Contributions
    1

    Default Re: Structured Data Markup - a need for 'Markdown' in Zen Cart

    Quote Originally Posted by swguy View Post
    When you say "commas" do you actually mean "double quotes?" Because otherwise I am completely confused by what you are saying.
    Sorry about that chief .... yes "double quotes".

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    6,664
    Plugin Contributions
    262

    Default Re: Structured Data Markup - a need for 'Markdown' in Zen Cart

    ok so next question: why is the structured data tester looking at your article body? It should be looking at the JSON data within the open and closing script tags.
    That Software Guy, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  5. #5
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,390
    Plugin Contributions
    1

    Default Re: Structured Data Markup - a need for 'Markdown' in Zen Cart

    Quote Originally Posted by swguy View Post
    ok so next question: why is the structured data tester looking at your article body? It should be looking at the JSON data within the open and closing script tags.
    It is looking at the JSON data between opening and closing tags - "articleBody": is a tag or member within the script opening and closing tags and it is within the opening and closing quotation marks for this member that it is finding quotation marks for links/image locations ..........

    So these are E-Z pages .... articles that I have written on the site. The structured data plugin I am using (Super Data by Melanie Prough) only marks up products - I want my articles marked up in an effort to have them qualify for rich snippets in SERP's and in general be prominent in Google.

    The Google Markup Helper, nominating 'article' does not include all the necessary tags (have no idea why not) - so I add the generated html to the page and the pages end up in Google Search console as 'Unparsable structured data' and in the report show a number of errors and warnings ("headline", "date modified" and a couple of other tags 'missing and required'.

    So I add the required tags manually having looked up the JSON-LD data requirements. This eliminates all the errors except this one;
    Parsing error: Missing '}' or object member name
    Through research of a number of forums and trial and error I found that by deleting any URL links within the article body the above error disappeared and the test passed with flying colors. The assumption is that the bot sees a quotation between the opening and closing marks that is not related to a 'tag' (member name) so it throws the error.

    So the result is that the 'marked up' JSON-LD data for the article does not include any links or images which seems counterproductive. Now my understanding of the purpose of structured data markup is that it gives Google a 'good idea of what is contained on the page' in a concise set of data to reduce crawling time .... and that its other purpose is to use that data for 'rich snippets' ..... both are important for SEO but it is the latter that is most important for maximizing potential exposure.

    *note: the same error appears on product pages if you mark them up manually (something I did on a few products for 'reviews' before the latest version of Super Data took care of that - no reason to do that now) - the reason for mentioning this is that it is probable that Melanie in her development of her plugin has obviated the problem in that for products that I have that have links in the descriptions I am not getting any parsing errors.

    cheers,
    Mike

  6. #6
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,390
    Plugin Contributions
    1

    Default Re: Structured Data Markup - a need for 'Markdown' in Zen Cart

    here is the script I use - when completed it tests fine (as 'article') ;

    <!-- JSON-LD markup generated by Google Structured Data Markup Helper. -->
    <script type="application/ld+json">
    {
    "@context" : "http://schema.org",
    "@type" : "Article",
    "mainEntityOfPage":{
    "@type":"WebPage"
    },
    "name" : " ",
    "author" : {
    "@type" : "Person",
    "name" : "Mike"
    },
    "datePublished" : " ",
    "dateModified" : " ",
    "headline" : " ",
    "image" : " ",
    "articleSection" : " ",
    "articleBody" : " ",
    "publisher" : {
    "@type" : "Organization",
    "name" : "site name",
    "logo": {
    "@type": "ImageObject",
    "url": "sitename/includes/templates/westminster_new/images/logo.png"
    }
    }
    }
    </script>

 

 

Similar Threads

  1. v155 Structured Data Markup for Schema, Facebook Open Graph, Twitter...
    By torvista in forum All Other Contributions/Addons
    Replies: 67
    Last Post: 19 Nov 2019, 05:00 PM
  2. Zen Cart Structured Data Module inv VAT
    By Congerman in forum General Questions
    Replies: 22
    Last Post: 6 Aug 2019, 11:13 PM
  3. v151 Structured Data plugin?
    By joejoe in forum All Other Contributions/Addons
    Replies: 47
    Last Post: 18 Feb 2017, 06:13 PM
  4. v150 Contact# structured data markup
    By ShopVille in forum General Questions
    Replies: 9
    Last Post: 12 Nov 2014, 03:01 PM
  5. Replies: 1
    Last Post: 23 Mar 2010, 05:23 AM

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