Question

I have applied advanced js bundling. Everything works fine except shipping address validation on the checkout page. After applying bundling checkout page shipping address validation is not working for new customers (mean if an address is not added before and someone fills shipping address on checkout page). Like it shows errors if the phone is empty but it also proceeds to the next step

enter image description here

It is showing phone number is a required field but at the same time it goes to the next page.

Update: After further investigation i found that in abstract.js this.source() is null thats why it is not going inside if condition. enter image description here

without advanced js bundling this.source is not null and it runs this statement this.source.set('params.invalid', true);

Was it helpful?

Solution

Try this patch:

https://github.com/magento/magento2/files/4060889/fix-checkout-form-validation.txt

To read how to apply patches with composer, continue here: https://www.integer-net.com/magento-2-javascript-bundling-setup-default/

Also, can you share what version of Magento you are on?

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top