Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
1276 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Mai 22
2417
1
Mai 23
2128
0
Nov. 22
2314
0
Sept. 18
3121
0
Apr. 16
3218