View Single Post
  #1  
Old 06-10-2005, 03:39 PM
 
Allan Martel Allan Martel is offline
 

Advanced Member
  
Join Date: Mar 2004
Posts: 72
 

Default Replacing "Featured Products" with "Recommend

I have (finally) managed to replace the "Featured Products" with "Recommended Products" on home.php - now 6 products are displayed at random instead of the static "Featured Products"

My next goal would be to make this now display the pricing information and the "Buy Now" button, in 2 rows of 3 products.

I'm pretty sure that this would just be editing the recommends.tpl file.....any help would be appreciated!

Heres what I did:

in skin1/customer/home.tpl, add
Code:
{include file="modules/Recommended_products/recommends.tpl"}
under

Code:
{include file="customer/home_main.tpl"}

In skin1/customer/main/welcome.tpl

remove

Code:
{include file="customer/main/featured.tpl" f_products=$f_products}

and finally, in home.php add:

Code:
if(!empty($active_modules["Recommended_Products"])) include "./recommends.php";

under
Code:
if (empty($products)) include "./featured_products.php";

This was done in 4.0.11

Hope this helps someone!

Allan
__________________
____________
____________

X-Cart v 4.0.14
X-Cart v 4.0.11
____________
____________
Reply With Quote