PayPal Terms&Conditions

Do you want to share WYSIWYG Web Builder tips, tricks, tutorials or useful HTML code? You can post it here...
(no questions or problems please, this section is not monitored by support).
Forum rules
This section is to share tips, tricks and tutorials related to WYSIWYG Web Builder.
Please do not post questions or problems here. They will not be answered.

PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
Post Reply
User avatar
BaconFries
 
 
Posts: 3997
Joined: Thu Aug 16, 2007 7:32 pm

PayPal Terms&Conditions

Post by BaconFries » Sun Jun 18, 2017 3:46 pm

A couple of days ago a User/Member asked Here
I am trying to add a terms and conditions button to Subcription Paypal button
i'm going to type the terms and conditions, and add a checkbox, so that the paypal subscribe button doesn't work until you've ticked the checkbox.
I replied that it would require the use of scripting such as javascript or even jQuery. Thinking if it could be done I decided to write up some code (jQuery) for this. You can download the example .wbs and see the results from MediaFire Download

There are two examples both work exactly the same the only difference is what is used to display the "T&C" one will use a Modal Layer and the other a jQuery Dialog. Each Demo has a PayPal Subscription button (Disabled till Checkbox is Clicked/Checked) you can click on it but a popup alert will show informing you to use you must accept the T&C first.
The Checkbox is also(Disabled till you click Agree in the T&C) lastly there is a Text link to the "T&C" on each you will see Agree and Disagree buttons by clicking Agree the Checkbox will then become Checked allowing The PayPal button to be clicked.

Note that when using this that the PayPal button was filled with all the required data such a Subscription fee, days to run etc it was then converted to a form for it to work. The Demo is for WYSIWYG Web Builder 12.1 and Higher only.

User avatar
Pablo
 
Posts: 17239
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: PayPal Terms&Conditions

Post by Pablo » Sun Jun 18, 2017 5:51 pm

Thanks for sharing your solution!

User avatar
BaconFries
 
 
Posts: 3997
Joined: Thu Aug 16, 2007 7:32 pm

Re: PayPal Terms&Conditions

Post by BaconFries » Sun Jun 18, 2017 5:57 pm

Your welcome Pablo.

User avatar
ColinM
 
 
Posts: 1057
Joined: Wed Feb 09, 2011 3:40 am
Location: Western Australia
Contact:

Re: PayPal Terms&Conditions

Post by ColinM » Mon Jun 19, 2017 5:10 am

Good work my friend :wink: 8)
Yours truly
Colin M
Western Australia
FORUM MODERATOR
Please think before you post, be polite, don't hijack threads and above all please respect Pablo's huge effort!
My Website

User avatar
BaconFries
 
 
Posts: 3997
Joined: Thu Aug 16, 2007 7:32 pm

Re: PayPal Terms&Conditions

Post by BaconFries » Mon Jun 19, 2017 8:07 am

Thanks Colin 😀

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest