Problem with currencies – Extra Product Options (Product Addons) for WooCommerce
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 j.tomaszuk on April 12, 2022, 20:59I am using the Extra Product Options (Product Addons) for WooCommerce PRO plugin and in the case of different currencies the price is the same, e.g. 15 $ and 15 €, is there any compatibility solution for this? (on the bottom of page extra options)
The page I need help with: http://promx4riders.com/produkt/brush-design-3
I am using the Extra Product Options (Product Addons) for WooCommerce PRO plugin and in the case of different currencies the price is the same, e.g. 15 $ and 15 €, is there any compatibility solution for this? (on the bottom of page extra options)
The page I need help with: http://promx4riders.com/produkt/brush-design-3
Quote from Pablo Borysenco on April 13, 2022, 10:26Hello
Please paste your license key here - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130614.png
Read this - https://currency-switcher.com/woocs-labs
Hello
Please paste your license key here - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130614.png
Read this - https://currency-switcher.com/woocs-labs
Quote from Pablo Borysenco on April 13, 2022, 12:19Dud you read this? - https://currency-switcher.com/woocs-labs Found a third party plugin in the list?
https://codecanyon.net/item/woocommerce-extra-product-options/7908619
And add in file -“wp-content\plugins\woocommerce-tm-extra-product-options\assets\js\tm-epo.js” – I added code – https://share.pluginus.net/image/i20220218190810.png
if (typeof woocs_current_currency != 'undifined'){
data.symbol = woocs_current_currency['symbol'];
data.precision = woocs_current_currency['decimals'];
}And check option – https://c2n.me/4eZhu50.png
Dud you read this? - https://currency-switcher.com/woocs-labs Found a third party plugin in the list?
https://codecanyon.net/item/woocommerce-extra-product-options/7908619
And add in file -“wp-content\plugins\woocommerce-tm-extra-product-options\assets\js\tm-epo.js” – I added code – https://share.pluginus.net/image/i20220218190810.png
if (typeof woocs_current_currency != 'undifined'){
data.symbol = woocs_current_currency['symbol'];
data.precision = woocs_current_currency['decimals'];
}
And check option – https://c2n.me/4eZhu50.png
Quote from j.tomaszuk on April 13, 2022, 13:06But it is diferent plugin: https://pl.wordpress.org/plugins/woo-extra-product-options/#description :(
But it is diferent plugin: https://pl.wordpress.org/plugins/woo-extra-product-options/#description :(
Quote from j.tomaszuk on April 14, 2022, 10:39Please take a look at the price and the price table before adding extras and after. With euros and zlotys. Can anything be done about it?
http://promx4riders.com/produkt/brush-design-4/?currency=PLN
Please take a look at the price and the price table before adding extras and after. With euros and zlotys. Can anything be done about it?
http://promx4riders.com/produkt/brush-design-4/?currency=PLN
Quote from Pablo Borysenco on April 14, 2022, 11:23Hello
. Can anything be done about it? - Yes! Please try to read this - https://currency-switcher.com/woocs-labs
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 the plugin to the adaptation queue
Hello
. Can anything be done about it? - Yes! Please try to read this - https://currency-switcher.com/woocs-labs
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 the plugin to the adaptation queue
Quote from j.tomaszuk on April 14, 2022, 11:55Ok, I add wp-admin+FTP access
Ok, I add wp-admin+FTP access
Quote from Pablo Borysenco on April 14, 2022, 13:21I added this to the adaptation queue
I added this to the adaptation queue
Quote from j.tomaszuk on April 14, 2022, 16:51Thank you, How long can it take?
Thank you, How long can it take?
Quote from Pablo Borysenco on April 15, 2022, 09:48Hello
This is very difficult to plan because each plugin on adaptation has a unique code that we still need to study.
I think it will take two to three weeks
Hello
This is very difficult to plan because each plugin on adaptation has a unique code that we still need to study.
I think it will take two to three weeks
Quote from Pablo Borysenco on April 22, 2022, 19:31Hello
In functions.php add code:
add_filter('thwepo_extra_cost_option_price', function($price, $price_type, $option, $name){
if (class_exists('WOOCS') AND $price > 0) {
global $WOOCS;
$price = $WOOCS->woocs_exchange_value(floatval($price));
}
return $price;
},99,4);In file public_html\wp-content\plugins\woocommerce-extra-product-options-pro\includes\utils\class-thwepo-utils-field.php - add code - https://share.pluginus.net/image/i20220422172519.png
if (class_exists('WOOCS') AND $price > 0) {
global $WOOCS;
$price = $WOOCS->woocs_exchange_value(floatval($price));
}In file - \wp-content\plugins\woocommerce-extra-product-options-pro\includes\class-thwepo-price.php - add code - https://share.pluginus.net/image/i20220422172737.png
if (class_exists('WOOCS') AND isset($result['extra_price'])) {
global $WOOCS;
$result['extra_price'] = $WOOCS->woocs_exchange_value(floatval($result['extra_price']));
}And add code - https://share.pluginus.net/image/i20220422172846.png
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'];
$new_price = $new_price / $rate;
}
}
}and add code - https://share.pluginus.net/image/i20220422172947.png
if (class_exists('WOOCS') AND $product_price> 0) {
global $WOOCS;
$product_price = $WOOCS->woocs_exchange_value(floatval($product_price));
}and add code - https://share.pluginus.net/image/i20220422173042.png
if (class_exists('WOOCS') AND $price > 0) {
global $WOOCS;
$price = $WOOCS->woocs_exchange_value(floatval($price));
}And do a test
Hello
In functions.php add code:
add_filter('thwepo_extra_cost_option_price', function($price, $price_type, $option, $name){
if (class_exists('WOOCS') AND $price > 0) {
global $WOOCS;
$price = $WOOCS->woocs_exchange_value(floatval($price));
}
return $price;
},99,4);
In file public_html\wp-content\plugins\woocommerce-extra-product-options-pro\includes\utils\class-thwepo-utils-field.php - add code - https://share.pluginus.net/image/i20220422172519.png
if (class_exists('WOOCS') AND $price > 0) {
global $WOOCS;
$price = $WOOCS->woocs_exchange_value(floatval($price));
}
In file - \wp-content\plugins\woocommerce-extra-product-options-pro\includes\class-thwepo-price.php - add code - https://share.pluginus.net/image/i20220422172737.png
if (class_exists('WOOCS') AND isset($result['extra_price'])) {
global $WOOCS;
$result['extra_price'] = $WOOCS->woocs_exchange_value(floatval($result['extra_price']));
}
And add code - https://share.pluginus.net/image/i20220422172846.png
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'];
$new_price = $new_price / $rate;
}
}
}
and add code - https://share.pluginus.net/image/i20220422172947.png
if (class_exists('WOOCS') AND $product_price> 0) {
global $WOOCS;
$product_price = $WOOCS->woocs_exchange_value(floatval($product_price));
}
and add code - https://share.pluginus.net/image/i20220422173042.png
if (class_exists('WOOCS') AND $price > 0) {
global $WOOCS;
$price = $WOOCS->woocs_exchange_value(floatval($price));
}
And do a test
Quote from j.tomaszuk on May 9, 2022, 16:00Thank you very much for your help!
Everything is fine except one field, can you check why the "Your Logo" field doesn't change its price like the others? https://promx4riders.com/produkt/ktm-blade/?currency=GBP
Thank you very much for your help!
Quote from Pablo Borysenco on May 10, 2022, 10:08Hello
I will check it
Hello
I will check it
Quote from Pablo Borysenco on May 13, 2022, 18:31Hello
In functions.php I added code
add_filter('thwepo_extra_cost_unit_price', function($price, $name, $product_price, $price_type){
if (class_exists('WOOCS') AND $price > 0) {
global $WOOCS;
$price = $WOOCS->woocs_exchange_value(floatval($price));
}
return $price;
},99,4);Please do a test
Hello
In functions.php I added code
add_filter('thwepo_extra_cost_unit_price', function($price, $name, $product_price, $price_type){
if (class_exists('WOOCS') AND $price > 0) {
global $WOOCS;
$price = $WOOCS->woocs_exchange_value(floatval($price));
}
return $price;
},99,4);
Please do a test
Quote from j.tomaszuk on June 6, 2022, 14:27Something very strange is happening with currency conversions. From euros to pounds it is ok, but from euros to zlotys or Swedish kroner, they are very large, strange amounts
https://promx4riders.com/produkt/gas-gas-one-line/
Something very strange is happening with currency conversions. From euros to pounds it is ok, but from euros to zlotys or Swedish kroner, they are very large, strange amounts
Quote from j.tomaszuk on June 6, 2022, 15:05
If is "zł" or "kr" it looks like amounts is multiplied by 2 times by Rate
If is"zł" or"kr" it looks like amounts is multiplied by 2 times by Rate
Quote from Pablo Borysenco on June 7, 2022, 10:03Hello
Ok! I will check it
Hello
Ok! I will check it
Quote from j.tomaszuk on June 7, 2022, 13:57Maybe this is some clue that if the rate (the currency to which we convert) is lower than 1 (euro), this problem occurs
Maybe this is some clue that if the rate (the currency to which we convert) is lower than 1 (euro), this problem occurs
Quote from Pablo Borysenco on June 8, 2022, 12:16Hello
I doubt it. I think some hook is called twice
Hello
I doubt it. I think some hook is called twice