WooCommerce Update Checkout Total with Postcode Field

Sometime you want to update checkout total based on a specific field. e.g WooCommerce update checkout total with postcode field.

Enter the value in billing_postcode field and as you blur. The jQuery( ‘body’ ).trigger( ‘update_checkout’ ); will be triggered and the checkout total will be updated.

Use the following code snippet within theme functions.php

 

WooCommerce Auto Update Cart When Quantity Changes

 

Your one social media share will help others

Leave a Comment