Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2006
    Location
    BC, Canada
    Posts
    98
    Plugin Contributions
    0

    Default Move the Featured products above mainpage text

    How would one move the Featured products box above the mainpage text as defined in the define_main_page.php file.

    Thanks For any help
    Version 1.3.7

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Move the Featured products above mainpage text

    In your copy to be in your template override folder area, make a copy of the tpl_index_default.php file and edit the following:
    Code:
    ?>
    <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
    <?php } ?>
    
    <?php
      $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN);
      while (!$show_display_category->EOF) {
    ?>
    
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?>
    <?php
    /**
     * 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 } ?>
    and move the complete featured product code above the indexDefaultMainContent code:
    Code:
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?>
    <?php
    /**
     * 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
    
    ?>
    <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
    <?php } ?>
    
    <?php
      $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN);
      while (!$show_display_category->EOF) {
    ?>
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jun 2006
    Posts
    13
    Plugin Contributions
    0

    Default Re: Move the Featured products above mainpage text

    I am trying to accomplish almost the same thing... but my tpl_index_default.php file looks very different... and in my case I just want the Featured Products to be before the New Products.

    Here is the code of my tpl_index_default.php page;

    <table border="0" width="100%" cellspacing="2" cellpadding="2">
    <tr>
    <td class="pageHeading"><h1><?php echo HEADING_TITLE; ?></h1></td>
    </tr>
    <tr>
    <td class="greetUser"><?php echo zen_customer_greeting(); ?></td>
    </tr>
    <?php if (TEXT_MAIN) { ?>
    <tr>
    <td class="main"><?php echo TEXT_MAIN; ?></td>
    </tr>
    <?php } ?>
    <?php if (TEXT_INFORMATION) { ?>
    <tr>
    <td class="plainBox"><?php echo TEXT_INFORMATION; ?></td>
    </tr>
    <?php } ?>
    <?php if (DEFINE_MAIN_PAGE_STATUS == '1') { ?>
    <tr>
    <td class="plainBox"><?php require($define_main_page); ?><br /></td>
    </tr>
    <?php } ?>
    </table><br />
    <?php
    $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN);

    while (!$show_display_category->EOF) {
    ?><?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?>
    <?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_FEATURED_PRODUCTS_MODULE)); ?><?php } ?>
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?>
    <?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_SPECIALS_INDEX)); ?><?php } ?>
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?>
    <?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEW_PRODUCTS)); ?><?php } ?>
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_UPCOMING') { ?>
    <?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php } ?>

    <?php
    $show_display_category->MoveNext();
    } // !EOF
    ?>


    Please help!!

  4. #4
    Join Date
    Jun 2006
    Posts
    13
    Plugin Contributions
    0

    Default Re: Move the Featured products above mainpage text

    Nevermind... I found it in the Index Listing configuration...

    Sorry about that folks... Please disregard my last post!

 

 

Similar Threads

  1. How do I move the define_main_page text from under the slider to above the slider?
    By huntleybill in forum Customization from the Admin
    Replies: 1
    Last Post: 2 Oct 2013, 03:08 AM
  2. How can I move featured products up the home page?
    By k_pricey in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Aug 2011, 09:50 AM
  3. Move 'Featured Products' box ABOVE 'New Products for June'
    By zcnb in forum Basic Configuration
    Replies: 2
    Last Post: 29 Nov 2010, 05:14 PM
  4. "Home" text above featured products
    By eggrush in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 30 May 2010, 10:02 AM
  5. Move Save:xx% off above the New Price Text
    By limelites in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 May 2009, 03:25 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