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 not calculating correctly

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,

Currency is default to CND. When US customer connects it switches to USD which is correct. But when US customer places an order the USD price is put into the cart but then USD is calculated again on USD cart price. For example if USD rate is $1.3 and Cart Item price is $10 USD the total comes to $7 because it's calculating USD twice. This is only happening on bundled items. For some reason even when currency is switched to USD it think's the cart price is still CND when items are in a bundle.

 

Hello

This looks like a conflict with a third party plugin

please read this - https://currency-switcher.com/woocs-labs

 

I found this solution:

  • into file functions.php of the current WordPress theme add next code
    add_filter('woosb_item_price_before_set', function ($_price, $cart_item) {
        if (class_exists('WOOCS')) {
            global $WOOCS;
            if ($WOOCS->is_multiple_allowed AND $_price) {
                $currrent = $WOOCS->current_currency;
                if ($currrent != $WOOCS->default_currency) {
                    $currencies = $WOOCS->get_currencies();
                    $rate = $currencies[$currrent]['rate'];
                    $_price = $_price / $rate;
                }
            }
        }
    
        return $_price;
    }, 10, 2);
    

    Will it get removed at next update and I have to put this in every time after update?

I have been using both these plugins for a little while now. Why is it just breaking now? Can you put this into your next update of the plugin?

I installed the code above but it doesn't fix the issue.

Hello

what plugin version number are you using?

Please drop me exact link to the issue

I am using the most recent version of both plugins.

FOX - Currency Switcher Professional for WooCommerce - Version 1.4.1.8

WPC Product Bundles for WooCommerce (Premium - Version 6.2.1

I found a work around for this right now. All the price need to be manually put in. It was set to auto calculate before when I was experiencing this issue.

This is my staging site below where I have not made this change and shows the problem I am having.

https://www.staging2.3dlabtech.ca/product/voron-trident-starter-bundle-300mm/

If you select USD then add this item to your cart you will see it calculates USD again in the cart.

 

Hello

You can  create  new request of this  third-party plugin -  https://currency-switcher.com/woocs-labs

Please add wp-admin+ftp access to your test site - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134615.png - I will add this plugin  to adaptation queue