Forums / Templates, Stylesheets, Page Layout / How can I move featured products up the home page?

How can I move featured products up the home page?

Started by k_pricey on 26 Aug 2011, 3:17 PM · Views: 1,499

Results 1 to 4 of 4
26 Aug 2011, 3:17 PM
#1
k_pricey avatar

k_pricey

New Zenner

Join Date:
Sep 2009
Posts:
17
Plugin Contributions:
0

How can I move featured products up the home page?

Hi all! Thanks in advance for any assistance you can give me.

I have seen sites where the featured products appear right at the top of the home page above the new products and any text or HTML entered in the define pages editor.

What would be the simplest way to get my featured products right to the top of the page above everything else?

I'm talking about the center page column here and not the side bars by the way.

Thanks in advance.

Kieran.

26 Aug 2011, 8:51 PM
#2
kobra avatar

kobra

Black Belt

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

Re: How can I move featured products up the home page?

Change the order of appearance in a copy for your template of tpl_main_page.php

Zen-Venom Get Bitten

27 Aug 2011, 8:47 AM
#3
k_pricey avatar

k_pricey

New Zenner

Join Date:
Sep 2009
Posts:
17
Plugin Contributions:
0

Re: How can I move featured products up the home page?

Unfortunately I couldn't find anything in there which helped but I managed to figure it out in the end so I'll post my solution here in case anyone else wants to do something similar.

Open the file includes/templates/template_default/templates/tpl_index_default.php

Find the following bit of PHP:

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

Cut it out and paste it after this:

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

That takes the main page text and places it beneath all of the other boxes (featured, special, new and upcoming products.

Now when you visit the home page for the site all of the products are featured prominently at the top of the page and text is placed lower down, below the product listings.

Hope that can be some help to others :)

27 Aug 2011, 8:50 AM
#4
k_pricey avatar

k_pricey

New Zenner

Join Date:
Sep 2009
Posts:
17
Plugin Contributions:
0

Re: How can I move featured products up the home page?

I guess I should also add that your theme may override this file so you should look there first and then edit this file only if you don't find it in the theme file's folders.