| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Help with url conditional | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I want to create a conditional statement based on the url/page displayed. In this case, the home.php page. I created this statement but it doesn't work. {if $http_location eq "http://www.mountainhomebuildingproducts.com/home.php"} <td>test</td> {/if} When the url is loaded, the conditional html does not display. What am I doing wrong? Thanks
__________________
X-Cart Version 4.1.10, 4.1.11, 4.2, 4.3, 4.4.5 Linux |
|||||||
#2
|
|||||||
|
|||||||
![]() Use this:
{if $main eq "catalog" and $current_category.category eq ""} show only on home page {/if}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Thanks! That worked perfectly.
__________________
X-Cart Version 4.1.10, 4.1.11, 4.2, 4.3, 4.4.5 Linux |
|||||||
|
|||
X-Cart forums © 2001-2020
|