I wanted to implement a similar thing to what you show on add a custom eBay search box to your site on my eBay store site, but I’d rather have a neat little box in a position of my choice, instead of using the ugly default eBay side menu. Is there a way to customise the search form so it only searches within my eBay store? Thanks in advance for any help you can offer!
Great question, and I have done a lot of digging and reverse engineering of the eBay search forms. The reality is that this is perhaps the most complicated form I’ve seen on eBay because they don’t do anything simple like have the merchant shown by name or even a merchant ID, but instead have a cryptic “sasel” value that does uniquely identify eBay merchants, but is darn hard to figure out.
Here’s what I did…
I started by going onto the eBay site and doing a search for something, anything. I picked “casablanca”. Then I clicked on the “Stores” tab so that I was looking at matches from eBay Store merchants.
Now I clicked on one of the matching entries, taking me to a merchant called “signedpictures”. On any eBay listing from an eBay Store merchant, there’s:
Click on the “Visit seller’s Store” link and you’ll now see all of their current listings.
On that merchant page, there’s a search form:
What we want to do here is do a search, any search. Now, from the search results page, search again. (I warned you this was pretty darn complex!). For example, when I searched – twice – for “photo” on “signedpictures” account, the resultant address of the second search results page is:
QfsnZsignedpicturesQQfsooZ1QQfsopZ1QQsaselZ33440996QQsofpZ0
Ugly and complex as heck, right? But the magic numeric value we seek is embedded in that URL. Here’s just the last portion of it with the sasel value (which appears to only be digits) highlighted:
The “sasel” number? In this case, it’s 33440996.
Now, armed with that, here’s the form (that I figured out after much experimentation!)
action=”http://search.stores.ebay.com/search/search.dll?GetResult&”>
<input type=”text” name=”query” maxlength=”300″ >
<input type=”hidden” name=”fcd” value=”2″>
<input type=”hidden” name=”from” value=”R10″>
<input type=”hidden” name=”sasel” value=”33440996“>
<input name=”submit” type=”submit” value=”Search”>
<br />
<input type=”checkbox” name=”srchdesc” value=”y”>search titles & descriptions
</form>
Complicated, eh? You can see in the middle the spot where I’ve added the proper “sasel” value for this to search that eBay merchant store. I highlighted it in red.
This is a rudimentary, fairly unattractive form, but it works, and making it pretty is the easy part.
I hope this is clear and helps you figure out how to identify your own store’s “sasel” number and create a form that you can add anywhere on the Web to let people easily search your own merchant store.
And, eBay, how come this is so darn complicated anyway?
Hi,
Can you pl. clarify me on the working of eBay store search.
step 1: Create a form as given above by you
step 2: Integrate the backend with the i.html page
Thanks in advance
Hi Dave,
How can i modify the result page for search.? to become same as the template that i have on my store. So that if i use to search a product using my custom code the result will be like on same page.
Thanks!
Hi, i have a problem regarding ebay search, I already done with my custom search engine, the problem is when i tried to search my store using my custom search engine, the result is on the old template that we have on our ebay store. How to put the search result in my template.? so that it will have 1 design on template. Thanks! Please Advice
can you tell me how to make custom footer?
Thank you
Is there’s a way to custom my result page on ebay? when I try to search a product to my store, the result is on a plain page, without the banner,left bar and the footer. is there’s a code that holds the search result and put it on a custom pages so that when a customer use my store they will see one design only,
Thanks in advance.
Just noticed the code between the “” got removed
but basically it was exactly as per Abbas said on 19th Dec
I use turbo lister and I have written a script in TCL to read a csv and create the turbo lister file
I have added the following
append info “”
append info “”
append info “”
append info “”
I get the search box – with the word Submit in it. I change that to say BASINSTOKE and press enter
What is returned is EVERY item (19000+) rather than items containing BASINSTOKE
What am I doing wrong
Looks like it won’t let me post the html code for the check box. Its literally the last input type line of html code from Dave’s original post before the form is closed.
The search titles and item description check box no longer works. Does anyone know a way to get it to work?
This value included in the search html no longer works:
<input type=”checkbox” name=”srchdesc” value=”y”>
Dave,
I just stumbled across your answer regarding hiding the checkbox option.
Too easy!
Hi Dave,
Not sure if this thread is still active or not, but i’m hoping you can help me.
I am wanting to create a customized search feature that searches my stores items & descriptions by default without the option of the titels & descriptions checkbox.
I’m also wanting to use the code on all my auction pages, i’m guessing this will be ok?
Thanks in advance!
@brian: yes you can “style” the existing ‘shop search’ button on ebay and display your own image instead of their boring button!
All you have to do is, create a CSS style and embed it in your shop header:
#LeftPanel td.v4mid input {}
Make sure to set the border as 0!
Thanks for this – just what I was looking for.
One question though. How do I check which eBay site the user is on (eg .com / .co.uk) and amend the URL accordingly?
Is there any way to use this search box while using a custom search button which matches the look of my store. I have the search button as an image and i want to add a search of my entire store with my custom search button. thanks.
To my my store id for Ebay UK I had to go into ‘manage my store’, then hover over the red store link.
Please tell what I need to do to make my eBay store fit the mobi format. I have put the link to my eBay store on the product page, but have been told that it takes way to long to load for a blackberry user. I know they can add apps for an eBay search, but I would like to know if I can do something for my mobi website and just my eBay store. Thank you for your time.
Worth noting that on ebay.co.uk it’s often found under the sid tag rather than sasel, although of course they are the same thing 🙂
Thats even simple!
http://shop.ebay.com/merchant/YOUR_USERID_HERE
Just append the search term to the right of this url ..
Cheers!
I guess I will just answer my own question.
add the following into the html
<input type=”hidden” name=”userid” value=”xxxxx” />
Hi! thanks a lot.
Now the question is: how about a search box for those sellers who don’t have a ebay store?
In adavance search, there is an option where you can specify the sellers. I have tried to decode those, guess I am not as smart as I thought I am. : )
David
Hi Josh,
Yes you can!!
🙂
What is your shop id?
Basically, ebay store customization is not that tough. It revolves around tweaking the CSS.
Use this code to size your ebay store
.pagewidth
{
width:980px;
text-align:left;
margin:0px auto 10px auto;
}
.pagecontainer
{
background:url(storebg.jpg);
}
This is great! One question though, is there any way to customize the results page?
On my shop I have all the content centered using CSS, however the search results just take up the whole page. Is there a way to maintain the theme I’ve created for the rest of my shop?
Massive thanks,
Josh
Hi Dave,
You can get the store id by hovering over “visit my store” within your “my ebay page”.
Ping me if you have any queries 🙂
Cheers!
That’s great to know. Thanks!! Now, how do you figure out your SID?
Hi,
Actually it aint that complicated.
The search form is as simple as 4 lines of code as shown below.
<form name=”search” method=”get” style=”display: inline;” action=”http://search.stores.ebay.com/search/search.dll?GetResult”>
<input name=”sid” value=”26433158″ type=”hidden”>
<input name=”submit” id=”submit” value=”Submit”>
</form>
You only have to replace the SID (store id) with yours!
As simple as that!
enjoy!
In the first line of code that began with:
http://search.stores.ebay.co
You forgot the “m” in the “.com” part of the URL.