Assign value to PayPal button

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Assign value to PayPal button

Post by alex4orly »

I am trying to use the PayPal objects

I tried - Buy Now, I tried donations... Nothing works. I left the "amount" element empty
I expect that the selected item amount from the ComboBox will be inserted as the "amount" but it does not.
Below is the code generated by WWB

Need help please

<form action="https://www.paypal.com/cgi-bin/webscr" id="PayPal1_form" method="post" style="margin:0;padding:0;" target="">
<input type="hidden" name="business" value="alex4orly@gmail.com">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="item_name" value="Donation">
<input type="hidden" name="item_number" value="">
<input type="hidden" name="amount" value="">
<input type="hidden" name="currency_code" value="AUD">
<input type="hidden" name="shipping" value="">
<input type="hidden" name="shipping2" value="">
<input type="hidden" name="handling" value="">
<input type="hidden" name="return" value="www.cla-ltd.org">
<input type="hidden" name="cancel_return" value="www.cla-ltd.org">
<input type="hidden" name="undefined_quantity" value="0">
<input type="hidden" name="receiver_email" value="alex4orly@gmail.com">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="on0" value="Make a Donation">
<select name="os0" size="1" id="Combobox1" style="position:absolute;left:30px;top:20px;width:136px;height:31px;z-index:1;">
<option selected value="">Please select</option>
<option value="20.00">$20.00</option>
<option value="50.00">$50.00</option>
<option value="100.00">$100.00</option>
</select>
<input id="PayPal1" type="image" name="submit" src="images/x-click-but01.gif" style="position:absolute;left:65px;top:71px;z-index:1;" alt="Make payments with PayPal, it's fast, free, and secure!">
</form>
User avatar
Pablo
 
Posts: 23458
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Assign value to PayPal button

Post by Pablo »

I do not think the amount can be left empty.
If you want to control the amount via a comobox then it has to be part of the same form.
Like in the example that is created by the form wizard.
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Assign value to PayPal button

Post by alex4orly »

I can setup a starting amount of say $1
I would love to make the combo box part of the form.
Please tell me how? How will the form know to populate the amount from the combo box?
Where is the example?
Thanks
User avatar
BaconFries
 
 
Posts: 5944
Joined: Thu Aug 16, 2007 7:32 pm

Re: Assign value to PayPal button

Post by BaconFries »

The example can be found by going to Form Controls->Form Wizard->PayPal - Price Options. Note although this is using PayPal it has been made from a Form with all the hidden fields added to make it work just as a PayPal Add to Cart Button. Now look carefully at the Hidden Fields "amount" isnt added, it is used instead in the Combobox under name "amount" which then allows whatever is selected in the dropdown to be outputted to PayPal.
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Assign value to PayPal button

Post by alex4orly »

OK, found how to insert a form using the Wizard, there are there 3 options related to PayPal - not sure if I should use : Price Options
If there is a project sample - please point me to it, otherwise - if I create a form from scaratch - like I did many times, how do I know what are the hidden fileds I need to insert.

Thanks again
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Assign value to PayPal button

Post by alex4orly »

OK, I added a form to my page, but
When I finish - the form is gone, how can I make corrections to it?
Whn I tried running it - Paypal gives me the following error

You have requested an outdated version of PayPal. This error often results from the use of bookmarks.

Help please
Thanks
User avatar
Pablo
 
Posts: 23458
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Assign value to PayPal button

Post by Pablo »

You can customize the parameters in 'hidden fields' of the form.

Note the form wizard just generates an example form. If you need more advanced functionality then you will need to add this yourself.
User avatar
BaconFries
 
 
Posts: 5944
Joined: Thu Aug 16, 2007 7:32 pm

Re: Assign value to PayPal button

Post by BaconFries »

not sure if I should use : Price Options
The Price Options text is just to show how it works, you can name it whatever you want. If your meaning you don't want a price selection from <select><option>name="" value=""</option></select> thrn it will need a script.
Whn I tried running it - Paypal gives me the following error
Then there must be a error in the form code.
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Assign value to PayPal button

Post by alex4orly »

Hello again,
No,no don't mind what the element is called.
If you try to create a form from a template, there 3 Papal options, which of them should I take?
Thanks
User avatar
BaconFries
 
 
Posts: 5944
Joined: Thu Aug 16, 2007 7:32 pm

Re: Assign value to PayPal button

Post by BaconFries »

It will depend on your needs. Do you require the end user to select a price? then the Price Option in the Form Wizard will do. You can modify by simply clicking on it to open the form properties then select hidden fields. Note only change what you need ie email, return, shopping _url, currency etc.

If you don't need a multiple price option then you can use the Buynow or Add to Cart buttons from the toolbox to suit your needs.
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Assign value to PayPal button

Post by alex4orly »

Hi Guys,
All good, figured it out - exactly how I wanted it
Was a bit of a fight with nested Layout grids, but all OK now

Just one other question - I must change it to a PHP page so that the email works, or that is done by PayPal back to me?

Thank you
Post Reply