Community Support Forums — WordPress® ( Users Helping Users ) — 2011-03-29T08:43:28-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2860 2011-03-29T08:43:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2860&p=8553#p8553 <![CDATA[Re: Multiple price options for the PayPal page order button]]>

Statistics: Posted by Cristián Lávaque — March 29th, 2011, 8:43 am


]]>
2011-03-29T03:12:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2860&p=8542#p8542 <![CDATA[Re: Multiple price options for the PayPal page order button]]>
That's brilliant. It works a treat. Thank you so much for your help. I'm sorted now.

Brian

Statistics: Posted by bennisb — March 29th, 2011, 3:12 am


]]>
2011-03-28T18:40:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2860&p=8524#p8524 <![CDATA[Re: Multiple price options for the PayPal page order button]]>
Code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
   <input type="hidden" name="business" value="brian@bennis.net" />
   <input type="hidden" name="cmd" value="_xclick" />
   <!-- Instant Payment Notification & Return Page Details -->
   <input type="hidden" name="notify_url" value="http://www.pensionforecast.org.uk/?s2member_paypal_notify=1" />
   <input type="hidden" name="cancel_return" value="http://www.pensionforecast.org.uk/" />
   <input type="hidden" name="return" value="http://www.pensionforecast.org.uk/?s2member_paypal_return=1" />
   <input type="hidden" name="rm" value="2" />
   <!-- Configures All Of The Checkout Fields -->
   <input type="hidden" name="no_shipping" value="1" />
   <input type="hidden" name="no_note" value="1" />
   <input type="hidden" name="custom" value="www.pensionforecast.org.uk" />
   <input type="hidden" name="currency_code" value="GBP" />
   <input type="hidden" name="page_style" value="paypal" />
   <input type="hidden" name="item_name" value="NON-MEMBER: Pension Death Benefits Trust. A trust to protect your pension from attack from a variety of sources." />
   <input name="item_number" value="sp:1245:8760" type="hidden" />
   <input name="amount" value="300" type="hidden" />
   <p>How many Trusts would you like created?</p>
   <select name="quantity">
      <option value="1">1 Trust £300</option>
      <option value="2">2 Trusts £600</option>
      <option value="3">3 Trusts £900</option>
      <option value="4">4 Trusts £1,200</option>
      <option value="5">5 Trusts or more £1,500</option>
   </select>
   <!-- Displays The PayPal® Image Button -->
   <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" style="width:auto; height:auto; border:0;" alt="PayPal®" />
</form>


Let me know if that solves it. :)

Statistics: Posted by Cristián Lávaque — March 28th, 2011, 6:40 pm


]]>
2011-03-28T15:54:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2860&p=8515#p8515 <![CDATA[Re: Multiple price options for the PayPal page order button]]>
Thanks, that's done the trick. But there's one tiny element that could be misleading. You'll see on the PayPal order form it shows Quantity: 1
Image.
That could be misleading if a person has ordered 4 trusts for £1,200. Any ideas?

Brian

Statistics: Posted by bennisb — March 28th, 2011, 3:54 pm


]]>
2011-03-28T13:33:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2860&p=8509#p8509 <![CDATA[Re: Multiple price options for the PayPal page order button]]>
The reason why your amount value is not being sent, is because you put the code outside of the form. Here, try this:

Code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
   <input type="hidden" name="business" value="brian@bennis.net" />
   <input type="hidden" name="cmd" value="_xclick" />
   <!-- Instant Payment Notification & Return Page Details -->
   <input type="hidden" name="notify_url" value="http://www.pensionforecast.org.uk/?s2member_paypal_notify=1" />
   <input type="hidden" name="cancel_return" value="http://www.pensionforecast.org.uk/" />
   <input type="hidden" name="return" value="http://www.pensionforecast.org.uk/?s2member_paypal_return=1" />
   <input type="hidden" name="rm" value="2" />
   <!-- Configures All Of The Checkout Fields -->
   <input type="hidden" name="no_shipping" value="1" />
   <input type="hidden" name="no_note" value="1" />
   <input type="hidden" name="custom" value="www.pensionforecast.org.uk" />
   <input type="hidden" name="currency_code" value="GBP" />
   <input type="hidden" name="page_style" value="paypal" />
   <input type="hidden" name="item_name" value="NON-MEMBER: Pension Death Benefits Trust. A trust to protect your pension from attack from a variety of sources." />
   <input name="item_number" value="sp:1245:8760" type="hidden" />
   <p>How many Trusts would you like created?</p>
   <select name="amount">
      <option value="300">1 Trust £300.00</option>
      <option value="600">2 Trusts £600.00</option>
      <option value="900">3 Trusts £900.00</option>
      <option value="1200">4 Trusts £1,200.00</option>
      <option value="1500">5 Trusts or more £1,500.00</option>
   </select>
   <!-- Displays The PayPal® Image Button -->
   <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" style="width:auto; height:auto; border:0;" alt="PayPal®" />
</form>


Hope that helps. :)

By the way, I fixed your posts already, but read this on how to post code in the forums ;) viewtopic.php?f=36&t=2780

Statistics: Posted by Cristián Lávaque — March 28th, 2011, 1:33 pm


]]>
2011-03-28T13:19:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2860&p=8506#p8506 <![CDATA[Re: Multiple price options for the PayPal page order button]]>
Thanks for your reply. I made the changes I think you suggested, but it either showed £0 or error when I clicked on the button. Here's the full code I've got at present...

Code:
How many Trusts would you like created?

<tr><td><select name="amount">
   <option value="300">1 Trust £300.00</option>
   <option value="600">2 Trusts £600.00</option>
   <option value="900">3 Trusts £900.00</option>
   <option value="1200">4 Trusts £1,200.00</option>
   <option value="1500">5 Trusts or more £1,500.00</option>
</select> </td></tr>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="brian@bennis.net" />
<input type="hidden" name="cmd" value="_xclick" />
<!-- Instant Payment Notification & Return Page Details -->
<input type="hidden" name="notify_url" value="http://www.pensionforecast.org.uk/?s2member_paypal_notify=1" />
<input type="hidden" name="cancel_return" value="http://www.pensionforecast.org.uk/" />
<input type="hidden" name="return" value="http://www.pensionforecast.org.uk/?s2member_paypal_return=1" />
<input type="hidden" name="rm" value="2" />
<!-- Configures All Of The Checkout Fields -->
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="custom" value="www.pensionforecast.org.uk" />
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="page_style" value="paypal" />
<input type="hidden" name="item_name" value="NON-MEMBER: Pension Death Benefits Trust. A trust to protect your pension from attack from a variety of sources." />
<input name="item_number" value="sp:1245:8760" type="hidden" />
<!-- Displays The PayPal® Image Button -->
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" style="width:auto; height:auto; border:0;" alt="PayPal®" />
</form>


It produces £0 using this code and if I change name="item_number" to name="amount" just before value="sp:1245:8760" above, then the PayPal error is produced. I'm obviously being very stupid.

Brian

Statistics: Posted by bennisb — March 28th, 2011, 1:19 pm


]]>
2011-03-28T12:52:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2860&p=8503#p8503 <![CDATA[Re: Multiple price options for the PayPal page order button]]>
PayPal wrote:
Option fields let your customers specify options (such as size or color) for the items they purchase.


In your form, the price is set at £300 by this line:

Code:
<input name="amount" value="300" type="hidden">


You could try taking out that hidden amount field and changing the <select> name to "amount" and then give the options the value in Pounds with the description they have, and see if that works.

Your dropdown code would be like this:

Code:
<select name="amount">
   <option value="300">1 Trust £300.00</option>
   <option value="600">2 Trusts £600.00</option>
   <option value="900">3 Trusts £900.00</option>
   <option value="1200">4 Trusts £1,200.00</option>
   <option value="1500">5 Trusts or more £1,500.00</option>
</select>


This solution would not update the item number, though, which may not be a problem, I don't know.

Code:
<input name="item_number" value="sp:1245:8760" type="hidden">


Let me know if this helped you. :)

Statistics: Posted by Cristián Lávaque — March 28th, 2011, 12:52 pm


]]>
2011-03-28T11:49:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2860&p=8497#p8497 <![CDATA[Multiple price options for the PayPal page order button]]>
How do I add a multiple price option to the s2Member button code that is shown at the bottom of this page - http://www.pensionforecast.org.uk/what- ... om-attack/

I've taken the code from a button I created in PayPal - here's the code my PayPal account generated.

Code:
<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="7WW4A74PCNSVQ">
<table>
<tr><td><input type="hidden" name="on0" value="How many Trusts would you like created?">How many Trusts would you like created?</td></tr><tr><td><select name="os0">
   <option value="1 Trust">1 Trust £300.00</option>
   <option value="2 Trusts">2 Trusts £600.00</option>
   <option value="3 Trusts">3 Trusts £900.00</option>
   <option value="4 Trusts">4 Trusts £1,200.00</option>
   <option value="5 Trusts or more">5 Trusts or more £1,500.00</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="GBP">
<input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110306-1/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.paypalobjects.com/WEBSCR-640-20110306-1/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>


Thanks.

Brian

Statistics: Posted by bennisb — March 28th, 2011, 11:49 am


]]>