If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / swap order of Featured Products and Main Content

swap order of Featured Products and Main Content

Started by bobmeetin on 18 Feb 2013, 7:33 PM · Views: 572

Results 1 to 4 of 4
18 Feb 2013, 7:33 PM
#1
bobmeetin avatar

bobmeetin

New Zenner

Join Date:
Jan 2006
Posts:
57
Plugin Contributions:
0

Post #1 by bobmeetin

What template file do I need to modify (and what code) to swap the order so that Featured Products show above, rather than below the main page content on the home page? Or is there a configuration parameter that makes this happen?

18 Feb 2013, 10:08 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #2 by lat9

Check out your admin's Configuration->Index Listing. That configuration group has switches that you can use to identify the order in which the new, special, featured and upcoming products are displayed on the main page as well as the various product listing pages.

21 Feb 2013, 8:58 PM
#3
bobmeetin avatar

bobmeetin

New Zenner

Join Date:
Jan 2006
Posts:
57
Plugin Contributions:
0

Post #3 by bobmeetin

This seems to impact enabling/disabling, but not making Featured display above or below main page content. Can you re-point me?

21 Feb 2013, 9:17 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #4 by kobra

What template file do I need to modify (and what code) to swap the order so that Featured Products show above, rather than below the main page content on the home page
In a copy for your template of tpl_index_default.php
Find this complete block of 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

Move it to just above this line of code

<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>

Zen-Venom Get Bitten