cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 : How to add new fields only in shipping address in the checkout

Magento 2 : How to add new fields only in shipping address in the checkout

Want to add few custom fields in the shipping address in the checkout. I only have guest checkout, no login process. Also want to save the fields in db and retrieve the data in sales->orders shipping address.

I have tried https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_new_field.html But in mixin js/action/set-shipping-information, shippingAddress['extension_attributes']['custom_field'] = shippingAddress.customAttributes['custom_field']; is getting undefined value.