Categories
CMS Magento Mastering Development

Checkout custom shipping address field – set as required

I have created a custom module that adds a text field in shipping address. It’s workin ok but I’d like to make it required. How can I do that? I tried adding ‘required-entry’ => true at validation parameter, in file Plugin/Checkout/LayoutProcessor.php but it didn’t work. Here are the module files: Mymodules/FieldCheckout/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, ‘Mymodules_FieldCheckout’, […]

Categories
CMS Development Magento

Magento 2 custom form in shipping address before-form not validating for registered customers

I have added a custom form in the shipping address before-form handle. This form is validating for a guest checkout process but not working for logged in customers who have already added address information. Below is my Layoutprocessor file where am injecting the custom field to shipping step before-form handle. $customAttributeCode = ‘experience_survey_option’; $customField = […]

Categories
CMS Development Magento

Magento 2 custom form in shipping address before-form not validating for registered customers

I have added a custom form in the shipping address before-form handle. This form is validating for a guest checkout process but not working for logged in customers who have already added address information. Below is my Layoutprocessor file where am injecting the custom field to shipping step before-form handle. $customAttributeCode = ‘experience_survey_option’; $customField = […]

Categories
CMS Development Magento

Magento 2 custom form in shipping address before-form not validating for registered customers

I have added a custom form in the shipping address before-form handle. This form is validating for a guest checkout process but not working for logged in customers who have already added address information. Below is my Layoutprocessor file where am injecting the custom field to shipping step before-form handle. $customAttributeCode = ‘experience_survey_option’; $customField = […]