FIX_Expries today
This commit is contained in:
parent
886884c4fb
commit
c506d3e492
@ -617,6 +617,7 @@ class Notifications extends BaseController
|
|||||||
$schemename = $row['title'];
|
$schemename = $row['title'];
|
||||||
$expirydate = $row['to_subscription'];
|
$expirydate = $row['to_subscription'];
|
||||||
$customerId = $row['customer_id'];
|
$customerId = $row['customer_id'];
|
||||||
|
$countdays = $row['countdays'];
|
||||||
$membership_id = $row['membership_id'];
|
$membership_id = $row['membership_id'];
|
||||||
if (empty($fullName)) {
|
if (empty($fullName)) {
|
||||||
$this->logger->error('There is no subcription Name');
|
$this->logger->error('There is no subcription Name');
|
||||||
@ -676,6 +677,8 @@ class Notifications extends BaseController
|
|||||||
if (isset($expirydate)) {
|
if (isset($expirydate)) {
|
||||||
$expiryon = $expirydate ? date('d-m-Y', strtotime($expirydate)) : '';
|
$expiryon = $expirydate ? date('d-m-Y', strtotime($expirydate)) : '';
|
||||||
$emailContent = str_replace("{EXPIRY_DATE}", $expiryon, $emailContent);
|
$emailContent = str_replace("{EXPIRY_DATE}", $expiryon, $emailContent);
|
||||||
|
$replaceContent = (int)$countdays == 0 ? 'expires today, ' : 'expiring on ';
|
||||||
|
$emailContent = str_replace("expiring on", $replaceContent, $emailContent);
|
||||||
}
|
}
|
||||||
if (isset($membership_id)) {
|
if (isset($membership_id)) {
|
||||||
$emailContent = str_replace("{RENEWAL_LINK}", base_url() . 'subscription_renewal/' . $membership_id, $emailContent);
|
$emailContent = str_replace("{RENEWAL_LINK}", base_url() . 'subscription_renewal/' . $membership_id, $emailContent);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user