View Single Post
  #2  
Old 01-03-2011, 01:50 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Add variable to homepage

In the php file showing the page in question. You have to assign it as smarty variable. To customize xcart you will need not only php but also smarty knowledge - www.smarty.net

In general for your question you can do this

$products = "sql query to get the products array";
$smarty->assign("new_products", $products);

which will give you $new_products array available for that page
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote