Update WooCommerce Checkout Total with Postcode Field

how-to-update-checkout-total-with-postcode-field.jpg


Sometime you want to update the checkout total based on a specific field. e.g how to update WooCommerce 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

 
Custom WooCommerce Plugin Development
 
Flatsome Theme Customization
 
WooCommerce Checkout Page Fields
 
Checkout Field Editor
 

Comments

Popular posts from this blog

WooCommerce Hooks Actions & Filters

WooCommerce Checkout Page Fields

How to Add WooCommerce Custom Registration Form Fields