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

Currency forcing on checkout sticks after a purchase for all the visitors

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. The plugin is great and has all the features that a shop needs. Our shop has the prices in EUR and we forced the currency to RON on the checkout page using the code below that we found on one of your tutorials. This works great, but there is only one issue. After a purchase, the currency RON sticks for all the visitors, even if we set EUR as the default one. After a purchase I have tried to access the shop from different private browsers and devices, but they're all in RON. Is there any way to have RON only on the checkout page, as the code below intends to?

I know that visitors can switch back to EUR from the switcher, but we hid that, we want to leave them with prices in EUR and only at the checkout to have them converted in RON, so they can pay accordingly.

Any guidance would be greatly appreciated. Thank you.

 

  • add_filter('wp_head',function(){    
        if(is_checkout()){
            global $WOOCS;
            $WOOCS->set_currency('RON');
        }
    });

Hello

The problem is that the plugin switches the user's last currency. And of course, after the checkout page, the last currency is RON

For other functionality you need code customization. In the code you need to create variables to store the previous currency and the previous page