Results 1 to 7 of 7

Hybrid View

  1. #1
    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.

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

  3. #3
    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=-

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

  5. #5
    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