ebay buy it now button

MatthewOgborne

Free Member
Jan 26, 2011
105
23
Bristol, UK
You are unable to hijack the buy now button as eBay descriptions are held in an iframe.

I'd also argue that most buyers know where the buy button is on eBay. If you are determied to add a button that says buy now, link it to #top.

You can add, email a friend, add to watch list and the is another I have forgotten currently from within the listing. I do not have the code on the iPad, but I do at home. I'll post the JavaScript and HTML you need later today.
 
Upvote 0

RBS

Free Member
Jul 13, 2009
2,650
325
West London
thanks guys The buy it now button is possible though I have seen it many times.

What im after is the html/javascript that will allow me to have a buy it now button in the actual auction lisitng.

<a href="http://offer.ebay.com/ws/eBayISAPI.dll?BinConfirm&amp;rev=0&amp;item=220422993385&amp;fromPage=4340&amp;fb=1" id="nav_buynow"></a>
<img src="http://website.co.uk/button.png">

Maybe this? Its from my listing`s HTML.
 
Last edited:
Upvote 0

MatthewOgborne

Free Member
Jan 26, 2011
105
23
Bristol, UK
<a href="http://offer.ebay.com/ws/eBayISAPI.dll?BinConfirm&amp;rev=0&amp;item=220422993385&amp;fromPage=4340&amp;fb=1" id="nav_buynow"></a>
<img src="http://website.co.uk/button.png">

Maybe this? Its from my listing`s HTML.

Yes, the problem is that you've got the hard-coded item number in there.

The Item number is a javascript var, although last time I looked at this the buy now button wasn't working because it was being held in the listing iframe.

The code for the other options are below:

PHP:
 <!-- ASQ -->
<script>document.write ("<a href=\""+ ebayAskSellerURL +"\" class='button_links' id='button_links'>As Seller a Question</a>");</script> 

<!-- Tell a Friend -->
<script>document.write ("<a href='http://contact.ebay.co.uk/ws1/eBayISAPI.dll?ShowEmailAuctionToFriend&item=" + ebayItemID + "' title='Tell a Friend' class='button_links' id='button_links'>Tell a Friend</a>");</script>

<!-- Watch This Item -->
<script>document.write ("<a href='http://cgi1.ebay.co.uk/ws/eBayISAPI.dll?MakeTrack&item=" + ebayItemID + "' title='Watch This Item' class='button_links' id='button_links'>Watch This Item</a>");</script>

<!-- Add Seller to favs -->
<script>document.write ("<a href=\"http://my."+ domain +"/ws/eBayISAPI.dll?AcceptSavedSeller&amp;mode=0&amp;preference=0&amp;sellerid="+ userid +"&amp;ru=http%3A%2F%2Fcgi."+ domain +"%2Fws%2FeBayISAPI.dll%3FViewItem%26item%"+ itemid +"&amp;ssPageName=STRK:MEFS:ADDVI\">Add Seller to Favourites</a>");</script>
 
Last edited:
Upvote 0

Latest Articles