How would you continue to add discounts to this paypal html code?

Batman

New member
Here is the html from paypals site. Lets say that I want to add another $0.50 discount on the sixth item and the next 5 items after the sixth. Where do you insert this information/ how do you change the code to reflect this change?

I can't figure out how to do this, so if you could paste in the updated code, that would be amazing!!!

Thank you!


Sample Code for Add to Cart Buttons with Multiple Discount AmountsThe sample HTML code below illustrates a basic Add to Cart button with these features:

oAn item named "Birthday - Cake and Candle".
oAn item price of $5.95 USD.
oA $0.15 discount applies on the first item; $0.20 on the next 4 items.
oPayPal calculates tax and shipping based on rates that you set up in your PayPal account.
oThe buyer's PayPal Shopping Cart opens in a separate browser window or tab.
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr"







method="post">





<!-- Identify your business so that you can collect the payments. -->



<input type="hidden" name="business" value="[email protected]">





<!-- Specify a PayPal Shopping Cart Add to Cart button. -->



<input type="hidden" name="cmd" value="_cart">



<input type="hidden" name="add" value="1">





<!-- Specify details about the item that buyers will purchase. -->



<input type="hidden" name="item_name"







value="Birthday - Cake and Candle">



<input type="hidden" name="amount" value="3.95">



<input type="hidden" name="currency_code" value="USD">





<!-- Specify the discount amounts that apply to the item. -->



<input type="hidden" name="discount_amount" value="0.15">



<input type="hidden" name="discount_amount2" value="0.20">



<input type="hidden" name="discount_num" value="4">





<!-- Display the payment button. -->



<input type="image" name="submit" border="0"







src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif"







alt="PayPal - The safer, easier way to pay online">



<img alt="" border="0" width="1" height="1"







src="https://www.paypal.com/en_US/i/scr/pixel.gif" ></form>
 
Back
Top