jondcampbell
8/12/2014 - 6:14 PM

Change zip label to postcal code for Canadian woocommerce customers

Change zip label to postcal code for Canadian woocommerce customers

/*
 * Change zip to postal code for canada
 */
 
add_filter( 'woocommerce_get_country_locale', 'fs_custom_checkout_locale' );
function fs_custom_checkout_locale( $locale ) {
 
	$locale['CA']['postcode']['label'] = __( 'Postal Code', 'woocommerce' );
	$locale['CA']['postcode']['placeholder'] = __( 'Postal Code', 'woocommerce' );
 	return $locale;
 
}