How do you accept terms before selling something?

5 replies
Hey all,

How do I place a check box before the "buy now" button that asks them that they read the terms before they can buy the product? I know how to place the check box there but I can't figure out how to 'deactivate' the "buy now" button unless they check the box.

Any suggestions?
#accept #buy now #check box #selling #terms
  • Profile picture of the author pdxkurt
    Javascript... basically a simple javascript function, where there's an onclick() event in the forum checkbox input. That onclick event calls the function that would then enable the previously disabled submit button. Google it, lots of free examples.
    {{ DiscussionBoard.errors[8592138].message }}
  • Profile picture of the author Core Freedom
    Thanks, pdxkurt, I don't know the slightest thing about javascript or how to place it. Thanks for getting me in the right direction, I'll see if I can find someone to do it for me. :-)
    {{ DiscussionBoard.errors[8592373].message }}
  • Profile picture of the author Core Freedom
    Thanks John! Actually, I don't want them to have to submit their name or anything.

    I did find something and this could work, but I can't figure out how to exactly write the code, since it's not a clickable word but a clickable image.

    The base code I found is:

    <a href="/download.pdf" onclick="return confirm('I agree to the terms.')">HERE</a>

    But I need to integrate this with this:

    <p style="text-align: center;"><a href="http://website.com/product.zip" target="_blank"><img class="aligncenter size-medium wp-image-5232" alt="download" src="http://website.com/picture.jpg" width="300" height="103" /></a></p>

    I'm trying to insert the first code into this second code so the image become clickable and then this window pops up that asks them to say ok.
    {{ DiscussionBoard.errors[8592733].message }}

Trending Topics