0

I added a module that moves billing address to the shipping step. But now I miss some spaces on the billing address in the sidebar of the billing step.

enter image description here

I'm missing the spaces between firstname and lastname and zipcode and city. Does anyone know where those spaces should be set normally in the M2 code? I can't find it.

I did find that module-checkout > view > frontend > web > template < shipping-information.html calls for getRegion('ship-to')

I'm working with this module: Modified checkout

1

I copied default.html and added spaces in KnockoutJs to template > address-renderer > default.html by doing this:

<!-- ko text: ' ' -->
0

Got the same issue thanks !

For someone else with the same problem, don't forget to close the ko tag has @Sanne suggests

<!-- ko text: ' ' --><!-- /ko -->

Use the below code for "opc-block-shipping-information"

<!-- ko text: address().prefix --><!-- /ko --> <!-- ko text: address().firstname --><!-- /ko --> <!-- ko text: address().middlename --><!-- /ko -->
<!-- ko text: ' ' --><!-- /ko -->
<!-- ko text: address().lastname --><!-- /ko --> <!-- ko text: address().suffix --><!-- /ko -->

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.