Fixed a bug with recurring subscriptions
This commit is contained in:
parent
a2034bfb7b
commit
7e8ee8bc5a
@ -64,9 +64,9 @@ class plg_chout_MONEYBOOKERS_RECURRING extends base_checkout_plugin
|
|||||||
if($recurr_bill_arr[0]["recurr_type"] == "1")
|
if($recurr_bill_arr[0]["recurr_type"] == "1")
|
||||||
{
|
{
|
||||||
# Pro-rate billing:
|
# Pro-rate billing:
|
||||||
include_once ( PATH_MODULES . 'checkout/checkout.inc.php' );
|
include_once ( PATH_MODULES . 'product/product.inc.php' );
|
||||||
$checkout = new checkout;
|
$product = new product;
|
||||||
$arr = $checkout->recurrDates($recurr_bill_arr[0]["recurr_schedule"], $recurr_bill_arr[0]["recurr_weekday"], $recurr_bill_arr[0]["recurr_week"]);
|
$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"]);
|
$rec_start_date = date("d/m/Y", $arr["end"]);
|
||||||
$end = $arr["end"]+(86400*365*10);
|
$end = $arr["end"]+(86400*365*10);
|
||||||
$rec_end_date = date("d/m/Y", $end);
|
$rec_end_date = date("d/m/Y", $end);
|
||||||
|
@ -77,9 +77,9 @@ class plg_chout_PAYPAL_RECURRING extends base_checkout_plugin
|
|||||||
if($recurr_bill_arr[0]["recurr_type"] == "1")
|
if($recurr_bill_arr[0]["recurr_type"] == "1")
|
||||||
{
|
{
|
||||||
# Pro-rate billing:
|
# Pro-rate billing:
|
||||||
include_once ( PATH_MODULES . 'checkout/checkout.inc.php' );
|
include_once ( PATH_MODULES . 'product/product.inc.php' );
|
||||||
$checkout = new checkout;
|
$product = new product;
|
||||||
$arr = $checkout->recurrDates($recurr_bill_arr[0]["recurr_schedule"], $recurr_bill_arr[0]["recurr_weekday"], $recurr_bill_arr[0]["recurr_week"]);
|
$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();
|
$remain_time = $arr['end'] - time();
|
||||||
$period1 = round($remain_time/86400);
|
$period1 = round($remain_time/86400);
|
||||||
$subscr_date = date("Y-m-d", $arr["end"]);
|
$subscr_date = date("Y-m-d", $arr["end"]);
|
||||||
|
@ -90,9 +90,9 @@ class plg_chout_WORLDPAY_FUTUREPAY extends base_checkout_plugin
|
|||||||
if($recurr_bill_arr[0]["recurr_type"] == "1")
|
if($recurr_bill_arr[0]["recurr_type"] == "1")
|
||||||
{
|
{
|
||||||
# Pro-rate billing:
|
# Pro-rate billing:
|
||||||
include_once ( PATH_MODULES . 'checkout/checkout.inc.php' );
|
include_once ( PATH_MODULES . 'product/product.inc.php' );
|
||||||
$checkout = new checkout;
|
$product = new product;
|
||||||
$arr = $checkout->recurrDates($recurr_bill_arr[0]["recurr_schedule"], $recurr_bill_arr[0]["recurr_weekday"], $recurr_bill_arr[0]["recurr_week"]);
|
$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();
|
$remain_time = $arr['end'] - time();
|
||||||
$period1 = round($remain_time/86400);
|
$period1 = round($remain_time/86400);
|
||||||
$start_date = date("Y-m-d", $arr["end"]);
|
$start_date = date("Y-m-d", $arr["end"]);
|
||||||
|
Reference in New Issue
Block a user