| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
executing x-cart logic if viewing the search result page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
executing x-cart logic if viewing the search result page
Hi,
I want to be able to determine if I'm in the results page or not (after a search, as opposed to just the listing after clicking on a category - I believe both use products.tpl for the content). How do I do a simple test in an if statement to determine if I'm in the search results page? I'm thinking I can somehow match a section title with the $lng.lbl_search_results variable, but I can't work it out. Can anyone point me in the right direction with the appropriate code or variable to use? Thanks for your help.
__________________
----------------------------------------- X-Cart5 v5.2.16 (Live) ----------------------------------------- |
|||||||
#2
|
|||||||||
|
|||||||||
Code:
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#3
|
|||||||
|
|||||||
Thanks Shan, that did the trick
Philip
__________________
----------------------------------------- X-Cart5 v5.2.16 (Live) ----------------------------------------- |
|||||||
|
|||
X-Cart forums © 2001-2020
|