Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2007
    Location
    Cornwall - uk
    Posts
    464
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 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 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_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 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Mar 2007
    Location
    Cornwall - uk
    Posts
    464
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. Monthly Specials on Front Page
    By solarguy in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 8 Jul 2010, 10:18 AM
  2. Extending Monthly Specials
    By TheDennis in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Sep 2009, 12:18 AM
  3. Monthly Specials Box???
    By MagicMan in forum General Questions
    Replies: 1
    Last Post: 5 Sep 2008, 03:35 AM
  4. Monthly Specials Layout Question
    By Paradigm81 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Oct 2006, 02:48 AM

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