Page 9 of 20 FirstFirst ... 789101119 ... LastLast
Results 81 to 90 of 197
  1. #81
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    568
    Plugin Contributions
    0

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

    I keep getting these messages from Google merchant centre, Account issues. "Insufficient match of microdata price information & 28% of crawls within the last 7 days had a price mismatch" but no items are disapproved for this reason so I do not know which products to fix.

    My prices are rounded to the nearest 5 cents. After much research I found that when I use SaleMaker to discount my prices the correct rounded price is shown on my web page but the the structured data markup shows the unrounded price.

    Any ideas? I suppose I could drop the rounding but in my country technically prices not rounded to 5 cents are not allowed although this rule seems to be widely ignored.

  2. #82
    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...

    Can you put a link to a page that has this error, and a screenshot of the developer tools open that highlights the bit that is wrong.

    Then anyone can have a go and push it to Github...
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

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

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

    Thanks for your fast reply. Answers below if you need more just ask.

    Link
    https://www.simmar.ch/catalog/index....id=3089&sort=6

    Below are screenshots of how I do rounding in catalog\includes\functions/functions_general and the problem in the structured data
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	RoundingCalc.jpg 
Views:	31 
Size:	143.0 KB 
ID:	19191   Click image for larger version. 

Name:	Roundingerror.jpg 
Views:	37 
Size:	60.4 KB 
ID:	19192  

  4. #84
    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...

    The inherent problem with getting the price is that the price displayed/generated on the info page is embedded in text, so you can't use that in-built function to just get the number.

    Hence in jscript_plugin_structured_data, the price is manually calculated:

    PHP Code:
            //get the price with tax 
    $product_display_price_value round(zen_get_products_actual_price($product_id) * (zen_get_tax_rate($tax_class_id) / 100), 2);//show price with tax, decimal point (not comma), two decimal places 
    So you need to fiddle with that to get the rounding you need.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

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

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

    OK, thanks

  6. #86
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    568
    Plugin Contributions
    0

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

    Thanks for the tip, I added
    Code:
    //round price to 0.05 MH
    $product_display_price_value = round($product_display_price_value/5, 2)*5;
    in jscript_plugin_structured_data, after the following - ca. line 72:

    Code:
    PHP Code:
            //get the price with tax 
    $product_display_price_value = round(zen_get_products_actual_price($product_id) * (1 + zen_get_tax_rate($tax_class_id) / 100), 2);//show price with tax, decimal point (not comma), two decimal places
    Everything OK now

  7. #87
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    568
    Plugin Contributions
    0

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

    I assume this is the best thread for questions on the super data Markup plug in?

    I am updating from V155f with the responsive green classic template and PHP 5x and plugin structured data markup
    to V157 with responsive green classic template and PHP 7x.

    I downloaded the newest Super Data Markup plugin, ran the uninstall SQL for the old plugin, and the install SQL for the new.

    I got a whole string of "ERROR_LINE_INCOMPLETE" messages.
    I do not know what they mean?
    I cannot find the constant "ERROR_LINE_INCOMPLETE" on my web site

    The Super Data configuration page on my new web site V157 is set up OK and I can enter my data.

    My other problem is I do not find the following code in my html_header.php
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//.......
    There is
    Code:
    <!DOCTYPE html >
    <html <?php echo HTML_PARAMS; ?>>
    so I added the new code after <html...

    I do not find any code like
    Code:
    // DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' ......
    Last edited by marton_1; 14 Nov 2020 at 04:39 PM.

  8. #88
    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...

    I'm not sure what you are using, but if you didn't get it from my Github, it's out of date:

    https://github.com/torvista/zen-cart_Structured-Data

    Note to current users: this was recently updated to include markup for attributes and offer support for GTIN/MPN.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  9. #89
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    568
    Plugin Contributions
    0

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

    Thanks for the quick reply, most helpful.

  10. #90
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    568
    Plugin Contributions
    0

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

    Quote Originally Posted by torvista View Post
    I'm not sure what you are using, but if you didn't get it from my Github, it's out of date:

    https://github.com/torvista/zen-cart_Structured-Data

    Note to current users: this was recently updated to include markup for attributes and offer support for GTIN/MPN.
    Just to confirm it is working fine with V157.

 

 
Page 9 of 20 FirstFirst ... 789101119 ... 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