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 pleaseIf 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.
Quote from 3dlabtech on March 16, 2024, 02:07Hi,
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.
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.
Quote from Pablo Borysenco on March 18, 2024, 10:50Hello
This looks like a conflict with a third party plugin
please read this - https://currency-switcher.com/woocs-labs
Hello
This looks like a conflict with a third party plugin
please read this - https://currency-switcher.com/woocs-labs
Quote from 3dlabtech on March 18, 2024, 17:32I 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 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?
Quote from 3dlabtech on March 18, 2024, 22:21I installed the code above but it doesn't fix the issue.
I installed the code above but it doesn't fix the issue.
Quote from Pablo Borysenco on March 19, 2024, 10:28Hello
what plugin version number are you using?
Please drop me exact link to the issue
Hello
what plugin version number are you using?
Please drop me exact link to the issue
Quote from 3dlabtech on March 19, 2024, 17:07I 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.
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.
Quote from Pablo Borysenco on March 20, 2024, 10:43Hello
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
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