Trigger VAT ID check programatically
-
Hi there,
I’d like to have the option to hide/show this field based on a ‘Business purchase?’ custom checkout field. I’m trying to achieve this functionality but I’m currently stuck on one thing – the VAT should be re-added if the customer unchecks this ‘Business purchase?’ custom field.
On the checkbox change, I’m removing value from #billing_eu_vat_number. However, this does not retrigger VAT calculation. I’ve tried triggering change event on #billing_eu_vat_number, also tried triggering to recalculate the whole cart, but none worked. How can I manually trigger the VAT recaculation?
Regards
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.