[WOOCS LABS] Currency coefficient is triggered repeatedly on the checkout in the Order Bump
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 mswebadmin on September 19, 2022, 14:34Hello! Thanks for the cool currency plugin. I am in love with it!
Discovered one problem and below I am describing it as much as possible.1. I’m using the Polylang plugin to enable multilingualism on the site.
2. I added this code to the function.php file, so that in the English version of the site prices are displayed in euros. Currency by default for Ukrainian version of the site is Ukrainian hryvnias. And all works fine!
https://i.imgur.com/pBvlRd5.png3. I use Iconic Sales Booster for WooCommerce plugin (https://iconicwp.com/products/sales-booster-for-woocommerce/) to add Order Bump to checkout page.
4. On the checkout page in the English version of the site the prices for both goods and Order Bump are in euros, as they should be.
https://i.imgur.com/BB5CPSR.png5. But when I click the checkbox and the product from Order Bump is added to the order, the coefficient I set here – https://i.imgur.com/ebbMnwl.png – is triggered again. And the price is multiplied again by this coefficient.
https://i.imgur.com/km4nILG.pngSo, in this example, the product from the Order Bump should be added to the order at a price of 3.2 euros. But, instead, the item is added, at a price repeatedly multiplied by the set currency factor: 3.2 EUR * 0.03 (currency factor) = 0.096 = 0.01 EUR.
I also tested the CheckoutWC plugin (https://www.checkoutwc.com/) and the result is the same – there is a repeated multiplication by the currency coefficient in Order Bump.
Please help!
Hello! Thanks for the cool currency plugin. I am in love with it!
Discovered one problem and below I am describing it as much as possible.
1. I’m using the Polylang plugin to enable multilingualism on the site.
2. I added this code to the function.php file, so that in the English version of the site prices are displayed in euros. Currency by default for Ukrainian version of the site is Ukrainian hryvnias. And all works fine!
https://i.imgur.com/pBvlRd5.png
3. I use Iconic Sales Booster for WooCommerce plugin (https://iconicwp.com/products/sales-booster-for-woocommerce/) to add Order Bump to checkout page.
4. On the checkout page in the English version of the site the prices for both goods and Order Bump are in euros, as they should be.
https://i.imgur.com/BB5CPSR.png
5. But when I click the checkbox and the product from Order Bump is added to the order, the coefficient I set here – https://i.imgur.com/ebbMnwl.png – is triggered again. And the price is multiplied again by this coefficient.
https://i.imgur.com/km4nILG.png
So, in this example, the product from the Order Bump should be added to the order at a price of 3.2 euros. But, instead, the item is added, at a price repeatedly multiplied by the set currency factor: 3.2 EUR * 0.03 (currency factor) = 0.096 = 0.01 EUR.
I also tested the CheckoutWC plugin (https://www.checkoutwc.com/) and the result is the same – there is a repeated multiplication by the currency coefficient in Order Bump.
Please help!
Quote from Pablo Borysenco on September 20, 2022, 10:36Hello
Please drop me wp-admin+FTP access to your test site - https://share.pluginus.net/image/i20210618130558.png ->https://share.pluginus.net/image/i20210618130637.png
I will add this to the queue for adaptation
Hello
Please drop me wp-admin+FTP access to your test site - https://share.pluginus.net/image/i20210618130558.png ->https://share.pluginus.net/image/i20210618130637.png
I will add this to the queue for adaptation
Quote from mswebadmin on September 20, 2022, 10:51Did I get it right, I need to create a test version of the site and send you the login and password to its admin panel and FTP?
Did I get it right, I need to create a test version of the site and send you the login and password to its admin panel and FTP?
Quote from Pablo Borysenco on September 20, 2022, 11:34Yes. If you don't have a test site, create one
Yes. If you don't have a test site, create one
Quote from mswebadmin on September 20, 2022, 14:35I have added the information you requested to Private Data.
I have added the information you requested to Private Data.
Quote from Pablo Borysenco on September 21, 2022, 10:21Hello
Greate!
I added this to the adaptation queue
Hello
Greate!
I added this to the adaptation queue
Quote from Pablo Borysenco on September 30, 2022, 17:48Hello
Please do a test
In file - \wp-content\plugins\iconic-woo-sales-booster\inc\checkout\class-order-bump-at-checkout-manager.php - add code - https://share.pluginus.net/image/i20220930154656.png
$bump_price = $bump->get_discount_price( $product_id );
if (class_exists('WOOCS') && $bump_price) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$currrent = $WOOCS->current_currency;
if ($currrent != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currrent]['rate'];
$bump_price = $bump_price / $rate;
}
}
}
Hello
Please do a test
In file - \wp-content\plugins\iconic-woo-sales-booster\inc\checkout\class-order-bump-at-checkout-manager.php - add code - https://share.pluginus.net/image/i20220930154656.png
$bump_price = $bump->get_discount_price( $product_id );
if (class_exists('WOOCS') && $bump_price) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$currrent = $WOOCS->current_currency;
if ($currrent != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currrent]['rate'];
$bump_price = $bump_price / $rate;
}
}
}
Quote from mswebadmin on October 3, 2022, 15:57It works perfectly! Thank you very much!
It works perfectly! Thank you very much!
Quote from Pablo Borysenco on October 4, 2022, 10:07Great! Welcome;)
Great! Welcome;)