Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

executing x-cart logic if viewing the search result page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-04-2004, 04:43 AM
 
phil_ phil_ is offline
 

Advanced Member
  
Join Date: Feb 2003
Location: Northern Ireland
Posts: 56
 

Default 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)
-----------------------------------------
Reply With Quote
  #2  
Old 10-04-2004, 07:21 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Code:
{if $main eq "search"} blah blah {/if}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 10-04-2004, 07:46 AM
 
phil_ phil_ is offline
 

Advanced Member
  
Join Date: Feb 2003
Location: Northern Ireland
Posts: 56
 

Default

Thanks Shan, that did the trick

Philip
__________________
-----------------------------------------
X-Cart5 v5.2.16 (Live)
-----------------------------------------
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:24 AM.

   

 
X-Cart forums © 2001-2020