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

Force address currency - Checkout

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,

Im not able to force the correct price according to the shipping country ( Checkout page )
Can you help ?

Hello

Please  drop  me  exact  link to the  issue

what code are you using?

Hello,

I still have the Issue.
I tried to add your code but i still have the problem
Exemple price in BGN is 80, when client select € country price change to 40 ( should be 40€ ) but still show BGN. And the client pay 40BGN ( 20€ )

add_action('woocommerce_checkout_update_order_review', function($data) { global $WOOCS; if (is_string($data)) { parse_str($data, $data); } //*** $_currency = $WOOCS->get_currency_by_country($data['shipping_country']); if (!empty($_currency)) { $WOOCS->set_currency($_currency); } }, 9999);

Hello

Please  drop me  exact  link to the  issue. Describe in more detail what I should do to get the error

Product price : 80 BGN or 40 EUR

For exemple, WP recognize you in Bulgaria BGN currency.
When you are in the checkout page, Bulgaria is already selected as shipping country.
Choose for exemple Italy as new shipping country, the the price change to 40 BGN.

The best for me is to change the price to 40 EUR as the client is in Italy.
Or in the worst case to keep 80 BGN.

This looks like a conflict with a third party plugin. you use plugins that change prices (discounts, product options, synchronization, etc.)

Yes i use a discount plugin.
What is the solution ?

I drop a picture for you to see settings of this third party plugin

Hello

Ok!  Please  disable  this  third party   plugin  to test

Hello,

When i disable the third party plugin, the price and currency is frozen according to the IP country. Even if i change delivery country.
How to confirm that your code is active ?

Ps : I upload your code with a plugin named WPCode

Hello

Please change  this  code  $_currency = $WOOCS->get_currency_by_country($data['shipping_country']);   - to -  $_currency = $WOOCS->get_currency_by_country($data['billing_country']);

Hello,
It works fine now.
Thank you !

Hello

Great!  Welcome;)

Hello,
Do you have a solution for ApplePay ?
For exemple on the checkout page i select delivery address Switzerland so it show me price in CHF.
But if i select Apple Pay payment method, i can change the shipping country with CHF currency frozen.

Hello

Unfortunately the plugin does not have such a feature