View Single Post
  #33  
Old 07-02-2005, 07:38 AM
 
Online Michael Online Michael is offline
 

eXpert
  
Join Date: Mar 2005
Location: Melbourne, Australia
Posts: 273
 

Default

Quote:
Originally Posted by shan
Anyone created this as a side menu like the bestsellers has ?

Your wish is my command.... Here is the code:

Replace the entire code in the specials.tpl with this:

Code:
{* $Id: specials.tpl,v 1.3.2.1 2004/11/16 11:15:01 max Exp $ *} {if $specials ne ""} {capture name=specials} <TABLE cellpadding="0" cellspacing="2" border="0"> {section name=num loop=$specials} <TR> <TD width="30"> {include file="product_thumbnail.tpl" productid=$specials[num].productid image_x=25 product=$specials[num].product} </TD> <TD> {$specials[num].product} <S>{include file="currency.tpl" value=$specials[num].list_price}</S> Now:{include file="currency.tpl" value=$specials[num].price} </TD> </TR> {/section} </TABLE> {/capture} {include file="menu.tpl" menu_title= "Hot Specials" menu_content=$smarty.capture.specials extra="width=100%"} {/if}

Insert the following line of code where ever you want the specials to appear in the skin1/customer/home.tpl file:

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

That's about it...enjoy

Oh, and btw, this works fine on 4.0.13
__________________
X-Cart 5.3.5.4
Reply With Quote