FOX - Currency Switcher for WooCommerce

Iconic Sales Booster for WooCommerce

Plugin link: https://iconicwp.com/products/sales-booster-for-woocommerce/
  • in file wp-content\plugins\iconic-woo-sales-booster\inc\checkout\class-order-bump-after-checkout-manager.php add next code
    $bump_price = $bump->get_discount_price($offer_product->get_id());
    if (class_exists('WOOCS')) {
        global $WOOCS;
        if ($WOOCS->is_multiple_allowed) {
            $currrent = $WOOCS->current_currency;
            if ($currrent != $WOOCS->default_currency) {
                $currencies = $WOOCS->get_currencies();
                $rate = $currencies[$currrent]['rate'];
                $bump_price = $bump_price / $rate;
            }
        }
    }
    
  • in file wp-content\plugins\iconic-woo-sales-booster\inc\checkout\class-order-bump-at-checkout-manager.php add next code:
    $bump_price = $bump->get_discount_price($product_id);
    if (class_exists('WOOCS')) {
        global $WOOCS;
        if ($WOOCS->is_multiple_allowed) {
            $currrent = $WOOCS->current_currency;
            if ($currrent != $WOOCS->default_currency) {
                $currencies = $WOOCS->get_currencies();
                $rate = $currencies[$currrent]['rate'];
                $bump_price = $bump_price / $rate;
            }
        }
    }
    
  • into file wp-content\plugins\iconic-woo-sales-booster\inc\checkout\abstracts\class-order-bump-checkout-abstract.php add next code:
    if (class_exists('WOOCS') AND $discount_type != 'percentage') {
        global $WOOCS;
        $discount_value = $WOOCS->woocs_exchange_value(floatval($discount_value));
    }
    
  • into file wp-content\plugins\iconic-woo-sales-booster\inc\product-page\class-order-bump-product-page-manager.php add next code:
    //woocs
    if (class_exists('WOOCS') AND 'percentage' != $discount_rule['type']) {
        global $WOOCS;
        $discount_amount = $WOOCS->woocs_exchange_value(floatval($discount_amount));
    }
    
  • in file wp-content\plugins\iconic-woo-sales-booster\inc\product-page\class-order-bump-product-page-manager.php add next code:
    if (class_exists('WOOCS') AND $discount_type != 'percentage') {
        global $WOOCS;
        $discount_value = $WOOCS->woocs_exchange_value(floatval($discount_value));
    }
   

Old versions:

  • Into file wp-content\plugins\iconic-woo-sales-booster\inc\checkout\class-order-bump-at-checkout-manager.php add next code
    $bump_price = $bump->get_discount_price($product_id);
    if (class_exists('WOOCS') AND $bump_price) {
        global $WOOCS;
        if ($WOOCS->is_multiple_allowed) {
            $currrent = $WOOCS->current_currency;
            if ($currrent != $WOOCS->default_currency) {
                $currencies = $WOOCS->get_currencies();
                $rate = $currencies[$currrent]['rate'];
                $bump_price = $bump_price / $rate;
            }
        }
    }
    
     
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.