Question

I want to remove vat from checkout on run-time, If vat number field has some value.

I am able to validate vat number on run-time on checkout (via this link Programmatically check VAT number is valid in checkout page magento 2.3.X? ) but didn't know how to remove vat from order total and shipping. Also I know Magento provides vat validation and removal from configuration but that only works for logged in customers.

Screenshot: https://nimb.ws/8ZEyVB

Was it helpful?

Solution

Working now. Used Magento's default vat options to verify and remove vat. https://docs.magento.com/m2/ee/user_guide/tax/vat-validation-configure.html

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