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
|