3

I want to change text Payment Method to Payment Information on checkout page.

It's need to use mixin js here?

Or i can override js here directly?

1

1 Answer 1

5

In your case, you don't need to use mixin js or override js. You can find in the method-group.js:

vendor/magento/module-checkout/view/frontend/web/js/model/payment/method-group.js

Title is a translation object:

title: $t('Payment Method')

So you can use i18n to your custom module by the following steps:

  1. app/code/YourVendor/YourModule/i18n/en_US.csv

Add content like this:

"Payment Method","Payment Method Test New Title"
  1. Check your result and it should be like this: enter image description here

Hopefully, this will help you

Regards

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.