State code and google API
-
Hello,
First thank you for this great plugin.
I am having an issue where google state short_name does not match woocommerce state shortnames.
I have tried editing the woocomerce states by replacing all the states with the code:
add_filter( ‘woocommerce_states’, ‘custom_woocommerce_states’ );
function custom_woocommerce_states( $states ) {
$states[‘COUNTRY CODE’] = array(‘google state short code’ => ‘state name’,
And it works for auto state detection using your plugin!
The problem I face with this method is that the shipping zones in Dokan do not work with the created custome states.
Is there an other way to fix the issue?
Thanks,
- The topic ‘State code and google API’ is closed to new replies.