X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   executing x-cart logic if viewing the search result page (https://forum.x-cart.com/showthread.php?t=9685)

phil_ 10-04-2004 04:43 AM

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.

shan 10-04-2004 07:21 AM

Code:

{if $main eq "search"}

blah blah

{/if}


phil_ 10-04-2004 07:46 AM

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.