I'm trying to add a Checkbox to account registration for terms and conditions mainly due to GDPR.
I've looked at this question: magento 2 – Terms and conditions checkbox on register page
But the answer is fairly vague. Where in the register.phtml document must they go? I've tried several locations and it causes the register form to disappear or miss elements.
The checkbox needs to be a requirement for registration but must not already be checked.
I hope someone can help me.
Best Answer
Try following way:
Step 1: VendorName/ModuleName/view/frontend/layout/customer_account_create.xml
Step 2: VendorName/ModuleName/view/frontend/templates/tc.phtml