[resolved] Terms and Conditions Check box (3 posts)

  1. leoproducer
    Posted 4 years ago #

    Hello WP community,

    On my website, I sell tickets to events and I want to require users to click 'Agree to terms' button before they are shown the purchase link.

    I am currently using Paypal as my payment portal. Paypal provides a button that redirects users to their site for payment. I would like this button to be hidden until the user click a radio button acknowledging their acceptance to the terms and conditions I set.

    I suppose there are probably plugins that do this, otherwise, would someone like to point me in the right direction as to coding?

    Thank you.

  2. leoproducer
    Posted 4 years ago #

    function showMe (it, box) {
    var vis = (box.checked) ? "block" : "none";
    document.getElementById(it).style.display = vis;

    <input type="checkbox" name="c1" onclick="showMe('paypal-button', this)" unchecked> I have read and agree to the disclaimer.

  3. wthomasUW
    Posted 3 years ago #

    hello.. in the example below where foes the code for the paypal buttona actually go?

    The checkbox and everything show up fine. But can still click the buy button without ticking the checkbox.


Topic Closed

This topic has been closed to new replies.

About this Topic