Skip to Content
Menu
This question has been flagged
1 Reply
2371 Views

I'm supposed to modify the registration interface.

In  addons/auth_signup/views/res_config_settings_views.xml we can see code as follow:


<div class="text-center oe_login_buttons pt-3">
<button type="submit" class="btn btn-primary btn-block"> Sign up</button>
<a t-attf-href="/web/login?{{ keep_query() }}" class="btn btn-link btn-sm" role="button">Already have an account?</a>
<div class="o_login_auth"/>
</div>

Then I add a agreement link to show my agreement:

  <a t-attf-href="/useragreement" class="btn btn-link btn-sm" role="button">Customer Agreement</a>

So is there any way to add a check box,only customer checked the box can they clicked the "Sign up" button?Just  like an agreement is required before installing a software.

Thanks


Avatar
Discard
Best Answer

Hi,

You can refer the working of the terms and condition in Odoo eCommerce, once you enable the terms and condition option, the pay now button will get only clickable if the user ticks the terms and condition checkbox. Hope you can refer those code and do accordingly.

See: Enable Agree Terms and Condition in Odoo Ecommerce

Thanks

Avatar
Discard
Author

Good example!