[IMP] website_sale: change mandatory checkout labels
This commit changes the label of the checkout button if the user is not signed in and the option is mandatory. Backport of odoo/odoo#103072 closes odoo/odoo#108470 Task: 2929654 X-original-commit: a7a2bc6abed07af40247e7e663d309bb0db3de36 Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
This commit is contained in:
committed by
William Braeckman
parent
8e4e32ab01
commit
7eb9d9716b
@@ -52,4 +52,17 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="registration_attendee_details" inherit_id="website_event.registration_attendee_details">
|
||||
<!-- Change 'continue' button to use the website login settings -->
|
||||
<xpath expr="//div[hasclass('modal-footer')]//button[hasclass('btn-primary')]" position="replace">
|
||||
<t t-if="website.account_on_checkout == 'mandatory' and website.is_public_user()">
|
||||
<a class="btn btn-primary" t-attf-href="/web/login?redirect=/event/#{slug(event)}">
|
||||
<span>Sign In</span>
|
||||
<span class="fa fa-sign-in"/>
|
||||
</a>
|
||||
</t>
|
||||
<t t-else="">$0</t>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user