0

I would like to quite simply change the "shipping" step on the magento 2 checkout to read "delivery information".

I tried to do it through translation to no avail. I am wonder can anyone point me towards which template or xml needs to extended and edited to customize the steps' names please?

2

Translations JS/HTML files are extremely unreliable as you've noticed, to change this without using translations you'll need to either add a JS mixin for the initialize function or overwrite the whole file:

/vendor/magento/module-checkout/view/frontend/web/js/view/shipping.js

If you look on line 85 you'll see this:

stepNavigator.registerStep(
    'shipping',
    '',
    $t('Shipping'),
    this.visible, _.bind(this.navigate, this),
    10
);

You'll want to change Shipping to Delivery Information.

0

You can change the checkout step text by translation csv

Put the text Shipping,delivery information in below en_US.csv path

app/design/frontend/Vendor/YourTheme/i18n/en_US.csv

Run below commnad and check your changes

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
  • Sorry, Suresh - but this is not helpful as the progress bar is not available to translations because it written in the js, I think. I mentioned that it was not possible to do via translation in my question. – Frederick Duffield Jun 8 '18 at 12:05

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.