Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
1297 Vistas

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

Avatar
Descartar
Mejor respuesta

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

Avatar
Descartar
Mejor respuesta

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

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
may 22
2423
1
may 23
2147
0
nov 22
2333
0
sept 18
3140
0
abr 16
3230