How to ensure customer has selected 'I agree' tick box before moving to PayPal?

Discussion in 'Templates customization' started by cooliohiten, Aug 13, 2010.

  1. cooliohiten

    cooliohiten Member

    Joined:
    May 1, 2009
    Messages:
    124
    Dear All,

    We want to ensure that a customer agrees to our Terms and Conditions before they purchase the product.

    We ensured that we had selected 'Display Agreement' for our product in Amember admin. After doing this, a customer goes to www.mysite.com/amember/signup.php and after clicking 'Continue', they see a separate Agreement page.

    However, we wanted the Agreement section to be on one page (signup.php) and have used the following code to do this (in signup.html):

    <textarea name="license_text" readonly="readonly" cols=80 rows=10>
    license text goes here
    </textarea>
    <br />
    <input type="checkbox" name="i_agree" value="1"
    {if $smarty.request.i_agree}checked="checked"{/if} /> I Agree
    <br />

    The above code displays the text box and 'I agree' tick box in signup.php.

    However, I can still navigate to PayPal after clicking 'Continue', without having selected the 'I agree' tick box!

    I want the red error message to display if the customer doesn't select the 'I agree' tick box.

    Can someone help me with this?

    I've tried to select and unselect 'Display Agreement' for the product in Amember admin, but this doesn't make a difference.

    Any help would be much appreciated.

    Best wishes,

    ch
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Try adding
    class="required"

    David
  3. cooliohiten

    cooliohiten Member

    Joined:
    May 1, 2009
    Messages:
    124
    Hi David,

    Thanks for your reply.

    Can you please tell me where in the code I should put: class="required" ?

    Please excuse me as I'm not that familiar with PHP.

    I would be grateful for your help.

    Best wishes,

    ch
  4. cooliohiten

    cooliohiten Member

    Joined:
    May 1, 2009
    Messages:
    124
    Hi David,

    I've figured out how to add class="required"

    If I don't select the 'I agree' tick box then the following label is displayed:

    This field is required.

    However, I would like to change this label to 'Please agree to our Terms'

    Can you explain how I can change the text of the label please?

    Thanks,

    ch

Share This Page