Hi,
How to inherit the ecommerce "Pay Now" button in odoo 12 custom module ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
How to inherit the ecommerce "Pay Now" button in odoo 12 custom module ?
Hi,
Try like below
<template inherit_id="payment.payment_tokens_list" id="payment_tokens_list" name="Payment Tokens list">
<xpath expr="//button[@id='o_payment_form_pay']" position="inside">
<!-- Your Code-->
</xpath>
</template>
The "Pay Now" button is called from a template "payment_tokens_list" in the "payment" module. the button name is dynamic and it is used in many other areas too. so the changes will be affected there too. you can also check the template with id "payment" in the "website_sale" module from where it is called.
Regards
Thanks. It worked great!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
8
sie 17
|
5788 | ||
How do I make my eCommerce site Full Width?
Rozwiązane
|
|
2
sie 25
|
1554 | |
|
2
lip 25
|
3246 | ||
|
0
sty 25
|
1535 | ||
|
0
paź 24
|
1666 |