PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Extra Fees 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 please
If 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.
12

https://woocommerce.com/products/extra-fees-for-woocommerce/

I was thinking of adding a predetermined fee for each payment method in this plugin.
However, when I use it to add a commission, the amount is displayed as it is without being able to change the currency. For example, $20 is 20YEN.

Is it possible to convert the currency for the custom amount added?

 

Hello

Read  this  please -https://currency-switcher.com/woocs-labs/

[WOOCS LABS]

Hi,

I could not find the code for my plugin.

https://currency-switcher.com/codex/#compatibility

I'm going to send more detail information.

 

Hello

Ok!  Please  add  FTP  access

I'll add this to the adaptation queue

Sure, I send them via private mode in next 5 mins.

Hello

I added the plugin to the adaptation queue

The currency exchange does not seem to apply yet.
The $20 is still displayed as 20YEN.
Today's rate is $1=109.80YEN and the rate is not reflected.

Hello

Please  read  my  messages - https://share.pluginus.net/image/i20210602113311.png   - We will start working with your site when your turn comes.

Okay, could you please keep updating here?

Hello

I will write to you as soon as we get the result

Hi,

Any update for the case?

Hello

As I wrote earlier, your request is in the adaptation queue. And I'll write you as soon as your turn comes

Hello

I added  in  functions.php :

add_filter( 'efw_gateway_fee_after_calculate' , function($fee_value){

if (class_exists('WOOCS') AND $fee_value) {
global $WOOCS;
$fee_value = $WOOCS->woocs_exchange_value(floatval($fee_value));
}

return $fee_value;

} ) ;

add_filter( 'efw_order_fee_after_calculate', function($fee_value){

if (class_exists('WOOCS') AND $fee_value) {
global $WOOCS;
$fee_value = $WOOCS->woocs_exchange_value(floatval($fee_value));
}

return $fee_value;

} ) ;

 

Pleasse  do a test

Sorry for the delay in confirmation.
Also, this issue was successfully resolved!
Thank you very much for taking care of it as soon as possible. I have a new question, so I will send another ticket.

Since it is a related subject, I will continue here instead of a new ticket.

https://currency-switcher.com/round-prices-500/ - How to round prices to 500

 

I inserted this code into my child theme's function.php to round up fractions when converting from dollars to Japanese yen.
This worked fine for the product prices, but the"Extra Fee" part that you extended does not round up the fraction.
Can you please help me a little more with this?

 

 

 

Hello

Add  this  code  here - https://share.pluginus.net/image/i20210623103006.png

if (($fee_value <= 1000)) {
$fee_value = round($fee_value / 1000, 0) * 1000;
}
else {
$fee_value = ceil($fee_value / 500) * 500 ;
}

Your code did exactly what I expected it to do. Thank you for taking care of it so quickly.

Welcome;)

Hello again,

I now need a little more help from you regarding rounding up numbers.

$120 item would be rounded up to $150.
I don't want to round up the numbers when in dollars.
Only when converting to Japanese yen, I want to do the current rounding up.

When there are variations in the product price, the code added to function.php in the admin panel causes an error. In addition, the display of the amount of money for the variation (e.g. $150-$300), etc. does not round up the number when switching to the Japanese yen display.

Current function.php is here;

add_filter( 'efw_gateway_fee_after_calculate' , function($fee_value){

if (class_exists('WOOCS') AND $fee_value) {
global $WOOCS;
$fee_value = $WOOCS->woocs_exchange_value(floatval($fee_value));
if (($fee_value <= 100)) {
$fee_value = round($fee_value / 100, 0) * 100;
}
else {
$fee_value = ceil($fee_value / 50) * 50 ;
}
}

return $fee_value;

} ) ;

add_filter( 'efw_order_fee_after_calculate', function($fee_value){

if (class_exists('WOOCS') AND $fee_value) {
global $WOOCS;
$fee_value = $WOOCS->woocs_exchange_value(floatval($fee_value));
if (($fee_value <= 100)) {
$fee_value = round($fee_value / 100, 0) * 100;
}
else {
$fee_value = ceil($fee_value / 50) * 50 ;
}
}

return $fee_value;

} ) ;

add_filter('woocs_raw_woocommerce_price', function($price) {
if (($price <= 100))
{
$price = round($price / 100, 0) * 100;
return $price;
} else
{
$price = ceil($price / 50) * 50;
return $price;
}
});

Hello

Please read  this  - https://currency-switcher.com/hook/woocs_woocommerce_variation_prices/

To get  current currency  - https://currency-switcher.com/function/woocs-current_currency/

So you can  use  something like  this:

if( $WOOCS->current_currency!='JPY'){

// round  price

}

12