Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
1277 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
toukok. 22
2417
1
toukok. 23
2128
0
marrask. 22
2314
0
syysk. 18
3121
0
huhtik. 16
3218