How can we make the Terms and Conditions checkbox checked by default in check out?


Thank you for your question. This can be achieved easily with a quick modification of a template file – the steps are provided below.

Just a quick note, make sure you will not be breaching any merchant agreements or local regulations by setting the agreement as a default setting.

  1. Open the tpl_checkout_payment_default.php file located in the /includes/templates/template_default/templates/ directory.
  2. Find this section of code:
    tpl_checkout_payment_default.php
  3. and modify the default status of the checkbox (shown here on line 31):
    tpl_checkout_payment_default.php
  4. Save the modified tpl_checkout_payment_default.php file to your override folder. This will be /includes/templates/CUSTOM/templates/ where CUSTOM represents the name of your current template folder.

Hope this helps,

Kerrin

     
   
     
  1. #1 by Pramod on 27 May, 2010 - 7:46 pm

    Kerrin is the man!!!

    It worked. Thank you so much!!!

  2. #2 by kerrin hardy on 28 May, 2010 - 2:45 pm

    Hey Pramod

    You’re welcome. Thanks for letting me know that it worked for you.

    Cheers
    Kerrin

(will not be published)

Notify me of followup comments via e-mail. You can also subscribe without commenting.