FOX - Currency Switcher for WooCommerce

Themify – WooCommerce Product Filter

Plugin URL: https://wordpress.org/plugins/themify-wc-product-filter/
  • In  file wp-content\plugins\themify-wc-product-filter\public\js\wpf-public.js change next code:
    $label_min.text( Math.ceil(ui.values[ 0 ] * parseFloat(woocs_current_currency.rate)) );
    $label_max.text( Math.ceil(ui.values[ 1 ] * parseFloat(woocs_current_currency.rate)));
  • in file wp-content\plugins\themify-wc-product-filter\includes\class-wpf-form.php change next code:
    //convert
    $from_label = empty($from) ? $min : $from;
    $to_label = empty($to) ? $max : $to;
    
    if (class_exists('WOOCS')) {
        global $WOOCS;
        $from_label = floor($WOOCS->woocs_exchange_value($from_label));
        $to_label = ceil($WOOCS->woocs_exchange_value($to_label));
    }
  • In  file  wp-content\plugins\woocommerce-currency-switcher\classes\woocs.php change  this  code:
    echo "<script>";
    echo $this->init_js_properties();
    echo "</script>";
This edit is inside another plugin's file, so a plugin update will undo it. Write the change down, and re-apply it after every update of that plugin — or ask its authors to include the fix on their side, which is the only version that survives. If the change is inside FOX itself, tell us: a fix that has to be re-applied by hand is a bug on our side, not a solution.