Magento 2 update progress bar in check out page
-
01-01-2021 - |
Pregunta
What I've tried:
i18n/en_GB I've changed this line "Review & Payments,Reviewssss & Paymentsssss"
I've also changed this Shipping Methods, This Is my shipping methods
and I was surprised to find this in the back end admin:
I know the file is responsible for rendering is progrees-bar.html
<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<ul class="opc-progress-bar testesteste">
<!-- ko foreach: { data: steps().sort(sortItems), as: 'item' } -->
<li class="opc-progress-bar-item" data-bind="css: item.isVisible()
? '_active' : ($parent.isProcessed(item) ? '_complete' : '')">
<span data-bind="i18n: item.title, click: $parent.navigateTo">
</span>
</li>
<!-- /ko -->
</ul>
And what I am interested is in this pice data-bind="i18n: item.title
.
So where this item.title
is coming from if not from a i18n/en_GB.csv file?
Any help appreciate thanks.
Solución 2
I've found where item.title
is coming from it's in JS file: ../vendor/magento/modulecheckout/view/frontend/web/js/view/shipping.js
if (!quote.isVirtual()) {
stepNavigator.registerStep(
'shipping',
'',
$t('shipping test'),
this.visible, _.bind(this.navigate, this),
10
);
}
AND:
.../vendor/magento/module-checkout/view/frontend/web/js/view/payment.js
initialize: function () {
this._super();
checkoutDataResolver.resolvePaymentMethod();
stepNavigator.registerStep(
'payment',
null,
$t('Review & Payments test'),
this.isVisible,
_.bind(this.navigate, this),
20
);
return this;
},
The the the solution was to overwrite this files.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange