Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Customised search bar...

Customised search bar...

Locked

Views: 1,116

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
24 Oct 2008, 10:46 AM
#1
skyegospel avatar

skyegospel

New Zenner

Join Date:
Aug 2008
Location:
Isle of Skye, Scotland
Posts:
92
Plugin Contributions:
0

Customised search bar...

Hi there. I have made a search bar on main_page with the following code:

<center><FORM action="http://sschurch.co.uk/search/ksearch.cgi" method="GET" NAME="search"> <div class="searchbutton"> <INPUT TYPE="text" NAME="terms"><INPUT TYPE="submit" VALUE="Find your plant!"> </div> </FORM></center>

It is there and looks fine (I can work on the look a bit later), but I am not sure how to set up this kind of test bar to get the search results with Zen Cart. I have used the structure I used in another site, and have left in the Form action= address which applied to that just to show what I am looking for... What, for a zen cart store, should replace that FORM action="????????"

Many thanks in advance for your help on this one.

Stuart

24 Oct 2008, 11:06 AM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Customised search bar...

What results are you intending the search to deliver?

ZC already has a search function, so what do you want this one to achieve?

24 Oct 2008, 11:29 AM
#3
skyegospel avatar

skyegospel

New Zenner

Join Date:
Aug 2008
Location:
Isle of Skye, Scotland
Posts:
92
Plugin Contributions:
0

Re: Customised search bar...

Well, my client is selling plants and wants to make the 'search for a plant' or 'colour' a major feature. So he is wanting to see if it can be put on the main page between the welcome text and the catagories (You can see the index page at https://www.plantperfection.co.uk - you might need to log on using email address [email protected] and password Test1 to see it.)

This is the only way I can see of getting one exactly where he wants it, and also being able to get the look of it to be customised through css so that it can look 'gardeny' (I haven't decided yet what that will look like :D)

Many thanks,

Stuart

24 Oct 2008, 11:35 AM
#4
skyegospel avatar

skyegospel

New Zenner

Join Date:
Aug 2008
Location:
Isle of Skye, Scotland
Posts:
92
Plugin Contributions:
0

Re: Customised search bar...

Sorry - should have mentioned, the search results we are looking for ar eexactly the same relaly as the one that zen already has... it is just the placement and customisation of it that I am trying to achieve.

Stuart

24 Oct 2008, 2:35 PM
#5
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Customised search bar...

If you look at your page's SOURCE CODE, you will see that the ZC generated html for the search facility is:

<div id="navMainSearch"><form name="quick_find_header" action="http://www.plantperfection.co.uk/index.php?main_page=advanced_search_result" method="get"><input type="hidden" name="main_page" value="advanced_search_result" /><input type="hidden" name="search_in_description" value="1" /><input type="text" name="keyword" size="6" maxlength="30" style="width: 150px" value="Enter plant name here..." onfocus="if (this.value == 'Enter plant name here...') this.value = '';" onblur="if (this.value == '') this.value = 'Enter plant name here...';" /> <input type="submit" value="Find your plant!" style="width: 100px" /></form></div>

Now, if you hard code this into your template instead of what you've done:

<center><FORM action="http://sschurch.co.uk/search/ksearch.cgi" method="GET" NAME="search">

<div class="searchbutton">
<INPUT TYPE="text" NAME="terms"><INPUT TYPE="submit" VALUE="Find your plant!">
</div>

... you MIGHT get what you want... Try it, I'm not sure.

24 Oct 2008, 2:59 PM
#6
skyegospel avatar

skyegospel

New Zenner

Join Date:
Aug 2008
Location:
Isle of Skye, Scotland
Posts:
92
Plugin Contributions:
0

Re: Customised search bar...

Thanks for that FairestCape - That has done the job perfectly. I am still getting confused how to look for things with zen-cart... I have been used to html / css sites and would always have looked at the page source first to find something like that, but never even thought of doing the same as I reckoned I went instead to trawl through all the pages in languages and common folders!

Thanks for the info - all working fine so I can get on with trying to customising the look now.

Stuart