Skip to content

Instantly share code, notes, and snippets.

@Igloczek Igloczek/LayoutProcessor.php Secret
Created Sep 15, 2016

Embed
What would you like to do?
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
['shippingAddress']['children']['shipping-address-fieldset']['children']['flat_number'] = [
'component' => 'Snowdog_FourStepCheckout/js/view/form/element/abstract',
'config' => [
'customScope' => 'shippingAddress.custom_attributes',
'template' => 'Snowdog_FourStepCheckout/form/field',
'elementTmpl' => 'Snowdog_FourStepCheckout/form/element/input',
'id' => 'flat-number',
],
'dataScope' => 'shippingAddress.custom_attributes.flat_number',
'label' => __('Flat No.'),
'provider' => 'checkoutProvider',
'visible' => true,
'validation' => [
'required-entry' => false,
],
'sortOrder' => 79,
'id' => 'flat-number'
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.