Zen Cart Logo
Forums / General Questions / Show featured products above product listing

Show featured products above product listing

Views: 935

Results 1 to 6 of 6
28 Feb 2011, 6:28 PM
#1
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Show featured products above product listing

Hi,
The Admin/Config/Index listing has the option to:

Show Featured Products - below Product Listing

I would like to show it above Product listing
Would that be easy enough?

Thanks...

28 Feb 2011, 6:38 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Show featured products above product listing

You would need to customize the template file in your templates and overrides for the tpl_index_product_listing.php

you can comment out this code:

<?php
/**
 * require the code for listing products
 */
 require($template->get_template_dir('tpl_modules_product_listing.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_product_listing.php');
?>

Then put a copy of it at the bottom of the file above the </div> tag ...

28 Feb 2011, 7:39 PM
#3
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Re: Show featured products above product listing

<?php
/**
 * require the code for listing products
 */
 require($template->get_template_dir('tpl_modules_product_listing.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_product_listing.php');
?>
```Thanks very much for that.
Sorry I'm not so clued on commenting out...
I tried it like this

/*

<?php /** * require the code for listing products */ require($template->get_template_dir('tpl_modules_product_listing.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_product_listing.php'); ?>

*/

28 Feb 2011, 7:45 PM
#4
kobra avatar

kobra

Black Belt

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

Re: Show featured products above product listing

Try this instead

/**
<?php

 * require the code for listing products
 require($template->get_template_dir('tpl_modules_product_listing.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_product_listing.php');
?>
 */
28 Feb 2011, 7:46 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Show featured products above product listing

Close ...

Change it to read:

<?php
/**
 * require the code for listing products
 */
 // require($template->get_template_dir('tpl_modules_product_listing.php',  DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' .  'tpl_modules_product_listing.php');
?>
28 Feb 2011, 8:00 PM
#6
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Re: Show featured products above product listing

Thanks Kobra and ajeh!