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

Approximate price ranges are incorrect (variable products)

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.

Hi there,

The approximate price ranges displayed for my products are incorrect.

All my products have a price range of $60 - $150.

However, the approximate price range simply changes the currency symbol, but keeps the same numbers (the currency/price conversion is not happening).

It is most visible on my category pages (it is a minor issue for product pages as I have a default variant, so there is no range to display - the approximate price has no problems with single product variants)

My default currency is USD, and the approximate price correctly shows the"€" symbol when I use an EU IP address, but the numbers for the prices do not update.

For background information, my theme is Astra and I am using WP Rocket (I have already implemented this fix for WP Rocket, which appears to be working correctly).

Examples

Correct: The approximate price displays correctly for single product variants:

Problem: The approximate price is incorrect for displaying price ranges (the currency symbol changes, but the numbers do not):

Thank you.

Hello

Ok!  try in file- wp-content\plugins\woocommerce-currency-switcher\classes\woocs.php - change this code - https://share.pluginus.net/image/i20241106110116.png

$min_value = $product->get_variation_price('min', true) * $currencies[$сurr['name']]['rate'];
$max_value = $product->get_variation_price('max', true) * $currencies[$сurr['name']]['rate'];