Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<style type="text/css">h5{font-weight: bold;text-decoration: underline;}h4{font-weight: bold;text-decoration: underline;}td:first-child { ; border:1px solid #e6e6e6;}td{padding:2px;border:1px solid #e6e6e6;}tr{width:100%;}table{font-size: 13px;}.redcolor {color:red;}</style><?php if(isset($response) && !empty($response)):?><div class="container"><div class="row-fluid"><div class="col-xs-12 bgwhite" style="margin:5px 0;"><h4 class="text-center">Accessories cashback scheme for April</h4><div id="foreng"><h5>Exclusive offer only for you (<?php echo $user_email?>)</h5><div style="margin:5px 0;">Buy accessories in April and get upto <span class="redcolor"><?php echo $maxpercentage."% ";?></span>cashback. </div><div style="margin:5px 0;"><table cellpadding="1" cellspacing="1" width="100%"><tr><td><b>Purchase</b></td><td><b>Cashback</b></td></tr><?php if(isset($response['target1'])&& isset($response['target1_cash_back_percetage'])):?><tr><td>Above <span class="redcolor">₹ <?php echo number_format($response['target1']);?>*</span></td><td class="redcolor"><?php echo $response['target1_cash_back_percetage']?>%</td></tr><?php endif;?><?php if(isset($response['target2'])&& isset($response['target2_cash_back_percetage'])):?><tr><td>Above <span class="redcolor">₹ <?php echo number_format($response['target2']);?>*</span></td><td class="redcolor"><?php echo $response['target2_cash_back_percetage']?>%</td></tr><?php endif;?></table></div><div class="bgreen" style="margin:5px 0;font-size:12px;"><b><u>Terms and condtions:</u></b><br><ul><li> Max cashback will be <span class="redcolor">₹ <?php echo number_format($response['maxCashBack']);?></span>.</li><li> Above scheme is applicable only to you (<b><?php echo $user_email;?></b>).</li><li> <span class="redcolor">*Memory card</span> and <span class="redcolor">pendrive</span> do not qualify in the above scheme.</li><li> Cashback available only on orders billed and fulfilled by <b>saholic.com</b>.</li><li> Cashback available only on delivered orders.</li><li> Cashback will be credited to your account by 20th May 2016.</li><li> <b>ProfitMandi</b> shall have final discretion on matters relating to cashback.</li></ul><?php// $gocount =0;// foreach($response['sub_categories_not_applicable'] as $rkey){// echo $subcat[$rkey];// $gocount = $gocount +1;// if(count($response['sub_categories_not_applicable'])>1 && count($response['sub_categories_not_applicable'])!= $gocount){// echo ", ";// }//}?></div><?php //if(isset($needtoachieveval)):?><div style="margin:15px 0 10px;">Orders placed till <?php echo date('d-M',$response['last_run_timestamp']/1000);?>.<table cellpadding="1" cellspacing="1" width="100%"><?php if(isset($response['delivered_order_value'])):?><tr><td>Delivered Orders</td><td> ₹ <?php echo $response['delivered_order_value']?></td></tr><?php endif;?><?php if(isset($response['pending_order_value'])):?><tr><td>In process Orders </td><td> ₹ <?php echo $response['pending_order_value']?></td></tr><?php endif;?><tr><td><b>Total</b></td><td> <b>₹ <?php echo ($response['pending_order_value'] + $response['delivered_order_value']);?></b></td></tr></table><div style="padding:10px 0 0px;"><?php //if(isset($needtoachieveval) && $needtoachieveval >0){$totalval = $response['delivered_order_value'] + $response['pending_order_value'];if($totalval< $response['target2']){if($totalval< $response['target1']){echo "* Buy <span class='redcolor'>₹ ". number_format($response['target1'] - $totalval) ."</span> more to get <span class='redcolor'>". $response['target1_cash_back_percetage']."%</span> cashback.<br>";}echo "* Buy <span class='redcolor'>₹ ". number_format($response['target2'] - $totalval) ."</span> more to get <span class='redcolor'>". $response['target2_cash_back_percetage']."%</span> cashback.";}else{echo "You have achieved your target.";}?></div></div><?php //endif;?></div></div></div></div><?php else:?><div class="well text-center emptyCart">No offer available for you.</div><?php endif;?>