11 / 11
Jan 2014

Hi,



I want to offer a product-specific discount on one of my items, and have gone through the process of doing that with the Buy Now button. I've generated the html code, but when I paste it into my web page, no text box shows up into which to enter the discount code. The text "Discount code:" shows up, but no box.



You can see what I mean here:



1http://icelandweatherreport.com/the-little-book-of-the-icelanders1



Help??



Thanks.



alda

  • created

    Dec '11
  • last reply

    Jan '14
  • 10

    replies

  • 1.7k

    views

  • 4

    users

  • 7

    links

Here is the button code as it is in the source code of your website:

<form action="https://www.e-junkie.com/ecom/gb.php?i=884658&c=single&cl=116543" accept-charset="UTF-8" method="POST">

<input name="on0" type="hidden" value="Promotion" />Discount Code:</p>

<input name="os0" type="text" />

<input alt="Buy Now" src="http://www.e-junkie.com/ej/x-click-butcc.gif" type="image" /></form>



It is a little bit different then our default code. I would suggest first trying to replace the code above with our default code which should look like this:

<form method="POST" action="https://www.e-junkie.com/ecom/gb.php?i=884658&c=single&cl=116543" accept-charset="UTF-8" target="ejejcsingle"><input type="hidden" name="on0" value="Promotion"/>Discount Code:<br/><input type="text" name="os0"/><br/><input type="image" src="http://www.e-junkie.com/ej/x-click-butcc.gif" border="0" alt="Buy Now"/></form>



You will also want to make sure that the web-building software you are using does not alter the code any when you save the webpage.

Thanks for the quick reply. I've pasted in the code above but it still looks exactly the same as before. It doesn't seem like WordPress is changing the code when I save the page - I checked that too.



Any idea what's wrong? This is very frustrating ...

Actually, the field is there, but it your site's CSS is removing the border around the text box, so you can't see where it is. You should be able to override that by adding a style= attribute defining a border appearance to the INPUT text field tag, like so:



<input name="os0" type="text" style="border:1px inset gray;">

Thank you!



The text box now shows up. However, I have a different problem - the discount is not being applied. I've gone through the steps of creating a discount code, given it a name, specified the number of items, flat rate amount etc. -- but when I try to input the code and test it out, it still shows up with the original price on the PayPal site.



I'm putting the full price of the book in the "discount" field, since I want those who have the code to be able to download it for free. But it's still showing the original amount?



What am I doing wrong?? - Is there a lag in the system?

Sorry - just one more thing: I would like to change the default 'Add to Cart' button to something more splashy, using a custom graphic. Can you point me to a tutorial on this site on how to modify the code?



Thank you!

2 years later

I have put the buy now button on my website and it appears to function just fine.

However, now I'd like to offer a discount ... I have clicked the button to modify the code so that the text box could be shown to enter the discount code.

I'm having a problem at that point.

I am not familiar with codes and I understand how to use the http:.... to link the button to my pay pal site. But I'm really having a problem on how to put the text box with the image for the discount box on my site and how to tie that discount site so that the customer can enter the code before clicking on the buy now image.

I'd appreciate some help with this problem.

Thanks

This help page explains how to set up and use discount codes with Buy Now buttons:

http://www.e-junkie.com/ej/faq.discounts.buy-now.htm



On the button codes screen, when you check the box to modify the code to allow entering a discount code, that changes the ready-made Buy Now button code we provide for you there. You would copy that code and simply paste it into your site wherever you want the button to appear, fully replacing any older Buy Now button code you may already have in your site for that product.