Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Super Data Markup installation instructions wrong

    I am using v1.5.5f and tried installing Super Data Markup plugin but the following instructions do not make sense:

    4b. Open includes\templates\your_template\common\html_header.php
    Find:

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

    Add directly after:
    <?php require($template->get_template_dir('super_data_head.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/super_data_head.php'); ?>

    Before the ending </head> tag.


    This file is NOT included in the plugin so there is no way the following statement exists in the html_header.php file - <?php require($template->get_template_dir('super_data_head.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/super_data_head.php'); ?>

    And i am supposed to add lines of code after that statement. Is this an error in the documentation? There were only 2 files that came with the download that needed to be added to includes/template/my template/templates. There were super_data_body.php and super_data_head.php

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Super Data Markup installation instructions wrong

    If the file is not present in your template, you copy it from the template_default folder to your template.

  3. #3
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Re: Super Data Markup installation instructions wrong

    Quote Originally Posted by Design75 View Post
    If the file is not present in your template, you copy it from the template_default folder to your template.
    the file IS there but how could it have this statement in it? <?php require($template->get_template_dir('super_data_head.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/super_data_head.php'); it does not.

  4. #4
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Super Data Markup installation instructions wrong

    Quote Originally Posted by lidlchris View Post
    the file IS there but how could it have this statement in it? <?php require($template->get_template_dir('super_data_head.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/super_data_head.php'); it does not.
    I can see the confusion....
    This is the code you have to add to this file

  5. #5
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Re: Super Data Markup installation instructions wrong

    the fact that it is looking for 'super_data_head.php' in the html_header.php file means that file should have been updated by this plugin, correct?? but there are only 3 files TOTAL in the download and none of them are html_headerl.php. so where would i look for that statement - Add directly after:
    <?php require($template->get_template_dir('super_data_head.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/super_data_head.php'); ?>

  6. #6
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Re: Super Data Markup installation instructions wrong

    so i have to ADD this code and not look for that statement to add it after it??

  7. #7
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Super Data Markup installation instructions wrong

    Add directly after:
    Refers to add after the "PREVIOUS" commented out debug code
    This is where you add the new code

  8. #8
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Super Data Markup installation instructions wrong

    I expect that code fragment would end up looking like this (I haven't checked this)
    Code:
    // 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  require($template->get_template_dir('super_data_head.php',DIR_WS_TEMPLATE,  $current_page_base,'templates'). '/super_data_head.php'); ?>

  9. #9
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,106
    Plugin Contributions
    11

    Default Re: Super Data Markup installation instructions wrong

    I believe the intent was
    Quote Originally Posted by lidlchris View Post
    4b. Open includes\templates\your_template\common\html_header.php
    Find:

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

    Add directly after the above line:
    <?php require($template->get_template_dir('super_data_head.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/super_data_head.php'); ?>

    Be sure it's inserted before the ending </head> tag.

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

    Default Re: Super Data Markup installation instructions wrong

    This thread would have been more appropriate, but I posted some comments about the instructions of this plugin here:
    https://www.zen-cart.com/showthread....ow-without-tax
    I noted there is a new version (1.1.7) available, but this is not (yet?) updated here on this site.
    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.

 

 

Similar Threads

  1. v155 Structured Data Markup for Schema, Facebook Open Graph, Twitter...
    By torvista in forum Addon Admin Tools
    Replies: 192
    Last Post: 27 Nov 2023, 10:42 PM
  2. Replies: 13
    Last Post: 27 Jun 2019, 05:31 AM
  3. v154 Installing Super Data Markup, Prices show without tax
    By istilah in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 26 Jun 2019, 04:23 AM
  4. v150 Contact# structured data markup
    By ShopVille in forum General Questions
    Replies: 9
    Last Post: 12 Nov 2014, 03:01 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