WOOCS - WooCommerce Currency Switcher

WooCommerce Subscriptions 2.2.15 – by Prospress

Plugin link: https://woocommerce.com/products/woocommerce-subscriptions/

  • open file of WOOCS plugn: \plugins\woocommerce-currency-switcher\classes\fixed.php and add code OR $_product->is_type(‘subscription’):
  • in file in file wp-content\plugins\woocommerce-subscriptions-2.2.15\includes\class-wc-product-variable-subscription.php add code:
    if (class_exists('WOOCS')) {
        global $WOOCS;
        if ($WOOCS->is_multiple_allowed) {
            $price = $WOOCS->woocs_exchange_value($price);
        }
    }

  • in file  wp-content\plugins\woocommerce-subscriptions-2.2.15\includes\class-wc-subscriptions-product.php  add code:
    if (class_exists('WOOCS')) {
        global $WOOCS;
        if ($WOOCS->is_multiple_allowed) {
            $sign_up_fee = $WOOCS->woocs_exchange_value($sign_up_fee);
        }
    }