Pregunta

enter image description here

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:

enter image description here

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.

¿Fue útil?

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.

Otros consejos

Just tested this with this:

app/design/frontend/{vendor}/{theme}/i18n/en_US.csv

"Review & Payments", "Reviewssss & Paymentsssss"

and got this result:

enter image description here

So it looks like it's just a typo.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange
scroll top