2

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

2
  • Please attachment screenshot Feb 20 '20 at 3:46
  • @MohitPatel Question updated. please check Feb 20 '20 at 6:09
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.