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)
-----------------------------------------
|