Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2008
    Posts
    44
    Plugin Contributions
    0

    Default Search Box from External site?

    I am tyring to have a search box on an external site capable of searching my zen-cart site.

    In other words, I would like to have visitors at happy.biz be able to search in a search box which will take them to zen-cart-happy.biz to view the results.

    Any help appreciated.

    thanks.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,614
    Plugin Contributions
    25

    Default Re: Search Box from External site?

    It's fairly straightforward. Just look at the HTML generated for a header seach box. This is actually a complete form that passes the search terms to the advanced_search_result page. Create a similar form with the same action on your external site and you can pass search terms into your Zen Cart in the same way.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

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

    Default Re: Search Box from External site?

    Kuroi's right... it's not difficult.

    On one of our customer's external sites, we have the following HTML:

    HTML Code:
    <div id="productSearch">
    		<form id="quick_find" action="http://www.OUR-WEB-SHOP.co.uk/index.php?main_page=advanced_search_result" method="get">
    			<fieldset>
    				<label for="keyword">Search our product catalogue</label>
    				<input type="text" name="keyword"  id="keyword" size="20" maxlength="100" style="width: 145px" value="Enter search keywords" onfocus="if (this.value == 'Enter search keywords') this.value = '';" onblur="if (this.value == '') this.value = 'Enter search keywords';" />
    				<input name="submit" type="submit" class="submit" value="Go" />
    
    				<p><a href="http://www.OUR-WEB-SHOP.co.uk/index.php?main_page=advanced_search">Advanced search &gt;</a></p>
    				<input type="hidden" name="main_page" value="advanced_search_result" />
    				<input type="hidden" name="search_in_description" value="1" />
    			</fieldset>
    		</form>
    	</div>
    (Naturally, for privacy, I've changed our actual URL (above) to "OUR-WEB-SHOP" - so this is where you put your own webshop's URL)

  4. #4
    Join Date
    Dec 2008
    Posts
    44
    Plugin Contributions
    0

    Default Re: Search Box from External site?

    Got it :) working per your suggestions...and thank for the help
    much appreciated.

 

 

Similar Threads

  1. Importing from an external dropship site
    By Tiigaan in forum Setting Up Categories, Products, Attributes
    Replies: 25
    Last Post: 11 Feb 2011, 04:55 PM
  2. add to cart from external site
    By rolfcarol in forum General Questions
    Replies: 2
    Last Post: 9 Jan 2011, 04:04 PM
  3. Search Box External Page
    By 07dcolem in forum General Questions
    Replies: 0
    Last Post: 1 May 2008, 01:49 PM
  4. Populate cart from an external site?
    By hughjaas in forum General Questions
    Replies: 0
    Last Post: 27 Nov 2007, 09:07 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR