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

Removing Advanced Search

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-30-2005, 07:23 AM
  OshkoshJon's Avatar 
OshkoshJon OshkoshJon is offline
 

Senior Member
  
Join Date: Dec 2003
Posts: 135
 

Default Removing Advanced Search

Is there a way to remove the Advanced Search link? I do not wish to make this option available to customers, just the regular search only.
__________________
x-cart v4.0.17 - linux/apache
Reply With Quote
  #2  
Old 10-30-2005, 07:34 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

edit search.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-30-2005, 12:27 PM
  OshkoshJon's Avatar 
OshkoshJon OshkoshJon is offline
 

Senior Member
  
Join Date: Dec 2003
Posts: 135
 

Default

Thank you.
__________________
x-cart v4.0.17 - linux/apache
Reply With Quote
  #4  
Old 10-30-2005, 12:31 PM
  OshkoshJon's Avatar 
OshkoshJon OshkoshJon is offline
 

Senior Member
  
Join Date: Dec 2003
Posts: 135
 

Default

Couple more questions if you don't mind:

1. When someone hits the search button and the box is blank, this causes the site to hang as the query takes awhile. I'm pretty sure I need to edit search.php to fix this --- but I am not sure what to edit. I don't want a query to be performed if the box is left blank. What do you recommend I do to remedy this?

2. To cut down on process time, is it possible I can just have it search the product titles, and not any other fields? If so, how?

Thanks for your time.
__________________
x-cart v4.0.17 - linux/apache
Reply With Quote
  #5  
Old 11-01-2005, 05:52 AM
  OshkoshJon's Avatar 
OshkoshJon OshkoshJon is offline
 

Senior Member
  
Join Date: Dec 2003
Posts: 135
 

Default

Bump... need an answer badly!!!
__________________
x-cart v4.0.17 - linux/apache
Reply With Quote
  #6  
Old 03-26-2006, 09:15 PM
 
youngvet1 youngvet1 is offline
 

eXpert
  
Join Date: Aug 2005
Posts: 245
 

Default

I also would like an answer to this. As default is a really bad solution for an empty search box to return all products in the store. How about if the store has 10,000 products!


Also I would like some help, how do i make it so that if no search results are found it does just tell the user no search results are found but it still does not show advanced search?
__________________
x-cart version 4.0.14
Reply With Quote
  #7  
Old 03-27-2006, 12:30 AM
 
oracle9i oracle9i is offline
 

Member
  
Join Date: Feb 2006
Posts: 29
 

Default

not an expert, and i havn't tested it, but i think here
Code:
<INPUT type="hidden" name="simple_search" value="Y"> <INPUT type="hidden" name="mode" value="search"> <INPUT type="hidden" name="posted_data[by_title]" value="Y"> <INPUT type="hidden" name="posted_data[by_shortdescr]" value="Y"> <INPUT type="hidden" name="posted_data[by_fulldescr]" value="Y"> <TR>


change that to

Code:
<INPUT type="hidden" name="simple_search" value="Y"> <INPUT type="hidden" name="mode" value="search"> <INPUT type="hidden" name="posted_data[by_title]" value="Y"> <TR>
__________________
X-CART 4.0.4 (about to upgrade to 4.0.17)
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 01:57 PM.

   

 
X-Cart forums © 2001-2020