
Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 30, 2022, 14:06
Hello
Please do a test
In file - \wp-content\plugins\fancy-product-designer\woo\class-wc-cart.php - I changed this code - https://share.pluginus.net/image/i20220630120425.png - to - https://share.pluginus.net/image/i20220630120635.png
$tmp_price = $product->get_price();
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$currrent = $WOOCS->current_currency;
if ($currrent != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currrent]['rate'];
$tmp_price = $tmp_price / $rate;
}
}
}
$final_price = $final_price < $tmp_price ? $tmp_price : $final_price;
Hello
Please do a test
In file - \wp-content\plugins\fancy-product-designer\woo\class-wc-cart.php - I changed this code - https://share.pluginus.net/image/i20220630120425.png - to - https://share.pluginus.net/image/i20220630120635.png
$tmp_price = $product->get_price();
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$currrent = $WOOCS->current_currency;
if ($currrent != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currrent]['rate'];
$tmp_price = $tmp_price / $rate;
}
}
}
$final_price = $final_price < $tmp_price ? $tmp_price : $final_price;

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 30, 2022, 17:10
Ok! Please disable my plugin and do a test
everything works on my mobile(android)
Ok! Please disable my plugin and do a test
everything works on my mobile(android)

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on July 1, 2022, 09:36
Hello
The only new code - https://share.pluginus.net/image/i20220701073447.png
And also use the code from the article( by the way, later we will add the new code to the article ). But please be more careful when you implement the code.
Hello
The only new code - https://share.pluginus.net/image/i20220701073447.png
And also use the code from the article( by the way, later we will add the new code to the article ). But please be more careful when you implement the code.