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