Page 20 of 20 FirstFirst ... 10181920
Results 191 to 197 of 197
  1. #191
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,264
    Plugin Contributions
    3

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

    LOG FILE showing the following:

    PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/MYDOMAIN/public_html/includes/modules/pages/product_info/jscript_structured_data_product.php on line 38.

    PHP Code:
    $reviewCount sizeof($reviewArray);
    if (
    $reviewCount != 0) {
      
    $ratingValue array_sum($ratingSum) / $reviewCount;
    } else {
      
    $ratingValue 0;

    Is there a fix?
    20 years a Zencart User

  2. #192
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,264
    Plugin Contributions
    3

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

    OK - this seems to be a legacy issue with a piece of script I got elsewhere.

    I suspended the relevant file (jscript_structured_data_product.php) and the log error is not happening now. Site seems to be functioning OK.
    20 years a Zencart User

  3. #193
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,754
    Plugin Contributions
    30

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

    Firstly, use the only-version_that-gets_updated from GitHib:

    https://github.com/torvista/Zen_Cart-Structured_Data
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  4. #194
    Join Date
    Apr 2011
    Posts
    507
    Plugin Contributions
    0

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

    I am getting errors while running Google Schema validator.

    "The property googleProductCategory is not recognized by the schema (e.g. schema.org) for an object of type Product.)"

    Product Category is defined in the jsscript.

    How can this be fixed please?

    thank you

    PS: open the issue in github too as i wasn't sure how to get support for this.

  5. #195
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,190
    Plugin Contributions
    63

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

    Quote Originally Posted by nicksab View Post
    I am getting errors while running Google Schema validator.

    "The property googleProductCategory is not recognized by the schema (e.g. schema.org) for an object of type Product.)"

    Product Category is defined in the jsscript.

    How can this be fixed please?

    thank you

    PS: open the issue in github too as i wasn't sure how to get support for this.
    No fix is required. googleProductCategory which Google wants is not part of schema... that's all =)

    https://support.google.com/merchants.../6324436?hl=en

    Code:
    When to use
    Optional Optional for each product
    
    Google will only accept a product category override in the following cases:
    
    1. Calculation of US taxes. For products sold in the US, you can override Google’s automatic categorization to ensure that the correct US tax rate is applied to your product.
    2. Enforcement of category-specific attribute requirements. Some product categories (such as Apparel & Accessories, Mobile Phones, or Software) impose additional required fields. If Google incorrectly assigns your product to one of these categories, use this attribute to override the categorization and remove the category-specific requirements.
    3. Targeting of Google Ads campaigns. If you’ve defined any of your ad campaigns based upon Google’s product categories, you can use this attribute to reassign products within your campaign structure.
    4. Alcohol. Alcoholic beverages must be correctly categorized. If the category of your product is incorrectly assigned, you can use the Google product category [google_product_category] attribute to override it and ensure that your product remains compliant. Learn more about our Alcoholic beverages policy.
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  6. #196
    Join Date
    Apr 2011
    Posts
    507
    Plugin Contributions
    0

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

    Quote Originally Posted by mprough View Post
    No fix is required. googleProductCategory which Google wants is not part of schema... that's all =)

    https://support.google.com/merchants.../6324436?hl=en

    Code:
    When to use
    Optional Optional for each product
    
    Google will only accept a product category override in the following cases:
    
    1. Calculation of US taxes. For products sold in the US, you can override Google’s automatic categorization to ensure that the correct US tax rate is applied to your product.
    2. Enforcement of category-specific attribute requirements. Some product categories (such as Apparel & Accessories, Mobile Phones, or Software) impose additional required fields. If Google incorrectly assigns your product to one of these categories, use this attribute to override the categorization and remove the category-specific requirements.
    3. Targeting of Google Ads campaigns. If you’ve defined any of your ad campaigns based upon Google’s product categories, you can use this attribute to reassign products within your campaign structure.
    4. Alcohol. Alcoholic beverages must be correctly categorized. If the category of your product is incorrectly assigned, you can use the Google product category [google_product_category] attribute to override it and ensure that your product remains compliant. Learn more about our Alcoholic beverages policy.
    Thank you for the explanation. It makes sense. It just gets me every time these online testing tools start displaying errors without much assistance.

    Anyway, how can i add an extra "optional field" if possible? It is to solve : " Missing field "shippingDetails" (in "offers")"

    Thank you

  7. #197
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,190
    Plugin Contributions
    63

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

    Quote Originally Posted by nicksab View Post
    Thank you for the explanation. It makes sense. It just gets me every time these online testing tools start displaying errors without much assistance.

    Anyway, how can i add an extra "optional field" if possible? It is to solve : " Missing field "shippingDetails" (in "offers")"

    Thank you
    Set up your shipping inside of Google Shopping =)
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

 

 
Page 20 of 20 FirstFirst ... 10181920

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