Support Forum

Content of the article

WPBE - WordPress Posts Bulk Editor Professional
You need to log-in to create request (topic) to the support

Double counted price for variation products.

(new from 01-07-2019)
If you not got email within 24 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here.
The support doesn work on saturdays and sundays, so some Friday requests can be answered on Monday.

Hello, my trying to apply this code to revome price range for variation products -
But currency switcher is not working corectly, all prices are double counted . Also i've tried both modes: 'Is multiple allowed' -> as Yes or No. When No is checked, all works correct. Theme - Flatsome. Could you help me please?


What snippet do you use?

PHP Snippet 2: Change WooCommerce Variable Product Price Range $$$-$$$ to “From: $$$min_reg_price $$$min_sale_price”


Paste this  code  here -

if (class_exists('WOOCS')) {
    global $WOOCS;
    if ($WOOCS->is_multiple_allowed) {
        $currencies = $WOOCS->get_currencies();
        $conversion_rate = $currencies[$WOOCS->current_currency]['rate'];
        $min_var_reg_price = $min_var_reg_price / $conversion_rate;
        $min_var_sale_price = $min_var_sale_price / $conversion_rate;
        $max_var_reg_price = $max_var_reg_price / $conversion_rate;
        $max_var_sale_price= $max_var_sale_price / $conversion_rate;