0

I have referred the below link for adding a custom field in the checkout

http://vagento.com/magento-2-add-custom-field-checkout-address-form/

It's working fine. How to do the same in a customized checkout step?.

Please reply with your suggestion.

1 Answer 1

0

Try to change the $jsLayout array for custom step XML configuration

See below the bold array filed of $jsLayout array. Change the bold one as per your custom step XML Configuration.

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

1
  • Thanks. In my case, we have two customized options in the checkout. One is School and another one is Private person. Customer can checkout via School as well as Private person. Now, I want to add a custom field in the step Shipping address at School option. Commented Jun 18, 2019 at 6:24

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.