| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Modifying smarty variables. Specifically, $product.avail | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() are you trying to make the avail always = 7 ?
try and explain more
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#3
|
|||||||
|
|||||||
![]() well i was trying to make a simple code that checked if the product.avail was 0, then make it 1, so people could order out of stock products, but i've found somewhat of a workaround and allowed backordering to occur
More details on the backorder mod here: http://forum.x-cart.com/viewtopic.php?p=116961#116961
__________________
X-Cart Version 4.1.8 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|