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)
-   -   Removing Advanced Search (https://forum.x-cart.com/showthread.php?t=17612)

OshkoshJon 10-30-2005 07:23 AM

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.

balinor 10-30-2005 07:34 AM

edit search.tpl

OshkoshJon 10-30-2005 12:27 PM

Thank you.

OshkoshJon 10-30-2005 12:31 PM

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.

OshkoshJon 11-01-2005 05:52 AM

Bump... need an answer badly!!!

youngvet1 03-26-2006 09:15 PM

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?

oracle9i 03-27-2006 12:30 AM

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>



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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.