View Single Post
  #2  
Old 08-02-2007, 09:57 AM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default Re: Weird Smarty Bracket Problem

I would change the query to rename the field on retrieval. e.g.
Code:
SELECT ...,`ccost[0]` AS ccost0, ... FROM ....
Then you can refer to it as {$product.proddata.ccost0}

Another option might be:
Code:
{assign var='ccost0' value='ccost[0]'} {$product.proddata.$ccost0}
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
Reply With Quote