문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top