Commit 354f60fc by Tobin

promocode timing issue

parent c0bf77b3
......@@ -76,10 +76,10 @@
Total: '.$promo->use_limit ?></td>
<td id="statusFlag_<?= encode_param($promo->promocode_id) ?>"><?php
if($promo->status == 1){
if(strtotime($promo->start_date) < strtotime(date('d-M-y H:i:s'))){
if(strtotime($promo->start_date) > strtotime(date('y-m-d'))){
echo 'Yet to Activate';
} else if(strtotime($promo->start_date) > strtotime(date('d-M-y H:i:s')) &&
strtotime($promo->end_date) < strtotime(date('d-M-y H:i:s'))){
} else if(strtotime($promo->start_date) <= strtotime(date('y-m-d')) &&
strtotime($promo->end_date) >= strtotime(date('y-m-d'))){
echo 'Active';
} else echo 'Offer Expired';
} else echo 'De-active'; ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment