PayPal Multiple Price

This forum is dedicated to discussions about shopping carts/ecommerce.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
Post Reply
User avatar
zinc
 
 
Posts: 2146
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

PayPal Multiple Price

Post by zinc »

Pablo

I have setup a button on the PayPal account for a ticket that can be sold as £15.00 or concession £12.00 so I have left it so the user can select the type based on PayPal's own instruction, on WWB I have added a buy now button but how do I link it so the user can select a ticket type before purchasing. I have tried a combobox but that is ideal for size which does not apply here.
Running WYSIWYG Web Builder since 2007...
User avatar
donjohnson24
 
 
Posts: 105
Joined: Thu Sep 27, 2012 9:32 pm
Location: Bridgwater, Somerset, UK
Contact:

Re: PayPal Multiple Price

Post by donjohnson24 »

I'm not absolutely sure whether I have fully understood what you are trying to do, but if it is like the alternative prices shown on this page:

http://www.johnsmithbusker.co.uk/ordering.html

then the following is the HTML for one of the items:

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="XXXXXXXXXXXXX"> (XXXXXXX would be your own code)
<table>
<tr>
<td>
<p align="center"><input type="hidden" name="on0" value="Destination">Destination</p>
</td>
<td><select name="os0">
<option value="UK">UK £59.00</option>
<option value="Europe">Europe £61.00</option>
<option value="Rest of World">Rest of World £64.00</option>
</select> </td>
</tr>
</table>
<input type="hidden" name="currency_code" value="GBP">
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>

It is some time since I created this, so it may be crude - but it does seem to be effective.

Hopefully it may be of some help - if not, just ignore it! :roll:
User avatar
zinc
 
 
Posts: 2146
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

Re: PayPal Multiple Price

Post by zinc »

Don;
Not quite what I had in mind, but I thank you for the suggestion, it is not actually bad.
Z
Running WYSIWYG Web Builder since 2007...
User avatar
BaconFries
 
 
Posts: 5326
Joined: Thu Aug 16, 2007 7:32 pm

Re: PayPal Multiple Price

Post by BaconFries »

Here you are Sam, Bendigo, Zinc, lol....take a look at this I think this is what you after

Code: Select all

<form 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="zinc@madebyzinc.com">

<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">

<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Ticket Type">
<input type="hidden" name="currency_code" value="GBP">

<!-- Provide a dropdown menu option field. -->
<input type="hidden" name="on0" value="Ticket">Type of Ticket<br />
<select name="os0">
<option value="Select a type">-- Select a Ticket --</option>
<option value="No Consession">No Consession</option>
<option value="Consession">Consession</option>
</select> <br />

<!-- Provide a dropdown menu option field with prices. -->
<input type="hidden" name="on1" value="Price">Price <br />
<select name="os1">
<option value="No Discount">No Consession £15.00 GBP</option>
<option value="Discount">Consession £12.00 GBP</option>

</select> <br />

<!-- Specify the price that PayPal uses for each option. -->
<input type="hidden" name="option_index" value="1">
<input type="hidden" name="option_select0" value="No Discount">
<input type="hidden" name="option_amount0" value="15.00">
<input type="hidden" name="option_select1" value="Discount">
<input type="hidden" name="option_amount1" value="12.00">

<br />

<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif"
alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1"
src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >

</form>
CJS
 
 
Posts: 19
Joined: Sat Jan 09, 2010 3:10 am

Re: PayPal Multiple Price

Post by CJS »

zinc wrote:Pablo

I have setup a button on the PayPal account for a ticket that can be sold as £15.00 or concession £12.00 so I have left it so the user can select the type based on PayPal's own instruction, on WWB I have added a buy now button but how do I link it so the user can select a ticket type before purchasing. I have tried a combobox but that is ideal for size which does not apply here.
What I have done in a similar situation is to just offer two tickets for sale; one priced at 12 and the other priced at 15. I couldn't find a way for the buyer to select the price after they entered PayPal.
Hope this helps.
User avatar
zinc
 
 
Posts: 2146
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

Re: PayPal Multiple Price

Post by zinc »

BaconFries wrote:Here you are Sam, Bendigo, Zinc, lol....take a look at this I think this is what you after

Code: Select all

<form 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="zinc@madebyzinc.com">

<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">

<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Ticket Type">
<input type="hidden" name="currency_code" value="GBP">

<!-- Provide a dropdown menu option field. -->
<input type="hidden" name="on0" value="Ticket">Type of Ticket<br />
<select name="os0">
<option value="Select a type">-- Select a Ticket --</option>
<option value="No Consession">No Consession</option>
<option value="Consession">Consession</option>
</select> <br />

<!-- Provide a dropdown menu option field with prices. -->
<input type="hidden" name="on1" value="Price">Price <br />
<select name="os1">
<option value="No Discount">No Consession £15.00 GBP</option>
<option value="Discount">Consession £12.00 GBP</option>

</select> <br />

<!-- Specify the price that PayPal uses for each option. -->
<input type="hidden" name="option_index" value="1">
<input type="hidden" name="option_select0" value="No Discount">
<input type="hidden" name="option_amount0" value="15.00">
<input type="hidden" name="option_select1" value="Discount">
<input type="hidden" name="option_amount1" value="12.00">

<br />

<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif"
alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1"
src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >

</form>
Can this be done though WWB visually or do I have to embed this code?
Running WYSIWYG Web Builder since 2007...
User avatar
Pablo
 
Posts: 21575
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: PayPal Multiple Price

Post by Pablo »

You can do this visually by creating a standard form. The PayPal buttons only provide 'fixed' functionality.
User avatar
zinc
 
 
Posts: 2146
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

Re: PayPal Multiple Price

Post by zinc »

Thanks guys I see the light now! :D
Running WYSIWYG Web Builder since 2007...
Post Reply