diff --git a/plugins/checkout/MONEYBOOKERS_RECURRING.php b/plugins/checkout/MONEYBOOKERS_RECURRING.php index 8c9c8b02..c0374749 100644 --- a/plugins/checkout/MONEYBOOKERS_RECURRING.php +++ b/plugins/checkout/MONEYBOOKERS_RECURRING.php @@ -64,9 +64,9 @@ class plg_chout_MONEYBOOKERS_RECURRING extends base_checkout_plugin if($recurr_bill_arr[0]["recurr_type"] == "1") { # Pro-rate billing: - include_once ( PATH_MODULES . 'checkout/checkout.inc.php' ); - $checkout = new checkout; - $arr = $checkout->recurrDates($recurr_bill_arr[0]["recurr_schedule"], $recurr_bill_arr[0]["recurr_weekday"], $recurr_bill_arr[0]["recurr_week"]); + include_once ( PATH_MODULES . 'product/product.inc.php' ); + $product = new product; + $arr = $product->recurrDates($recurr_bill_arr[0]["recurr_schedule"], $recurr_bill_arr[0]["recurr_weekday"], $recurr_bill_arr[0]["recurr_week"]); $rec_start_date = date("d/m/Y", $arr["end"]); $end = $arr["end"]+(86400*365*10); $rec_end_date = date("d/m/Y", $end); diff --git a/plugins/checkout/PAYPAL_RECURRING.php b/plugins/checkout/PAYPAL_RECURRING.php index c8f5b11a..b2caeab9 100644 --- a/plugins/checkout/PAYPAL_RECURRING.php +++ b/plugins/checkout/PAYPAL_RECURRING.php @@ -77,9 +77,9 @@ class plg_chout_PAYPAL_RECURRING extends base_checkout_plugin if($recurr_bill_arr[0]["recurr_type"] == "1") { # Pro-rate billing: - include_once ( PATH_MODULES . 'checkout/checkout.inc.php' ); - $checkout = new checkout; - $arr = $checkout->recurrDates($recurr_bill_arr[0]["recurr_schedule"], $recurr_bill_arr[0]["recurr_weekday"], $recurr_bill_arr[0]["recurr_week"]); + include_once ( PATH_MODULES . 'product/product.inc.php' ); + $product = new product; + $arr = $product->recurrDates($recurr_bill_arr[0]["recurr_schedule"], $recurr_bill_arr[0]["recurr_weekday"], $recurr_bill_arr[0]["recurr_week"]); $remain_time = $arr['end'] - time(); $period1 = round($remain_time/86400); $subscr_date = date("Y-m-d", $arr["end"]); diff --git a/plugins/checkout/WORLDPAY_FUTUREPAY.php b/plugins/checkout/WORLDPAY_FUTUREPAY.php index 801f0809..6b046747 100644 --- a/plugins/checkout/WORLDPAY_FUTUREPAY.php +++ b/plugins/checkout/WORLDPAY_FUTUREPAY.php @@ -90,9 +90,9 @@ class plg_chout_WORLDPAY_FUTUREPAY extends base_checkout_plugin if($recurr_bill_arr[0]["recurr_type"] == "1") { # Pro-rate billing: - include_once ( PATH_MODULES . 'checkout/checkout.inc.php' ); - $checkout = new checkout; - $arr = $checkout->recurrDates($recurr_bill_arr[0]["recurr_schedule"], $recurr_bill_arr[0]["recurr_weekday"], $recurr_bill_arr[0]["recurr_week"]); + include_once ( PATH_MODULES . 'product/product.inc.php' ); + $product = new product; + $arr = $product->recurrDates($recurr_bill_arr[0]["recurr_schedule"], $recurr_bill_arr[0]["recurr_weekday"], $recurr_bill_arr[0]["recurr_week"]); $remain_time = $arr['end'] - time(); $period1 = round($remain_time/86400); $start_date = date("Y-m-d", $arr["end"]);