Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
1438 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Mei 22
2553
1
Mei 23
2295
0
Nov 22
2447
0
Sep 18
3266
0
Apr 16
3339