View Single Post
  #9  
Old 12-12-2002, 05:05 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

PLEASE BACKUP ALL FILES BEFOREHAND JUST IN CASE!!

I haven't tested this but I would change skin1/customer/home_main.tpl as follows:

from:

{elseif $main eq "catalog" and $current_category.category eq ""}
{include file="customer/main/welcome.tpl" f_products=$f_products}

to:
Code:
{elseif $main eq "catalog" and $current_category.category eq ""} {include file="customer/main/welcome.tpl" randoms=$randoms}
to replace the featured products

Then amend customer/main/welcome.tpl to:

Code:
{* $Id: welcome.tpl,v 1.21 2002/09/10 12:36:34 zorg Exp $ *} {if ($active_modules.Greet_Visitor ne "") AND ($smarty.cookies.GreetingCookie ne "")} <h3>{$lng.lbl_welcome_back}, {$smarty.cookies.GreetingCookie} </h3> {else} <h3>{$lng.lbl_welcome_to} { $config.Company.company_name }</h3> {/if} {$lng.txt_welcome} {if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"} {include file="modules/Bestsellers/bestsellers.tpl"} {/if} {include file="customer/main/randoms.tpl" randoms=$randoms}

then creat a new template
customer/main/randoms.tpl

Code:
{* $Id: randoms.tpl,v 1.13 2002/05/20 06:55:20 lucky Exp $ *} {capture name=dialog} {include file="customer/main/products.tpl" products=$randoms} {/capture} {include file="dialog.tpl" title=$lng.lbl_random_products content=$smarty.capture.dialog extra="width=100%"}

then creat a new lbl in the languages area named lbl_random_products with the value that y9ou want to have shown in the top of the box.
__________________
ex x-cart guru
Reply With Quote