Zen Cart Logo
Forums / General Questions / Monthly Specials Question

Monthly Specials Question

Locked

Views: 1,336

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
28 May 2007, 8:47 AM
#1
ben_harry avatar

ben_harry

Zen Follower

Join Date:
Mar 2007
Location:
Cornwall - uk
Posts:
462
Plugin Contributions:
0

Monthly Specials Question

Is it possible to have more than one Monthly Specials Box on the the same page, and also can you change the name of the heading,

What I would like is 3 or 4 seperate listings, one with the title of Performance Exhausts, another with a title of Alloy Wheels and one with Car Accessories.

Thanks

28 May 2007, 2:38 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Monthly Specials Question

You would need to clone the specials.php and the tpl_specials_default.php ... then find all of the files that call:
tpl_modules_specials_default.php are located to add your cloned version ...

And there is a trigger to run the specials ... example, in tpl_index_default.php you will see the code:

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?>
<?php
/**
 * display the Special Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
<?php } ?>

If your cloned specials centerbox was using specials_default2 you could add:

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?>
<?php
/**
 * display the Special Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_specials_default2.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default2.php'); ?>
<?php } ?>

And where this file uses this trigger for the specials to show or not:
SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS

You could technically use the same trigger if the two boxes were meant to always show together ... otherwise, you would need to make your own constant from:
SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS

to something like:
SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS2

And set that somewhere either in the database or a file to enable it ...

30 May 2007, 11:13 AM
#3
ben_harry avatar

ben_harry

Zen Follower

Join Date:
Mar 2007
Location:
Cornwall - uk
Posts:
462
Plugin Contributions:
0

Re: Monthly Specials Question

Thanks for the info, I dont feel confident enough to start cloning files, so Ive decided just to build my own table headings, this is my site so far, www.bodykitsonline.co.uk/shop its far from finished, but its slowly starting to take shape from all the helpful hints and tips from fellow zenners.