wordpress - How to force a cart update on WooCommerce (without changing quantity) -


i have been trying disable vat on products purchased in eu, if have valid vat number.

i purchased plugin woothemes, supposed after above, because not using standard woocommerce/paypal checkout experience, , instead using paypal express plugin offer, hooks/actions eu vat number plugin used no longer being called assume.

i trying reassign plugins functions different hooks, work requested. forced plugin appear on cart.php woocommerce template, rather default shipping details page, , added process_checkout function [which processes vat number entered , removes vat if valid] woocommerce_after_cart_item_quantity_update hook woocommerce. can tell, action run whenever 'update cart' clicked but doesn't seem run unless quantity has changed and doesn't seem run unless quantity new quantity hasn't been calculated , cached.

i need force woocommerce_after_cart_item_quantity_update run button pressed, (i think,).

if heading down wrong path great hear

i think you've got right idea, need on different hook.

instead of woocommerce_after_cart_item_quantity, i'd try woocommerce_after_cart_totals , see if works better you.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -