| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Smarty: IF statement and "productid" variable | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I'm trying to modify products.tpl to make it so that if one specific product number is being shown, then the "Add to cart" link acts differently.
Does anyone know the code I can use to create an IF statement to specify my specific product? This is what I'm trying so far. The result is that my special code intended for only one product is actually displaying for all products. Code:
I've also tried these (with no success): {if $productid=16134} {if $productid eq "16134"} Am I using the right variable? Syntax? Thanks!
__________________
v4.1.10 |
|||||||
#2
|
|||||||
|
|||||||
![]() Should be $product.productid
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
|
|||
X-Cart forums © 2001-2020
|