I am trying to include terms and conditions that are shown on the checkout on the customer registration form. I have tried various ways and managed to get it to display correctly but no matter what I try I cannot make it work as a required field and each attempt the customer can still register without agreeing to the T&C's.

Any help or suggestions on the best way to implement this would be really appreciated!

  • Did you manage to get it done?
    – Raül
    Jul 27, 2018 at 9:32

1 Answer 1


I have put a Terms and Conditions checkbox on the register form. It might be useful for you if you just want a checkbox.

You must put this in the phtml form you are editing:

<div style="width: auto; margin: 0;" class="field choice newsletter">
        <input type="checkbox" data-validate="{required:true}" name="custom-terms" title="<?php /* @escapeNotVerified */ echo __('Terms & conditions') ?>" id="register-input-custom" class="checkbox">
        <label for="custom-terms" class="label">
                <?php echo __('I have read and accept the ') ?><a href="<?php echo $this->getUrl('privacy_policy');?>"><?php echo __('PRIVACY POLICY') ?></a><?php echo __(' and ') ?><a href="<?php echo $this->getUrl('terms_conditions');?>"><?php echo __('CONDITIONS OF USE') ?></a>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.