| Line 1... |
Line 1... |
| 1 |
<style type="text/css">
|
1 |
<style type="text/css">
|
| 2 |
h5{font-weight: bold;text-decoration: underline;}
|
2 |
h5{font-weight: bold;text-decoration: underline;}
|
| 3 |
h4{font-weight: bold;}
|
3 |
h4{font-weight: bold;text-decoration: underline;}
|
| 4 |
|
4 |
|
| 5 |
td:first-child { ; border:1px solid #e6e6e6;}
|
5 |
td:first-child { ; border:1px solid #e6e6e6;}
|
| 6 |
td{
|
6 |
td{
|
| 7 |
padding:2px;
|
7 |
padding:2px;
|
| 8 |
border:1px solid #e6e6e6;
|
8 |
border:1px solid #e6e6e6;
|
| 9 |
}
|
9 |
}
|
| 10 |
tr{width:100%;}
|
10 |
tr{width:100%;}
|
| 11 |
table{
|
11 |
table{
|
| 12 |
font-size: 12px;
|
12 |
font-size: 13px;
|
| 13 |
}
|
13 |
}
|
| - |
|
14 |
.redcolor {
|
| - |
|
15 |
color:red;
|
| - |
|
16 |
}
|
| 14 |
</style>
|
17 |
</style>
|
| 15 |
<?php if(isset($response) && !empty($response)):?>
|
18 |
<?php if(isset($response) && !empty($response)):?>
|
| 16 |
<div class="container">
|
19 |
<div class="container">
|
| 17 |
<div class="row-fluid">
|
20 |
<div class="row-fluid">
|
| 18 |
<div class="col-xs-12 bgwhite" style="margin:5px 0;">
|
21 |
<div class="col-xs-12 bgwhite" style="margin:5px 0;">
|
| 19 |
|
22 |
|
| 20 |
<h4 class="text-center"></h4>
|
23 |
<h4 class="text-center">Accessories cashback scheme for April</h4>
|
| 21 |
|
24 |
|
| 22 |
|
25 |
|
| 23 |
<div id="foreng">
|
26 |
<div id="foreng">
|
| 24 |
|
- |
|
| - |
|
27 |
<h5>Exclusive offer only for you (<?php echo $user_email?>)</h5>
|
| 25 |
<div style="margin:5px 0;">Buy accessories in April and get upto <?php echo $maxpercentage."% cashback.";?> </div>
|
28 |
<div style="margin:5px 0;">Buy accessories in April and get upto <span class="redcolor"><?php echo $maxpercentage."% ";?></span>cashback. </div>
|
| 26 |
|
29 |
|
| 27 |
<div style="margin:5px 0;">
|
30 |
<div style="margin:5px 0;">
|
| 28 |
|
31 |
|
| 29 |
<table cellpadding="1" cellspacing="1" width="100%">
|
32 |
<table cellpadding="1" cellspacing="1" width="100%">
|
| 30 |
<tr><td><b>Purchase</b></td><td><b>Cashback</b></td></tr>
|
33 |
<tr><td><b>Purchase</b></td><td><b>Cashback</b></td></tr>
|
| 31 |
<?php if(isset($response['target1'])&& isset($response['target1_cash_back_percetage'])):?>
|
34 |
<?php if(isset($response['target1'])&& isset($response['target1_cash_back_percetage'])):?>
|
| 32 |
<tr>
|
35 |
<tr>
|
| 33 |
<td>Above ₹ <?php echo $response['target1'];?></td>
|
36 |
<td>Above <span class="redcolor">₹ <?php echo number_format($response['target1']);?>*</span></td>
|
| 34 |
<td><?php echo $response['target1_cash_back_percetage']?>%</td>
|
37 |
<td class="redcolor"><?php echo $response['target1_cash_back_percetage']?>%</td>
|
| 35 |
</tr>
|
38 |
</tr>
|
| 36 |
<?php endif;?>
|
39 |
<?php endif;?>
|
| 37 |
<?php if(isset($response['target2'])&& isset($response['target2_cash_back_percetage'])):?>
|
40 |
<?php if(isset($response['target2'])&& isset($response['target2_cash_back_percetage'])):?>
|
| 38 |
<tr>
|
41 |
<tr>
|
| 39 |
<td>Above ₹ <?php echo $response['target2'];?></td>
|
42 |
<td>Above <span class="redcolor">₹ <?php echo number_format($response['target2']);?>*</span></td>
|
| 40 |
<td><?php echo $response['target2_cash_back_percetage']?>%</td>
|
43 |
<td class="redcolor"><?php echo $response['target2_cash_back_percetage']?>%</td>
|
| 41 |
</tr>
|
44 |
</tr>
|
| 42 |
<?php endif;?>
|
45 |
<?php endif;?>
|
| 43 |
</table>
|
46 |
</table>
|
| 44 |
|
47 |
|
| 45 |
</div>
|
48 |
</div>
|
| 46 |
|
49 |
|
| 47 |
<div class="bgreen" style="margin:5px 0;font-size:12px;">
|
50 |
<div class="bgreen" style="margin:5px 0;font-size:12px;">
|
| - |
|
51 |
<b><u>Terms and condtions:</u></b><br>
|
| - |
|
52 |
<ul>
|
| 48 |
<b>*</b> Max cashback will be ₹ <?php echo $response['maxCashBack'];?>.<br>
|
53 |
<li> Max cashback will be <span class="redcolor">₹ <?php echo number_format($response['maxCashBack']);?></span>.</li>
|
| 49 |
<b>*</b> Above scheme is applicable only to you (<b><?php echo $user_email;?></b>).<br>
|
54 |
<li> Above scheme is applicable only to you (<b><?php echo $user_email;?></b>).</li>
|
| - |
|
55 |
<li> <span class="redcolor">*Memory card</span> and <span class="redcolor">pendrive</span> do not qualify in the above scheme.</li>
|
| - |
|
56 |
<li> Cashback available only on orders billed and fulfilled by <b>saholic.com</b>.</li>
|
| 50 |
<b>*</b> Cashback is not applicable on memory card and pendrive.
|
57 |
<li> Cashback available only on delivered orders.</li>
|
| - |
|
58 |
<li> Cashback will be credited to your account by 20th May 2016.</li>
|
| - |
|
59 |
<li> <b>ProfitMandi</b> shall have final discretion on matters relating to cashback.</li>
|
| - |
|
60 |
</ul>
|
| 51 |
<?php
|
61 |
<?php
|
| 52 |
// $gocount =0;
|
62 |
// $gocount =0;
|
| 53 |
// foreach($response['sub_categories_not_applicable'] as $rkey){
|
63 |
// foreach($response['sub_categories_not_applicable'] as $rkey){
|
| 54 |
// echo $subcat[$rkey];
|
64 |
// echo $subcat[$rkey];
|
| 55 |
// $gocount = $gocount +1;
|
65 |
// $gocount = $gocount +1;
|
| Line 58... |
Line 68... |
| 58 |
// }
|
68 |
// }
|
| 59 |
//}
|
69 |
//}
|
| 60 |
?>
|
70 |
?>
|
| 61 |
|
71 |
|
| 62 |
</div>
|
72 |
</div>
|
| 63 |
<?php if(isset($response['delivered_order_value']) && $response['delivered_order_value'] != 0):?>
|
73 |
<?php //if(isset($needtoachieveval)):?>
|
| 64 |
<div style="margin:15px 0 10px;">
|
74 |
<div style="margin:15px 0 10px;">
|
| 65 |
Actual order value till date.
|
75 |
Orders placed till <?php echo date('d-M',$response['last_run_timestamp']/1000);?>.
|
| 66 |
<table cellpadding="1" cellspacing="1" width="100%">
|
76 |
<table cellpadding="1" cellspacing="1" width="100%">
|
| 67 |
|
77 |
|
| 68 |
<?php if(isset($response['delivered_order_value'])):?>
|
78 |
<?php if(isset($response['delivered_order_value'])):?>
|
| 69 |
<tr>
|
79 |
<tr>
|
| 70 |
<td>Delivered Orders</td>
|
80 |
<td>Delivered Orders</td>
|
| 71 |
<td> ₹ <?php echo $response['delivered_order_value']?></td>
|
81 |
<td> ₹ <?php echo $response['delivered_order_value']?></td>
|
| 72 |
</tr>
|
82 |
</tr>
|
| 73 |
<?php endif;?>
|
83 |
<?php endif;?>
|
| 74 |
<?php if(isset($response['pending_order_value'])):?>
|
84 |
<?php if(isset($response['pending_order_value'])):?>
|
| 75 |
<tr>
|
85 |
<tr>
|
| 76 |
<td>Pending Orders </td>
|
86 |
<td>In process Orders </td>
|
| 77 |
<td> ₹ <?php echo $response['pending_order_value']?></td>
|
87 |
<td> ₹ <?php echo $response['pending_order_value']?></td>
|
| 78 |
</tr>
|
88 |
</tr>
|
| 79 |
<?php endif;?>
|
89 |
<?php endif;?>
|
| 80 |
<tr>
|
90 |
<tr>
|
| 81 |
<td><b>Total</b></td>
|
91 |
<td><b>Total</b></td>
|
| 82 |
<td> ₹ <?php echo ($response['pending_order_value'] + $response['delivered_order_value']);?></td>
|
92 |
<td> <b>₹ <?php echo ($response['pending_order_value'] + $response['delivered_order_value']);?></b></td>
|
| 83 |
</tr>
|
93 |
</tr>
|
| 84 |
</table>
|
94 |
</table>
|
| 85 |
<div style="padding:10px 0 0px;">
|
95 |
<div style="padding:10px 0 0px;">
|
| 86 |
<?php if(isset($needtoachieveval) && $needtoachieveval >0){
|
96 |
<?php //if(isset($needtoachieveval) && $needtoachieveval >0){
|
| 87 |
echo "Buy ₹ ". $needtoachieveval ." more to get ". $needtoachieveper."% cashback.";}
|
97 |
$totalval = $response['delivered_order_value'] + $response['pending_order_value'];
|
| - |
|
98 |
|
| - |
|
99 |
if($totalval< $response['target2']){
|
| - |
|
100 |
if($totalval< $response['target1']){
|
| - |
|
101 |
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>";
|
| - |
|
102 |
|
| - |
|
103 |
}
|
| - |
|
104 |
|
| - |
|
105 |
echo "* Buy <span class='redcolor'>₹ ". number_format($response['target2'] - $totalval) ."</span> more to get <span class='redcolor'>". $response['target2_cash_back_percetage']."%</span> cashback.";}
|
| - |
|
106 |
else{
|
| - |
|
107 |
echo "You have achieved your target.";
|
| - |
|
108 |
}
|
| 88 |
?>
|
109 |
?>
|
| 89 |
</div>
|
110 |
</div>
|
| 90 |
</div>
|
111 |
</div>
|
| - |
|
112 |
|
| 91 |
<?php endif;?>
|
113 |
<?php //endif;?>
|
| 92 |
</div>
|
114 |
</div>
|
| 93 |
|
115 |
|
| 94 |
|
116 |
|
| 95 |
</div>
|
117 |
</div>
|
| 96 |
</div>
|
118 |
</div>
|