cancel
Showing results for 
Search instead for 
Did you mean: 

Move street.0 and street.1 outside the fieldset

Move street.0 and street.1 outside the fieldset

For styling reasons I need to move street.0 and street.1 out of their fieldset. I use street.0 for streetname and street.2 as a house number field.

 

I want to change the sortorder to have Zipcode, House number (which is street.1 in my case), streetname (street.0), city.

 

Similar to this screenshot:

 

Screen Shot 2018-04-18 at 11.28.16.png

 

I know it should probably be done in the layoutProcessor but i'm not exactly sure how.

 

I tried to following:

 

$shippingFields = $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset'];

$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['street'] = $shippingFields;

 

Which results in an error:

 

VM92087:4 Uncaught SyntaxError: Unexpected token } in JSON at position 92

 

1 REPLY

Re: Move street.0 and street.1 outside the fieldset

You need to check below way as per your custom requirement for checkout form,

Please refer below links and check,

https://magento.stackexchange.com/questions/186805/checkout-form-how-to-wrap-multiple-elements-in-a-...

If Issue Solved, Click Kudos/Accept As solutions.