Forums / Basic Configuration / can I Move new products to top on home page?

can I Move new products to top on home page?

Started by luvvvvvit on 10 Dec 2012, 3:44 PM · Views: 1,404

Results 1 to 8 of 8
10 Dec 2012, 3:44 PM
#1
luvvvvvit avatar

luvvvvvit

New Zenner

Join Date:
Jul 2009
Location:
United Kingdom
Posts:
62
Plugin Contributions:
0

can I Move new products to top on home page?

Is it possible to move the New products image links to the top just under the top navigation, in my case it is now New Backing Tracks if you look at my home page http://www.rockbackingtracks.co.uk I would like to have the new backing tracks at the top then the text area and then featured products at the bottom, I would be grateful for some help as I cant find where to do it if its possible. Thanks

11 Dec 2012, 1:19 AM
#2
kobra avatar

kobra

Black Belt

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

Re: can I Move new products to top on home page?

In a copy for your template of tpl_index_default.php
Re order the sequence of display

Zen-Venom Get Bitten

11 Dec 2012, 11:03 AM
#3
luvvvvvit avatar

luvvvvvit

New Zenner

Join Date:
Jul 2009
Location:
United Kingdom
Posts:
62
Plugin Contributions:
0

Re: can I Move new products to top on home page?

Thanks for letting me know where it is, although i am still not sure what to do with the code, a bit worried i will damage my site, is there any specifics i need to know? Thanks

11 Dec 2012, 1:36 PM
#4
lat9 avatar

lat9

Administrator

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

Re: can I Move new products to top on home page?

Instead of moving the "New Products" above the main content (in define_main_page.php), you could move the main content to after the new products. If you don't already have the file tpl_index_default.php in the directory /includes/templates/classic/templates, then copy the file from /includes/templates/template_default/templates and then edit as described below.

P.S. You should really have your own, custom template instead of using the 'classic'. Keeping the classic template pure allows you to switch between templates see if issues you're having are template-specific or site-wide.

<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
<?php
/**
 * get the Define Main Page Text
 */
[B]/*[/B]
?>
<div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
<?php [B]*/[/B] } ?>

<?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 } ?>

<?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 } ?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?>
<?php
/**
 * display the New Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
[B]<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
<?php
/**
 * get the Define Main Page Text
 */
?>
<div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
<?php } ?>[/B]
<?php } ?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_UPCOMING') { ?>
<?php
11 Dec 2012, 4:35 PM
#5
luvvvvvit avatar

luvvvvvit

New Zenner

Join Date:
Jul 2009
Location:
United Kingdom
Posts:
62
Plugin Contributions:
0

Re: can I Move new products to top on home page?

Hi Thanks for that, I tried it but my main page content disapeared, and left me with just new products and featured products? :blink:

11 Dec 2012, 7:42 PM
#6
lat9 avatar

lat9

Administrator

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

Re: can I Move new products to top on home page?

Did you see that there are two bits highlighted in red? You need to comment out the top bit and add the code further down in the file. I tried this on my test store and it does what you want.

12 Dec 2012, 8:53 AM
#7
luvvvvvit avatar

luvvvvvit

New Zenner

Join Date:
Jul 2009
Location:
United Kingdom
Posts:
62
Plugin Contributions:
0

Re: can I Move new products to top on home page?

Hi i did put the 2 red bits in at the top of the code and moved the code as in the example but all i get is the new products and featured products my main text dissapears, could it be a cache problem?

12 Dec 2012, 9:00 AM
#8
luvvvvvit avatar

luvvvvvit

New Zenner

Join Date:
Jul 2009
Location:
United Kingdom
Posts:
62
Plugin Contributions:
0

Re: can I Move new products to top on home page?

Hi tried it again and this time it has worked great i don't know what i did wrong before but you are a legend many thanks for your help your the best Thanks :D