![]() |
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. |
Code:
{if $main eq "search"} |
Thanks Shan, that did the trick :-)
Philip |
All times are GMT -8. The time now is 04:31 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.