PAYPAL BUTTON IN LAYOUT FORM GRID W/INFO

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
lgmfls
 
 
Posts: 26
Joined: Mon Feb 08, 2021 5:54 pm

PAYPAL BUTTON IN LAYOUT FORM GRID W/INFO

Post by lgmfls »

Hello,

I'm having trouble with getting this paypal button to work properly.
The website is https://sharecommunitydevelopmentcorp.com/getstarted
The wbs file download with just the section with the PayPal button inside the form is located at: https://sharecommunitydevelopmentcorp.com/page6

I had the button working before in a previous version of the site before I changed it over to use layout grids and using a grid as a form, but I can't find or remember exactly what all I did then to get it to work and have been frustrated by it now for a few days, so I'm asking for a little help. It's probably, or hopefully something really simple.

The problem is:

1) The form doesn't show on the page in the same order as in the file.
2) Parts of the form show outside the form area when published.
3) Even as is visually, when all form areas are filled out, the form gives an error on submit
4) I'm trying to send all the form data along with the actual order payment to my email address. If I use the bottom without adding the form information, I can get it to work by itself. But I want the form data to be required and sent along with the purchase.

Any help would be greatly appreciated!
User avatar
Pablo
 
Posts: 21582
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: PAYPAL BUTTON IN LAYOUT FORM GRID W/INFO

Post by Pablo »

A PayPal button should not be inside a form. Because a PayPal button is a form by itself.
You cannot collect data with a form and sent it to PayPal, that is not how PayPal works.

If you want add option to a PayPal then you can use the 'options' property. This is demonstrated here:
https://www.wysiwygwebbuilder.com/suppo ... tique.html

So in other words, a PayPal button is just a payment button, not a form processor.
If you want to collect more data from a customer and then you will need to process the form and the PayPal payment separately and then link the payment and customer data together in your 'back office'.
Or use a third party eCommerce solution like Vibracart pro.
https://www.wysiwygwebbuilder.com/vibracartpro.html
lgmfls
 
 
Posts: 26
Joined: Mon Feb 08, 2021 5:54 pm

Re: PAYPAL BUTTON IN LAYOUT FORM GRID W/INFO

Post by lgmfls »

Pablo wrote: Thu Feb 10, 2022 7:20 pm A PayPal button should not be inside a form. Because a PayPal button is a form by itself.
You cannot collect data with a form and sent it to PayPal, that is not how PayPal works.

If you want add option to a PayPal then you can use the 'options' property. This is demonstrated here:
https://www.wysiwygwebbuilder.com/suppo ... tique.html
Thank you for the quick response Pablo.

Okay so I can use the paypal button in the layout grid, but can't also make that part of the layout grid a form also. So as far as using the "options" property for the PayPal button, can I use Edit or combo boxes still as long as the layout grid isn't set as a form, and then reference the information to be collected in those as the "options"? Or do the options have to be in combo boxes like on the template site you sent?

I think the reason it may have worked before was that I used the paypal buy now button as it's own form, but in a layer instead of a layout grid set to form, and then added all of the edit and combo boxes that collected that information as options and extra variables for the paypal button form. Then the information collected in those boxes where it was name, email or anything else was being sent the same way that size or color would be sent the order through paypal. Is this plausible or an incorrect use of the options and extra variables fields for the Paypal button?
User avatar
Pablo
 
Posts: 21582
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: PAYPAL BUTTON IN LAYOUT FORM GRID W/INFO

Post by Pablo »

Okay so I can use the paypal button in the layout grid, but can't also make that part of the layout grid a form also.
Correct. Because in HTML you cannot use a form inside another form.
So as far as using the "options" property for the PayPal button, can I use Edit or combo boxes still as long as the layout grid isn't set as a form and then reference the information to be collected in those as the "options"? Or do the options have to be in combo boxes like on the template site you sent?
You can assign up to 6 options to a PayPal button. These can be editboxes or comboboxes.
lgmfls
 
 
Posts: 26
Joined: Mon Feb 08, 2021 5:54 pm

Re: PAYPAL BUTTON IN LAYOUT FORM GRID W/INFO

Post by lgmfls »

Pablo wrote: Thu Feb 10, 2022 8:50 pm
So as far as using the "options" property for the PayPal button, can I use Edit or combo boxes still as long as the layout grid isn't set as a form and then reference the information to be collected in those as the "options"? Or do the options have to be in combo boxes like on the template site you sent?
You can assign up to 6 options to a PayPal button. These can be editboxes or comboboxes.
Okay great, I think I almost have it working also.

One last question, can the extra variables be used to include additional items like the "options" using edit or combo boxes, or what is it used for exactly? And also, can the text area for a message be used as an option or extra variable like editboxes or comboboxes?

Thanks sincerely!
User avatar
Pablo
 
Posts: 21582
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: PAYPAL BUTTON IN LAYOUT FORM GRID W/INFO

Post by Pablo »

A Textarea cannot be used for PayPal options.

For more information about options please see the help -> PayPal Buttons -> Options
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: PAYPAL BUTTON IN LAYOUT FORM GRID W/INFO

Post by BaconFries »

At onetime a text area(Notes) was used in PayPal to allow a message (note) to be sent to the seller this is now deprecated (no longer supported) See the following;
https://www.paypal-community.com/t5/Pay ... -p/1156413

See the following for all PayPal deprecated variables (Not used anymore):
https://developer.paypal.com/docs/paypa ... -variables
lgmfls
 
 
Posts: 26
Joined: Mon Feb 08, 2021 5:54 pm

Re: PAYPAL BUTTON IN LAYOUT FORM GRID W/INFO

Post by lgmfls »

Hello and thanks again Pablo and Baconfries for your responses and answers.

I was able to get the form back working again the way I want using a layer as the last part of the page instead of putting it in a layout grid. Of course I then had to make that layer layout for each BP.

You can see the form and how it is working at https://sharecommunitydevelopmentcorp.com/getstarted It's at the bottom of the page.

There the form works as I want it to by:

1) requiring all fields to be filled in before the submit PayPal button will work
2) requiring validation of the type of information requested
3) sending over all data including the text area to the PayPal order using the extra variables from the form.
4) going to the PayPal site with all info and allowing the user to pay with or without signing into a PayPal account

The problem that I have is that I can't get that to work in a layout grid so far, although I have tried many ways. So I just put it up this way until I can spend more time on it to figure out how to get it to work in a layout grid, which is what I would still like to know.

You can try out the form by filling in all the necessary fields and then hitting submit on the PayPal button to see how when you go to the PayPal page, all of the data from the form is there to view with the order as well just the same as size or color would be as well. Of course you won't be charged anything since you won't be entering in any of your own information or clicking the final pay button.

Let me know what you think and why this works in a layer but not in a layout grid, so far for me at least.

Thanks sincerely.
User avatar
Pablo
 
Posts: 21582
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: PAYPAL BUTTON IN LAYOUT FORM GRID W/INFO

Post by Pablo »

Layers and layout grids are both just containers, the only difference is that a layer is for fixed layouts and a layout grid is for flexible layouts.
So, with the same settings the PayPal button should work the same.

See also this example where the PayPal button is used inside a layout grid:
https://www.wysiwygwebbuilder.com/suppo ... tails.html
Post Reply