Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2008
    Location
    Isle of Skye, Scotland
    Posts
    92
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default 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?

  3. #3
    Join Date
    Aug 2008
    Location
    Isle of Skye, Scotland
    Posts
    92
    Plugin Contributions
    0

    Default 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 www.plantperfection.co.uk - you might need to log on using email address skyegospel################## 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 )

    Many thanks,

    Stuart

  4. #4
    Join Date
    Aug 2008
    Location
    Isle of Skye, Scotland
    Posts
    92
    Plugin Contributions
    0

    Default 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

  5. #5
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default 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:

    HTML Code:
    <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...';" />&nbsp;<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:

    HTML 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>
    ... you MIGHT get what you want... Try it, I'm not sure.

  6. #6
    Join Date
    Aug 2008
    Location
    Isle of Skye, Scotland
    Posts
    92
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. search bar
    By Orchard_Direct in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 21 Aug 2007, 04:31 PM
  2. Add Advance Search Link Under Search Bar!
    By MBSJEWELRY in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 11 Oct 2006, 07:41 AM
  3. Search Bar
    By getreload in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Oct 2006, 03:10 PM
  4. How to move search bar into nav bar?
    By Sullmoney in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Sep 2006, 08:49 AM
  5. search bar
    By trudesign in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Jul 2006, 10:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg