Page 16 of 20 FirstFirst ... 61415161718 ... LastLast
Results 151 to 160 of 193
  1. #151
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

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

    line 370 is here:

    PHP Code:
    $breadcrumb_this_page $breadcrumb->_trail[count($breadcrumb->_trail) - 1]['title'] ?? ''
    https://github.com/torvista/Zen_Cart..._data.php#L370

    my guess is the you are running a version of php less than 7.0 which makes use of the coalesce (??) operator.

    if so, you probably should upgrade your php version and perhaps your version of ZC as php versions less than 7.0 have been end of life for quite some time.

    alternatively, you could try changing the code to:

    PHP Code:
    $breadcrumb_this_page '';
    if (isset(
    $breadcrumb->_trail[count($breadcrumb->_trail) - 1]['title']) {
       
    $breadcrumb_this_page $breadcrumb->_trail[count($breadcrumb->_trail) - 1]['title'];

    if line 370 is something different, feel free to ignore everything i said!

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

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

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

    My bad, I do forget to set my IDE back to 5.6. Fix pushed.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  3. #153
    Join Date
    Apr 2011
    Posts
    381
    Plugin Contributions
    0

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

    Quote Originally Posted by carlwhat View Post
    line 370 is here:

    PHP Code:
    $breadcrumb_this_page $breadcrumb->_trail[count($breadcrumb->_trail) - 1]['title'] ?? ''
    https://github.com/torvista/Zen_Cart..._data.php#L370

    my guess is the you are running a version of php less than 7.0 which makes use of the coalesce (??) operator.

    if so, you probably should upgrade your php version and perhaps your version of ZC as php versions less than 7.0 have been end of life for quite some time.

    alternatively, you could try changing the code to:

    PHP Code:
    $breadcrumb_this_page '';
    if (isset(
    $breadcrumb->_trail[count($breadcrumb->_trail) - 1]['title']) {
       
    $breadcrumb_this_page $breadcrumb->_trail[count($breadcrumb->_trail) - 1]['title'];

    if line 370 is something different, feel free to ignore everything i said!

    best.
    Thank you.

  4. #154
    Join Date
    Apr 2011
    Posts
    381
    Plugin Contributions
    0

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

    I spoke too fast. I am getting another error:

    --> PHP Parse error: syntax error, unexpected '{' in /home/zch1akhw6q3m/public_html/includes/templates/Royal_Fleur/jscript/jscript_plugin_structured_data.php on line 371.


    Sorry for the noob question. I don't know anything about coding. And you are correct. I am on a PHP 5.6 with ZC 1.5.6 version
    . My whole site is due for an update but i haven't managed to get on it yet.

  5. #155
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,586
    Plugin Contributions
    30

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

    First check you are using the current file from GitHub.
    If the error persists, please paste what is on the referenced line of the file.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  6. #156
    Join Date
    Apr 2011
    Posts
    381
    Plugin Contributions
    0

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

    Quote Originally Posted by torvista View Post
    First check you are using the current file from GitHub.
    If the error persists, please paste what is on the referenced line of the file.

    I got the updated version from github and it fixed my previous issue.

    I am having another problem. ( see screenshot)

    All my product have a 3 star rating on google but i don t have any product review.

    Where is it taking the review rating from?

    Also the date showing for the review is the date the product was first added to the store.

    Any ideas regarding the 3 star on all my products??

    the store is at royal-fleur.com

    Any help will appreciated thank you

    Click image for larger version. 

Name:	pdct review1.jpg 
Views:	33 
Size:	64.1 KB 
ID:	19854Click image for larger version. 

Name:	pdct review2.jpg 
Views:	32 
Size:	51.6 KB 
ID:	19855

  7. #157
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,586
    Plugin Contributions
    30

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

    Reviews: that's to prevent a load of Google Rich Tool warnings about no reviews. I've updated the Github readme on this.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  8. #158
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

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

    Hi Steve - I am using your latest version of Structured Data downloaded from GitHub recently on a V1.5.7b site and all is good with just this one query - in all cases Google is flagging a 'warning' for products in testing the markup via Google Rich Results ... 'Invalid object type for field "brand" .... this is auto filled correctly and when testing using https://validator.schema.org/ there are no warnings.

    So just wondering if there was a fix for this or is it simply Google being google?

    cheers, Mike

  9. #159
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

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

    Quote Originally Posted by shags38 View Post
    Hi Steve - I am using your latest version of Structured Data downloaded from GitHub recently on a V1.5.7b site and all is good with just this one query - in all cases Google is flagging a 'warning' for products in testing the markup via Google Rich Results ... 'Invalid object type for field "brand" .... this is auto filled correctly and when testing using https://validator.schema.org/ there are no warnings.

    So just wondering if there was a fix for this or is it simply Google being google?

    cheers, Mike
    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:

    Code:
    "brand": <?php echo json_encode($manufacturer_name); ?>,
    to
    Code:
    "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
    Simon

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

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

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

 

 
Page 16 of 20 FirstFirst ... 61415161718 ... 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