
Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 21, 2024, 12:57
Hello
Please try to paste this code( All the code I made for adaptation ) - https://share.pluginus.net/image/i20240621135611.png - and do a test
Hello
Please try to paste this code( All the code I made for adaptation ) - https://share.pluginus.net/image/i20240621135611.png - and do a test

skysolution(@skysolution)
47 PostsTopic Author
Customers
Quote from skysolution on June 21, 2024, 13:37
Hi Pablo
Could you please make the code so i can copy/paste thanks
Ole
Hi Pablo
Could you please make the code so i can copy/paste thanks
Ole

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 24, 2024, 09:25
Hello Ole
You will find all the code in this topic - https://share.pluginus.net/image/i20240621135611.png
Hello Ole
You will find all the code in this topic - https://share.pluginus.net/image/i20240621135611.png

skysolution(@skysolution)
47 PostsTopic Author
Customers
Quote from skysolution on June 25, 2024, 14:31
Hi Pablo
I have tried add your code to staging.tibladin.dk, but cant see this issue i solved, sorry
regards
Ole
Hi Pablo
I have tried add your code to staging.tibladin.dk, but cant see this issue i solved, sorry
regards
Ole

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 26, 2024, 10:01
Hello Ole
Great! Welcome;)
Hello Ole
Great! Welcome;)

skysolution(@skysolution)
47 PostsTopic Author
Customers
Quote from skysolution on June 26, 2024, 13:20
Hi Pablo
I write this: but can't see this issue i solved, sorry
regards
ole
Hi Pablo
I write this: but can't see this issue i solved, sorry
regards
ole

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 27, 2024, 10:34
Hello Ole
Ok! I will check it
Hello Ole
Ok! I will check it

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 28, 2024, 13:04
Hello Ole
I checked the third-party plugin code. You didn't add the adaptation code( not all code ).
If you don't have any programming experience, you should hire a developer to add this code.
Hello Ole
I checked the third-party plugin code. You didn't add the adaptation code( not all code ).
If you don't have any programming experience, you should hire a developer to add this code.

skysolution(@skysolution)
47 PostsTopic Author
Customers
Quote from skysolution on June 28, 2024, 14:28
Hi Pablo
I have added this code and followed where to place the code, is this wrong
In file wp-content\plugins\woocommerce-product-addons\includes\class-wc-product-addons-cart.php add next code: https://share.pluginus.net/image/i20240531181742.png
if ($addon['price'] AND class_exists('WOOCS')) {
global $WOOCS;
$currrent = $WOOCS->current_currency;
if ($currnent != $WOOCS->default_currency AND $WOOCS->is_multiple_allowed) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currnent]['rate'];
$addon['price'] = $addon['price'] * $rate;
}
}
Also in the same file add code: https://share.pluginus.net/image/i20240531182106.png
if (class_exists('WOOCS')) {
global $WOOCS;
$currrent = $WOOCS->current_currency;
if ($currnent != $WOOCS->default_currency AND $WOOCS->is_multiple_allowed) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currnent]['rate'];
}
}
regards
Ole
Hi Pablo
I have added this code and followed where to place the code, is this wrong
In file wp-content\plugins\woocommerce-product-addons\includes\class-wc-product-addons-cart.php add next code: https://share.pluginus.net/image/i20240531181742.png
if ($addon['price'] AND class_exists('WOOCS')) {
global $WOOCS;
$currrent = $WOOCS->current_currency;
if ($currnent != $WOOCS->default_currency AND $WOOCS->is_multiple_allowed) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currnent]['rate'];
$addon['price'] = $addon['price'] * $rate;
}
}
Also in the same file add code: https://share.pluginus.net/image/i20240531182106.png
if (class_exists('WOOCS')) {
global $WOOCS;
$currrent = $WOOCS->current_currency;
if ($currnent != $WOOCS->default_currency AND $WOOCS->is_multiple_allowed) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currnent]['rate'];
}
}
regards
Ole

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 28, 2024, 15:18
This is just part of the code. Now try adding the rest of the code and test it.
This is just part of the code. Now try adding the rest of the code and test it.