Auto populate value fields doesn't work for postal/ZIP, or state/province
-
I’ve been following a suggestion from this thread: http://wordpress.org/support/topic/auto-populate-value-fields-in-checkout-billingshipping-area?replies=8
However I cannot get the code Scott Basgaard suggested to work for postal code/zip, or province/state.
I could maybe understand I’m missing something with the province as it’s in a drop down, but I don’t see why the postal code won’t work, as it’s a regular text box like all the others.
$province = 'bc'; $postal = 'v3k8x7'; $fields['billing']['billing_states']['default'] = $province; $fields['billing']['billing_postcode']['default'] = $postal;
- The topic ‘Auto populate value fields doesn't work for postal/ZIP, or state/province’ is closed to new replies.