Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2006
    Posts
    4
    Plugin Contributions
    0

    Default Extra center module for logos?

    Hi folks,

    I'm not one to just post without searching and as I spent the last 20 mins trying to find an answer without success, here goes...

    I want to add another module to the centre column in the same format as New Products, Specials, Upcoming etc. I started off by grabbing and modifying the code from tpl_index_default.php which displays the modules. I then created my own page and referenced where needed but it won't display.

    I thought maybe in PHP (I'm a PHP n00b!) I can only use a key once? i.e. I can't say "switch on this that the other when one key is flagged 'yes"

    Any thoughts?

    Code:
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?>
    <?php
    /**
     * display the Tech Logos Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_tech_logos.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_tech_logos.php'); ?>
    <?php } ?>
    Code:
    <?php
    /**
     * Module Template
     *
     * @package templateSystem
     * @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_modules_whats_new.php 2935 2006-02-01 11:12:40Z birdbrain $
     */
      $zc_show_new_products = false;
      include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEW_PRODUCTS));
    ?>
    
    <!-- bof: tech logos -->
    <?php if ($zc_show_new_products == true) { ?>
    <div class="centerBoxWrapper" id="techLogos">
    <?php echo '<a href="http://www.trustlogo.com/">Trust Logo</a>'; ?>
    </div>
    <?php } ?>
    <!-- eof: tech logos -->

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Extra center module for logos?

    Why not download this contribution and modify it to your needs.

    http://www.zen-cart.com/index.php?ma...roducts_id=161

  3. #3
    Join Date
    Oct 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Extra center module for logos?

    Interesting! I might give that a go. It never crossed my mind to try something like that as I'm a PHP n00b and didn't fancy trying and testing downloads for older versions of ZC.

    Any other thoughts appreciated but I may give this a whirl too... :)

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Extra center module for logos?

    scattered,

    You will note that this was updated in June of 2006 and this was for 1.3.x but this did not get listed as being for 1.3.x....
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Help wanted for Categories Center Box Module by Numinix
    By Nick1973 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 18 Jan 2017, 06:50 PM
  2. Adding extra images to the header (like flags & logos)
    By theAymen in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 9 Aug 2010, 09:26 PM
  3. Extra charge for specific bulky items (table-weight module)
    By SHK in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 9 Apr 2008, 12:23 PM
  4. AustPost Module Logos
    By tannersports in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 20 Mar 2008, 07:25 AM
  5. Buy Now Button for Whats New Center box module?
    By wmorris in forum General Questions
    Replies: 0
    Last Post: 15 Jan 2008, 04:42 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