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

Inquiry Regarding Currency Rounding in FOX Currency Switcher Professional 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.

We are currently using the FOX Currency Switcher Professional module for WooCommerce, which allows us to display prices in both Romanian Leu (RON) and Euro (EUR). Our primary currency is Romanian Leu, and the Euro prices are calculated based on the product prices in RON.

We would like to inquire about the possibility of setting the Euro prices to round down to the nearest whole number. For instance, if a product costs 1,990.00 RON, the module currently converts it to 411.85 EUR. However, our customer would prefer that it displays as 411.00 EUR instead.

Could you please provide guidance on how to configure this rounding feature within the module?

Thank you for your assistance. We look forward to your prompt response.

>> https://ibb.co/zJ5r1MZ

Hello

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

Hello Pablo.

Please take note that this is an urgent matter.

We used Code Snippets plugin to integrate the solution that you suggested - https://currency-switcher.com/hook/woocs_woocommerce_variation_prices
>> https://ibb.co/ncsnN4F

But we could not solve the issue.

Could you please provide guidance on how to configure this rounding feature within the module?

We would like to inquire about the possibility of setting the Euro prices to round down to the nearest whole number. For instance, if a product costs 1,990.00 RON, the module currently converts it to 411.85 EUR. However, our customer would prefer that it displays as 411.00 EUR instead.

Please tell us if you need some credentials from our customer shop.
>> https://ibb.co/hC191LB
>> https://muzzum.eu/shop/?currency=EUR

Thank you!

Hello

Ok! You added code only for variable products, have you tried checking variable products?

If you don't have  experience in programming, you should hire a developer to customize the code.

Access to your site is blocked - https://c2n.me/4lVWyEl.png

Hello Pablo.

We had reached out to you based on our valid license for the module.
We initially believed that the module included the desired functionality, and that there would be no need for custom script integration.

However, as we understand it, this functionality is not available, which is something our client is specifically requesting. As a result, we have resolved the issue using the following snippet:

add_filter( 'raw_woocommerce_price', 'wp_raw_woocommerce_price_filter', 10, 2 );

/**
* Function for `raw_woocommerce_price` filter-hook.
*
* @param float $raw_price Raw price.
* @param float|string $original_price Original price as float, or empty string. Since 5.0.0.
*
* @return float
*/
function wp_raw_woocommerce_price_filter( $raw_price, $original_price ){

// converto non-decimal number
return round($raw_price);
}

Hello

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png

Plugin customization is not included in support