WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. leoproducer
    Member
    Posted 2 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.
    Diego

  2. leoproducer
    Member
    Posted 2 years ago #

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

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

  3. wthomasUW
    Member
    Posted 1 year 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.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags