Page 5 of 7 FirstFirst ... 34567 LastLast
Results 41 to 50 of 68
  1. #41
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,046
    Plugin Contributions
    29

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

    I intend to review this shortly...
    Steve
    github.com/torvista: Spanish Language Pack, Image Checker, Structured Data, BackupMySQL Admin/Auto, Product Listing Sorter, Redsys payment module...

  2. #42
    Join Date
    Mar 2018
    Location
    Alabama
    Posts
    58
    Plugin Contributions
    0

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

    version 1.5.4

    Have this installed on one site and it works great. Info shows up on google structured data tester. Installed on another site and nothing shows on the google tester. The only difference is the template. This is the html header for the site that it does not work on.

    <?php
    /**
    * Common Template
    *
    * outputs the html header. i,e, everything that comes before the \</head\> tag <br />
    *
    * @package templateSystem
    * @copyright Copyright 2003-2011 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: html_header.php 19537 2011-09-20 17:14:44Z drbyte $
    */
    /**
    * load the module for generating page meta-tags
    */
    require(DIR_WS_MODULES . zen_get_module_directory('meta_tags.php'));
    /**
    * output main page HEAD tag and related headers/meta-tags, etc
    */
    ?>
    <!DOCTYPE html>
    <html <?php echo HTML_PARAMS; ?>>
    <head>
    <title><?php echo META_TAG_TITLE; ?></title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
    <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" />
    <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
    <meta name="author" content="The Zen Cart&reg; Team and others" />
    <meta name="generator" content="shopping cart program by Zen Cart&reg;, http://www.zen-cart.com eCommerce" />
    <?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance' || $robotsNoIndex === true) { ?>
    <meta name="robots" content="noindex, nofollow" />
    <?php } ?>
    <?php if (defined('FAVICON')) { ?>
    <link rel="icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
    <?php } //endif FAVICON ?>

    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" />
    <?php if (isset($canonicalLink) && $canonicalLink != '') { ?>
    <link rel="canonical" href="<?php echo $canonicalLink; ?>" />
    <?php } ?>

    <?php
    if ($_COOKIE['ResCookie'] != "full") {
    echo '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'css') . '/bootstrap-responsive.min.css" />';
    }
    ?>


    <?php
    /**
    * load all template-specific stylesheets, named like "style*.css", alphabetically
    */
    $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^style/', '.css');
    while(list ($key, $value) = each($directory_array)) {
    echo '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />'."\n";
    }

    /**
    * load stylesheets on a per-page/per-language/per-product/per-manufacturer/per-category basis. Concept by Juxi Zoza.
    */
    $manufacturers_id = (isset($_GET['manufacturers_id'])) ? $_GET['manufacturers_id'] : '';
    $tmp_products_id = (isset($_GET['products_id'])) ? (int)$_GET['products_id'] : '';
    $tmp_pagename = ($this_is_home_page) ? 'index_home' : $current_page_base;
    if ($current_page_base == 'page' && isset($ezpage_id)) $tmp_pagename = $current_page_base . (int)$ezpage_id;
    $sheets_array = array('/' . $_SESSION['language'] . '_stylesheet',
    '/' . $tmp_pagename,
    '/' . $_SESSION['language'] . '_' . $tmp_pagename,
    '/c_' . $cPath,
    '/' . $_SESSION['language'] . '_c_' . $cPath,
    '/m_' . $manufacturers_id,
    '/' . $_SESSION['language'] . '_m_' . (int)$manufacturers_id,
    '/p_' . $tmp_products_id,
    '/' . $_SESSION['language'] . '_p_' . $tmp_products_id
    );
    while(list ($key, $value) = each($sheets_array)) {
    //echo "<!--looking for: $value-->\n";
    $perpagefile = $template->get_template_dir('.css', DIR_WS_TEMPLATE, $current_page_base, 'css') . $value . '.css';
    if (file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" href="' . $perpagefile .'" />'."\n";
    }

    /**
    * load printer-friendly stylesheets -- named like "print*.css", alphabetically
    */
    $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^print/', '.css');
    sort($directory_array);
    while(list ($key, $value) = each($directory_array)) {
    echo '<link rel="stylesheet" type="text/css" media="print" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />'."\n";
    }

    /**
    * load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically
    */
    $directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js');
    while(list ($key, $value) = each($directory_array)) {
    echo '<script type="text/javascript" src="' . $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value . '"></script>'."\n";
    }

    /**
    * load all page-specific jscript_*.js files from includes/modules/pages/PAGENAME, alphabetically
    */
    $directory_array = $template->get_template_part($page_directory, '/^jscript_/', '.js');
    while(list ($key, $value) = each($directory_array)) {
    echo '<script type="text/javascript" src="' . $page_directory . '/' . $value . '"></script>' . "\n";
    }

    /**
    * load all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically
    */
    $directory_array = $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.php');
    while(list ($key, $value) = each($directory_array)) {
    /**
    * include content from all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically.
    * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
    */
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value); echo "\n";
    }
    /**
    * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
    */
    $directory_array = $template->get_template_part($page_directory, '/^jscript_/');
    while(list ($key, $value) = each($directory_array)) {
    /**
    * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
    * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
    */
    require($page_directory . '/' . $value); echo "\n";
    }

    // DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->';


    ?>
    <?php
    if ($_COOKIE['ResCookie'] != "full") {
    echo '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'css') . '/responsive_theme.css" />';
    }
    ?>
    </head>
    <?php // NOTE: Blank line following is intended: ?>

    I would really like to get this on the second site.

  3. #43
    Join Date
    Mar 2018
    Location
    Alabama
    Posts
    58
    Plugin Contributions
    0

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

    Ok, I got it to work, had something going on in my meta tags. Put that back to the original and it works good.

    Now I get 4 warnings.

    warningpriceCurrency

    The priceCurrency field is recommended. Please provide a value if available.
    warningaggregateRating

    The aggregateRating field is recommended. Please provide a value if available.
    warningbrand

    The brand field is recommended. Please provide a value if available.
    warningreview

    The review field is recommended. Please provide a value if available.


    What can be done about those.

  4. #44
    Join Date
    Mar 2018
    Location
    Alabama
    Posts
    58
    Plugin Contributions
    0

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

    Now that I have it working and have tested several URL I have noticed some work and some don't. Some show the product at the google structured data test and some do not. How can this be fixed?

  5. #45
    Join Date
    Mar 2018
    Location
    Alabama
    Posts
    58
    Plugin Contributions
    0

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

    Again, nevermind, I was do a catagory URL.

  6. #46
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,046
    Plugin Contributions
    29

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

    I've done some fiddling about with this plugin, including the sku and priceValidUntil.

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

    If there is anything else that needs attention, mention it now.
    Steve
    github.com/torvista: Spanish Language Pack, Image Checker, Structured Data, BackupMySQL Admin/Auto, Product Listing Sorter, Redsys payment module...

  7. #47
    Join Date
    Feb 2017
    Location
    Tokyo, Japan
    Posts
    174
    Plugin Contributions
    0

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

    Hi torvista,
    I'm a bit confused, do you have any information about Super Data Markup for Zen Cart v1.1.7 available here:
    https://zencart.codes/index.php?main...products_id=47
    The authors give you credit for the core aggregate rating query. Is that plugin more advanced and should be used instead, or are they entirely independent uses, and merely by the good fortune of open-source collaboration share your code?

    Further, is an updated version of your plugin available here or only from git?
    I see this appears to be yours:
    https://www.zen-cart.com/downloads.php?do=file&id=2215
    But also there is from swguy a plugin of the same name, but advanced to v1.1, and only available commercially:
    https://www.thatsoftwareguy.com/zenc...ured_data.html

    All these versions are making my head explode...
    Last edited by gernot; 26 Jun 2019 at 05:43 AM.
    Zen Cart 1.5.6c modified to support Japanese language (postage module support work in progress). Upgraded incrementally each version from initial 1.5.5d.

  8. #48
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,046
    Plugin Contributions
    29

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

    Yes it does look confusing.
    I can't answer. If you want to know the differences you'll have to manually Beyond Compare them. The version numbers are up to whoever feels like changing them.
    I update my Github only, not the Plugins version.
    Steve
    github.com/torvista: Spanish Language Pack, Image Checker, Structured Data, BackupMySQL Admin/Auto, Product Listing Sorter, Redsys payment module...

  9. #49
    Join Date
    Feb 2017
    Location
    Tokyo, Japan
    Posts
    174
    Plugin Contributions
    0

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

    Thanks torvista,
    Got it. I'll compare the Super Data Markup v1.1.7 and your git repo and decide from there which to install first (whichever is simpler for a first check).
    Zen Cart 1.5.6c modified to support Japanese language (postage module support work in progress). Upgraded incrementally each version from initial 1.5.5d.

  10. #50
    Join Date
    Feb 2017
    Location
    Tokyo, Japan
    Posts
    174
    Plugin Contributions
    0

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

    Hi torvista,
    From perusing the code, pretty much equivalent actually, in terms of functionality. Different approaches regarding finding appropriate images, and your plugin finds stock levels. v1.1.7 of Super Data Markup (the one from the zencode site) adds review capability which is not in v1.1.5, in the same way yours does (i.e., only supplying aggregate properties when reviews actually exist).
    I notice your code has a now probably defunct Google+ property at the end, after Twitter.
    I think I will try both of these in succession (testing their uninstalls too---I notice you kindly supply a correct uninstall for the Super Data Markup plugin, which I should test with v1.1.7 too), and see how they differ in practice. I don't (yet) use image handler, but if I did I would go for version 5 which seems to be current. And I do upload LRG and MED images into separate directories for my products.
    Not to forget: I am more inclined to use a plugin that has a support thread here, compared to one that does not.
    Zen Cart 1.5.6c modified to support Japanese language (postage module support work in progress). Upgraded incrementally each version from initial 1.5.5d.

 

 
Page 5 of 7 FirstFirst ... 34567 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