How can I update the price when someone enters postcode or zip code in woocommerce checkout page?
As I was trying to add some additional amount to my charge and I was unable to update the charge amount. The code which I was trying was this using AJAX call: $woocommerce->cart->set_total($woocommerce->cart->total + $additional_amount); But the real problem was with my payment method, not the cart price. So, I resolved it using a filter … Read more