View Single Post
  #1  
Old 12-02-2005, 03:26 PM
 
Smalls Smalls is offline
 

Advanced Member
  
Join Date: Apr 2004
Location: Ontario
Posts: 30
 

Default Modifying smarty variables. Specifically, $product.avail

Can anyone tell me how to modify $product.avail?

Specifically, I want to modify the value of it before another line is executed in product.tpl (customer/main/product.tpl).

For example:
{$product.avail = 7}
{if $config.General.unlimited_products eq "N" and ($product.avail le 0 or $product.avail lt $product.min_amount) and $variants eq ''}

that way, when the 2nd line began to execute, it would see that $product.avail is greater than 0 and continue.[/b]
__________________
X-Cart Version 4.1.8
Reply With Quote