How to add OpenSearch support to your shopping cartNov 30, 2009 by Qetzal,
OpenSearch is a collection of simple formats to share search results and discovery of search engines.
It allows accessing search engines directly from search boxes in some browsers: Internet Explorer, Firefox and Google Chrome.
In this post we will describe how to add OpenSearch support to your Ecwid shopping cart. So your customers will be able to search your products right from their browsers’ search boxes.
1. Create an opensearch.xml text file with the following content:
Store Name is your store name.
Description is the description of your store and site.
STORE_URL is the URL of the page where your Ecwid store is installed. For example http://example.com/store.html.
Example of an XML file:
2. Upload this file to the root web directory of your site. Usually it’s httpdocs or htdocs or public_html directory.
3. Add the following line to each page of your site between tagsand :
You should replace SITE_URL with your site domain (with the http:// prefix) and Your_Store_Search with the name of your store search or the name of your site.
That’s all. If you have any questions, feel free to ask on our forums.
Stay up to date!
Get free e-commerce tips, news and inspiring ideas delivered directly to your inbox