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 -->
Bookmarks