FOX - Currency Switcher Professional for WooCommerce

LearnPress – WordPress LMS Plugin

Plugin URL: https://wordpress.org/plugins/learnpress/

  • In  file wp-content\plugins\learnpress-woo-payment\incs\class-wc-product-lp-course.php change next code:
    $price = ($course) ? $course->get_price() : 0;
    if ($price) {
        if (class_exists('WOOCS')) {
            global $WOOCS;
            if ($WOOCS->is_multiple_allowed) {
                $price = $WOOCS->woocs_exchange_value(floatval($price));
            }
        }
    }
    return $price;
    

  • In file wp-content\plugins\learnpress\inc\course\abstract-course.php add next code:
    if ($sale_price_value) {
        if (class_exists('WOOCS')) {
            global $WOOCS;
            if ($WOOCS->is_multiple_allowed) {
                $sale_price_value = $WOOCS->woocs_exchange_value(floatval($sale_price_value));
            }
        }
    }
    

  • And on the same file add next code:
    if ($price) {
        if (class_exists('WOOCS')) {
            global $WOOCS;
            if ($WOOCS->is_multiple_allowed) {
                $price = $WOOCS->woocs_exchange_value(floatval($price));
            }
        }
    }
    

  • And on the same file add next code:
    return wc_price($this->get_price());