Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
1410 Vizualizări

Hello!

we would like to change the "pay now" button at the end of the purchase process in the ecommerce to "order now" since we have an internal step to review an order before payment.

I cannot find the Qweb that holds that value, nor I can see a way to edit in Studio or the customizer.

Does somebody know its location on V17? Or where is called the payment.checkout to add the following:

<t t-set="submit_button_label">Order now</t>


Thanks a lot in advance.

Regards

Imagine profil
Abandonează
Cel mai bun răspuns

Hi PAMS: If all you need is to change the wording, you can do it by updating the translation for the text. "Pay Now" appears in 2 modules in 17.0 - sale and account_payment. You can update the translation for the language(s) you need to change by exporting the translations to a .po file for each of those modules, updating the file and re-importing it. Please try this out in a test environment first.

The following link to a section in the Odoo 17.0 documentation explains how to update translations:
https://www.odoo.com/documentation/17.0/developer/howtos/translations.html#exporting-translatable-term

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

Try to inherit the below template:

<template id="template_name" inherit_id="payment.submit_button"

              name="Submit Button">

        <xpath expr="//button[@name='o_payment_submit_button']"

               position="replace">

            //Add your code

        </xpath>

    </template>


Hope it helps

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
mai 22
2536
1
mai 23
2272
0
nov. 22
2431
0
sept. 18
3248
0
apr. 16
3319