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?

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

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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