| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
If statement list | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Is there a list somewhere of all the possible if statement operators and states in x-cart? Like, $usertype and what the possible types are. I'm trying to make a module show on the product detail page only, but I can't find the proper syntax. And I'm sure I'll need others later.
I'm sorry if this is completely obvious, but I've been trying to learn x-cart and smarty for a website launch on 10/1 and I'm a little strained.
__________________
X-Cart 4.1.9 | PHP 5.2.6 | MySQL 5.0.51a | Apache 1.3.51 |
|||||||
#2
|
|||||||
|
|||||||
![]() Start with customer/home_main.tpl and common_templates.tpl for the if statements for page types. You can also find a lot of them here:
http://forum.x-cart.com/showthread.php?t=8881
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() {if $main eq "product"}
Show on product detail page only. {/if} |
|||||||||
#4
|
|||||||
|
|||||||
![]() Got it, thx! Works great. Help is da bomb diggity.
__________________
X-Cart 4.1.9 | PHP 5.2.6 | MySQL 5.0.51a | Apache 1.3.51 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|