Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2011
    Posts
    5
    Plugin Contributions
    0

    help question Multiple Featured Products Boxes in the Center

    I want to add more boxes into the center body in order to display all the categories of products in homepage.

    In "tpl_index_default.php":
    PHP Code:
    /**
     * display the Featured Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
    <?php 
    ?>

    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?>
    <?php
    I changed it to this:
    PHP Code:
    /**
     * display the Featured Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
    <?php 
    ?>

    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?>
    <?php
    ?>
    <?php 
    require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
    <?php 
    ?>

    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?>
    <?php

    Now I have two Featured Products in the homepage. However, I they display the same products, what could i do to let them display different products?

    I know that I can change the code in "featured_products.php" to let the featured products box display the categries I want.

    I just don't understand how could "tpl_index_default.php" get the information of products from MySQL, I can't see any code about it in this file or the files link to it.

    Also, is there any connection between "featured_products.php" and "tpl_index_default.php"? I can't find any.

    Thanks for any help.

  2. #2
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Multiple Featured Products Boxes in the Center

    tpl_index_default.php is your index or main page. contains all the information for your main page of your site.

    featured_products.php is a box. you can move that box anywhere you want to on your index page it is turned on and off in admin.

  3. #3
    Join Date
    Sep 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: Multiple Featured Products Boxes in the Center

    Thank you for replying, then how could i get another feature products box in my homepage?

  4. #4
    Join Date
    Sep 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: Multiple Featured Products Boxes in the Center


 

 

Similar Threads

  1. v154 Manufacturer-specific Special/New/Featured center boxes
    By lat9 in forum General Questions
    Replies: 1
    Last Post: 6 Mar 2016, 12:25 PM
  2. removing new products, featured items, monthly specials boxes from center column
    By HighOptional in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 16 Nov 2012, 05:01 AM
  3. Linking the Category Name to Featured Products Center Box
    By newbie456 in forum General Questions
    Replies: 1
    Last Post: 1 Sep 2011, 07:53 AM
  4. Display multiple featured products on the sidebox
    By clee0718 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 May 2011, 11:12 AM
  5. Multiple Featured Products Boxes?
    By enigmabomb in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Jul 2008, 02:59 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