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

Order currency is changed after oreder is placed

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.

Hello,

we tried your plugin on E-shop with WML. We faced an issue that sometimes the currency of order is changed to wrong currency for same user where it worked correctly before. We have for CZ language CZK currency and for SK language is setted EUR (also the base currency of eshop).

Some users from CZ place an order and it change the order currency to EUR so the total price and currency on order is then wrong. Now also order from SK language was changed after payment to CZK currency.

How can we fix this issue? We need more currencies so we need in next few weeks go to PRO version of plugin, but need to fix this issue first.

Thanks for help.

Hello

Are you using third-party code to switch currency depending on language?

Please drop me exact link to the issue

check options - https://share.pluginus.net/image/i20240410102729.png and https://share.pluginus.net/image/i20240410101527.png

Hello,

we use only snippet (code below) to switch the currency based on language.

We do not have cache plugin. Currency storage we had Transient because we had an issue when we enabled GEO IP  redirection.

 

add_action('template_redirect', 'set_currency_by_lang',9999999);

function set_currency_by_lang() {

$lang = apply_filters( 'wpml_current_language', null );

global $WOOCS;

switch ($lang) {

case 'cs':

$WOOCS->set_currency('CZK');

break;

case 'sk':

$WOOCS->set_currency('EUR');

break;

}

}

Last few order from Slovakia changed to CZK and from Czech republich changed to EUR.

 

Hello

Well, in this case, you better write in support of the author of this custom code

wpml_current_language  - Are you sure that this filter is redefined correctly at the time of execution of template_redirect?

 Currency storage we had Transient because we had an issue when we enabled GEO IP  redirection. - please describe this in more detail.  I think the best solution would be this setting - https://share.pluginus.net/image/i20240410101527.png - because it does not depend on the User's IP

Please  drop me  a  link to your site

Hello,

 

we changed the currency storage to FOX session.

Here is the link to website: https://www.drvaluch.sk/

Do you need also credentials? You can see products only if you are logged in.

For CZK currency you need to visit website from Czech republik IPs.

Snippet is all right it works fine. But only after some purchases in order and on Thank you page (also in admin order details) are order currency switched to base currency (EUR) also if it shoul be in CZK (if the purchase is from Czech republic).

 

Thanks.

Hello

Ok! yes please give me access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png

Do you use blocks for checkout?

Hello,

ok no problem, but eshop is live, so could you please just check the setup or test it via these credentials before you do anything?

 

 

yes of course I won't change anything