Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2009
    Posts
    31
    Plugin Contributions
    0

    Default Adding code to specific products

    Using version 1.5.1 for a musical instrument store. One of the product manufacturers has suggested that we add the following code to our web site to show that we are an authorized dealer of their products. I have added the footer script to as instructed below:

    Your Footer Script

    Install this script in the footer of all pages your site. This will enable any of the badges or other campaigns to load on any page you specify, only after the rest of your page content loads.

    <script type="text/javascript" src="http://cdn.channeliq.com/p/badging/keyboardconcepts.com.js"></script>

    Here is where I added the footer script:
    www>cart>includes>templates>my template>common>tpl_footer.php


    The instructions then say to do the following:

    Your Product Page Badge Tag

    Place this DIV tag on your product page where you would like the Channel IQ Authorized Retailer Badge to appear. Placement must be above the fold, near the product 'buy box'. Standard placement is in the place of a brand logo, under or near the product image, or near the 'Add to Cart' button.

    <div data-ciq-t="badge" data-ciq-p="product"></div>


    I have added this code to the item description box, however the badge does not appear as it is supposed to. any ideas on how I can make this work? Here is a link to the test page:
    http://www.keyboardconceptspiano.com...roducts_id=223

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Adding code to specific products

    That script 'should' load

    Open tpl_product_info_display.php

    look for:

    Code:
    <!--eof Reviews button and count -->
    below that put your supplied code:

    Code:
    <!--bof badge button -->
    <p class="buttonRow back">
    <div data-ciq-t="badge" data-ciq-p="product"></div>
    <br class="clearBoth" />
    </p>
    <!--eof badge button -->
    If it still does not appear you could try

    Code:
    <!--bof badge button -->
    <p class="buttonRow back">
    <script type="text/javascript" src="http://cdn.channeliq.com/p/badging/keyboardconcepts.com.js"></script>
    <div data-ciq-t="badge" data-ciq-p="product"></div>
    <br class="clearBoth" />
    </p>
    <!--eof badge button -->

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding code to specific products

    Question: is the badge supposed to appear on all of your products, or only certain ones? If only for some products (of a particular manufacturer), the div code would work easiest added to the product description. This would let you control when it appears without further complication. It would also be possible to write code in tpl_product_info_display.php that would activate it only for a certain manufacturer's products.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding code to specific products

    It might make a difference where you added the script in tpl_footer.php. Post the section of the file where you added it, with a few lines before and after for context.

  5. #5
    Join Date
    Dec 2009
    Posts
    31
    Plugin Contributions
    0

    Default Re: Adding code to specific products

    <?php
    /**
    * Template designed by 12leaves.com
    * 12leaves.com - Free ecommerce templates and design services
    *
    * Common Template
    *
    * @package templateSystem
    * @copyright Copyright 2009-2010 12leaves.com
    * @copyright Copyright 2003-2005 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: tpl_footer.php 4821 2006-10-23 10:54:15Z drbyte $
    */
    require(DIR_WS_MODULES . zen_get_module_directory('footer.php'));
    ?>

    <?php
    if (!isset($flag_disable_footer) || !$flag_disable_footer) {
    ?>

    <div id="navSuppWrapper">
    <!--bof-navigation display -->
    <?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?>
    <?php } ?>
    <!--eof-navigation display -->


    <!--bof- site copyright display -->
    <div id="siteinfoLegal" class="legalCopyright"><?php echo FOOTER_TEXT_BODY; ?></div> <br/>
    <!--eof- site copyright display -->

    <div class="legalCopyright">Web Development by <a target="_blank" href="http://www.wavmixer.com">WavMixer</a></div>
    <div class="clearBoth"></div>

    <!--bof-ip address display -->
    <?php
    if (SHOW_FOOTER_IP == '1') {
    ?>
    <div id="siteinfoIP"><?php echo TEXT_YOUR_IP_ADDRESS . ' ' . $_SERVER['REMOTE_ADDR']; ?></div>
    <?php
    }
    ?>
    <div class="clearBoth"></div>

    <!--eof-ip address display -->

    <div class="clearBoth"></div>
    </div>
    <script type="text/javascript" src="http://cdn.channeliq.com/p/badging/keyboardconcepts.com.js"></script>

    <!--bof-banner #5 display -->
    <?php
    if (SHOW_BANNERS_GROUP_SET5 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET5)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerFive" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
    }
    }
    ?>
    <!--eof-banner #5 display -->

    <?php
    } // flag_disable_footer
    ?>




    Thank you,
    -=WavMixer=-

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding code to specific products

    That script does appear in the source code of your page in the browser, so if it is correct in its URL it ought to load. I can't help with why a javascript is not functioning correctly.

  7. #7
    Join Date
    Dec 2009
    Posts
    31
    Plugin Contributions
    0

    Default Re: Adding code to specific products

    Thank you for looking into this.

 

 

Similar Threads

  1. Replies: 4
    Last Post: 23 Feb 2014, 09:39 PM
  2. v139g Adding custom code to a specific Ez Page
    By stephenconnolly in forum General Questions
    Replies: 3
    Last Post: 7 Oct 2012, 12:19 AM
  3. Adding information link for specific products
    By emilfalcon in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 30 Mar 2008, 09:27 AM
  4. Adding required fields for specific products
    By Capp-Ware in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 23 Aug 2007, 06:54 PM
  5. Possible to email order notifications of specific products to specific individuals?
    By lyricwings in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 5 Jun 2007, 04:25 PM

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