PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Change “Default Shipping Country” in Checkout Page according to Currency Choosen

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi Support,

In Woo Checkout page, is it possible (or how to) to automatically change the shipping country according to the currency chosen?

For example:
If customer choose AUD, then shipping country will choose Australia automatically, or
If customer choose HKD, then shipping country will chose Hong Kong automatically.

I believe it can be done via PHP in function.php….. But I’ve ZERO knowledge to compile it… Thank you.

I understood that there’s a similar post 3-4 years ago. But my case is different. For the last post, it’s using Shipping country to determine currency. But for my case, it’s using currency to determine shipping country

Thanks.

Hello

But in this case, the user will not be able to change the country of delivery.

if this is what you want to get. An  Example:

function woo_override_checkout_fields( $fields ) { 
if(class_exists('WOOCS')){
global $WOOCS;
$currency = $WOOCS->current_currency;
if($currency == 'AUD'){
$fields['shipping']['shipping_country'] = array( 'type' => 'select', 'label' => __('My New Country List', 'woocommerce'), 'options' => array('AU' => 'Australia') );

}elseif($currency == 'EUR'){
$fields['shipping']['shipping_country'] = array( 'type' => 'select', 'label' => __('My New Country List', 'woocommerce'), 'options' => array('ES' => 'Spain') );
}

}


	return $fields; 
} 
add_filter( 'woocommerce_checkout_fields' , 'woo_override_checkout_fields' );