| 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;text-decoration: underline;}
|
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%;}
|
| Line 22... |
Line 22... |
| 22 |
|
22 |
|
| 23 |
<h4 class="text-center">Accessories cashback scheme for April</h4>
|
23 |
<h4 class="text-center">Accessories cashback scheme for April</h4>
|
| 24 |
|
24 |
|
| 25 |
|
25 |
|
| 26 |
<div id="foreng">
|
26 |
<div id="foreng">
|
| 27 |
<h5>Exclusive offer only for you (<?php echo $user_email?>)</h5>
|
27 |
<!-- <h5>Exclusive offer only for you (<?php //echo $user_email;?>)</h5> -->
|
| - |
|
28 |
<div style="margin:5px 0;">
|
| - |
|
29 |
Orders placed till <?php echo date('d-M',$response['last_run_timestamp']/1000);?>.
|
| - |
|
30 |
<table cellpadding="1" cellspacing="1" width="100%">
|
| - |
|
31 |
|
| - |
|
32 |
<?php if(isset($response['delivered_order_value'])):?>
|
| - |
|
33 |
<tr>
|
| - |
|
34 |
<td>Delivered Orders</td>
|
| - |
|
35 |
<td> ₹ <?php echo number_format($response['delivered_order_value']);?></td>
|
| - |
|
36 |
</tr>
|
| - |
|
37 |
<?php endif;?>
|
| - |
|
38 |
<?php if(isset($response['pending_order_value'])):?>
|
| - |
|
39 |
<tr>
|
| - |
|
40 |
<td>In process Orders </td>
|
| - |
|
41 |
<td> ₹ <?php echo number_format($response['pending_order_value']);?></td>
|
| - |
|
42 |
</tr>
|
| - |
|
43 |
<?php endif;?>
|
| - |
|
44 |
<tr>
|
| - |
|
45 |
<td><b>Total</b></td>
|
| - |
|
46 |
<td> <b>₹ <?php echo number_format($response['pending_order_value'] + $response['delivered_order_value']);?></b></td>
|
| - |
|
47 |
</tr>
|
| - |
|
48 |
</table>
|
| - |
|
49 |
|
| - |
|
50 |
<div style="margin:15px 0 10px;">
|
| - |
|
51 |
|
| - |
|
52 |
<?php //if(isset($needtoachieveval) && $needtoachieveval >0){
|
| - |
|
53 |
$totalval = $response['delivered_order_value'] + $response['pending_order_value'];
|
| - |
|
54 |
$getcashback = 0;
|
| - |
|
55 |
|
| - |
|
56 |
if($totalval< $response['target1']){
|
| - |
|
57 |
echo "* You are not eligible for cashback.";
|
| - |
|
58 |
}
|
| - |
|
59 |
else if($totalval< $response['target2']){
|
| - |
|
60 |
if($response['maxCashBack']< intval(($totalval*$response['target1_cash_back_percetage'])/100)){
|
| - |
|
61 |
$getcashback = $response['maxCashBack'];
|
| - |
|
62 |
}
|
| - |
|
63 |
else{
|
| - |
|
64 |
$getcashback = intval(($totalval*$response['target1_cash_back_percetage'])/100);
|
| - |
|
65 |
}
|
| - |
|
66 |
echo "* You are eligible for <span class='redcolor'>". $response['target1_cash_back_percetage']."%</span> cashback.<br> ";
|
| - |
|
67 |
echo "* <span class='redcolor'>₹".number_format($getcashback) ."</span> will be credited to your account on 20th May subject to orders delivered.";
|
| - |
|
68 |
}
|
| - |
|
69 |
else{
|
| - |
|
70 |
if($response['maxCashBack']< intval(($totalval*$response['target2_cash_back_percetage'])/100)){
|
| - |
|
71 |
$getcashback = $response['maxCashBack'];
|
| - |
|
72 |
}
|
| - |
|
73 |
else{
|
| - |
|
74 |
$getcashback = intval(($totalval*$response['target2_cash_back_percetage'])/100);
|
| - |
|
75 |
}
|
| 28 |
<div style="margin:5px 0;">Buy accessories in April and get upto <span class="redcolor"><?php echo $maxpercentage."% ";?></span>cashback. </div>
|
76 |
echo "* You are eligible for <span class='redcolor'>". $response['target2_cash_back_percetage']."%</span> cashback.<br>";
|
| - |
|
77 |
echo "* <span class='redcolor'>₹".number_format($getcashback) ."</span> will be credited to your account on 20th May subject to orders delivered.";
|
| - |
|
78 |
}
|
| - |
|
79 |
?>
|
| - |
|
80 |
<hr style="border-top: 2px solid #eee;">
|
| - |
|
81 |
</div>
|
| - |
|
82 |
</div>
|
| - |
|
83 |
|
| - |
|
84 |
<h5>Scheme Target</h5>
|
| 29 |
|
85 |
|
| 30 |
<div style="margin:5px 0;">
|
86 |
<div style="margin:5px 0;">
|
| 31 |
|
87 |
|
| 32 |
<table cellpadding="1" cellspacing="1" width="100%">
|
88 |
<table cellpadding="1" cellspacing="1" width="100%">
|
| 33 |
<tr><td><b>Purchase</b></td><td><b>Cashback</b></td></tr>
|
89 |
<tr><td><b>Total purchase in April</b></td><td><b>Cashback</b></td></tr>
|
| 34 |
<?php if(isset($response['target1'])&& isset($response['target1_cash_back_percetage'])):?>
|
90 |
<?php if(isset($response['target1'])&& isset($response['target1_cash_back_percetage'])):?>
|
| 35 |
<tr>
|
91 |
<tr>
|
| 36 |
<td>Above <span class="redcolor">₹ <?php echo number_format($response['target1']);?>*</span></td>
|
92 |
<td>Above <span class="redcolor">₹ <?php echo number_format($response['target1']);?>*</span></td>
|
| 37 |
<td class="redcolor"><?php echo $response['target1_cash_back_percetage']?>%</td>
|
93 |
<td class="redcolor"><?php echo $response['target1_cash_back_percetage']?>%</td>
|
| 38 |
</tr>
|
94 |
</tr>
|
| Line 47... |
Line 103... |
| 47 |
|
103 |
|
| 48 |
</div>
|
104 |
</div>
|
| 49 |
|
105 |
|
| 50 |
<div class="bgreen" style="margin:5px 0;font-size:12px;">
|
106 |
<div class="bgreen" style="margin:5px 0;font-size:12px;">
|
| 51 |
<b><u>Terms and condtions:</u></b><br>
|
107 |
<b><u>Terms and condtions:</u></b><br>
|
| 52 |
<ul>
|
108 |
<ul style="padding-left: 20px;">
|
| - |
|
109 |
<li> You can achieve your target by placing multiple orders during April.</li>
|
| 53 |
<li> Max cashback will be <span class="redcolor">₹ <?php echo number_format($response['maxCashBack']);?></span>.</li>
|
110 |
<li> Max cashback will be <span class="redcolor">₹ <?php echo number_format($response['maxCashBack']);?></span>.</li>
|
| 54 |
<li> Above scheme is applicable only to you (<b><?php echo $user_email;?></b>).</li>
|
111 |
<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>
|
112 |
<li> <span class="redcolor">*Smart watch</span>, <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>
|
113 |
<li> Cashback available only on orders billed and fulfilled by <b>saholic.com</b>.</li>
|
| 57 |
<li> Cashback available only on delivered orders.</li>
|
114 |
<li> Cashback available only on delivered orders.</li>
|
| 58 |
<li> Cashback will be credited to your account by 20th May 2016.</li>
|
115 |
<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>
|
116 |
<li> <b>ProfitMandi</b> shall have final discretion on matters relating to cashback.</li>
|
| 60 |
</ul>
|
117 |
</ul>
|
| Line 69... |
Line 126... |
| 69 |
//}
|
126 |
//}
|
| 70 |
?>
|
127 |
?>
|
| 71 |
|
128 |
|
| 72 |
</div>
|
129 |
</div>
|
| 73 |
<?php //if(isset($needtoachieveval)):?>
|
130 |
<?php //if(isset($needtoachieveval)):?>
|
| 74 |
<div style="margin:15px 0 10px;">
|
- |
|
| 75 |
Orders placed till <?php echo date('d-M',$response['last_run_timestamp']/1000);?>.
|
- |
|
| 76 |
<table cellpadding="1" cellspacing="1" width="100%">
|
- |
|
| 77 |
|
131 |
|
| 78 |
<?php if(isset($response['delivered_order_value'])):?>
|
- |
|
| 79 |
<tr>
|
- |
|
| 80 |
<td>Delivered Orders</td>
|
- |
|
| 81 |
<td> ₹ <?php echo $response['delivered_order_value']?></td>
|
- |
|
| 82 |
</tr>
|
- |
|
| 83 |
<?php endif;?>
|
- |
|
| 84 |
<?php if(isset($response['pending_order_value'])):?>
|
- |
|
| 85 |
<tr>
|
- |
|
| 86 |
<td>In process Orders </td>
|
- |
|
| 87 |
<td> ₹ <?php echo $response['pending_order_value']?></td>
|
- |
|
| 88 |
</tr>
|
- |
|
| 89 |
<?php endif;?>
|
- |
|
| 90 |
<tr>
|
- |
|
| 91 |
<td><b>Total</b></td>
|
- |
|
| 92 |
<td> <b>₹ <?php echo ($response['pending_order_value'] + $response['delivered_order_value']);?></b></td>
|
- |
|
| 93 |
</tr>
|
- |
|
| 94 |
</table>
|
- |
|
| 95 |
<div style="padding:10px 0 0px;">
|
- |
|
| 96 |
<?php //if(isset($needtoachieveval) && $needtoachieveval >0){
|
- |
|
| 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 |
}
|
- |
|
| 109 |
?>
|
- |
|
| 110 |
</div>
|
- |
|
| 111 |
</div>
|
- |
|
| 112 |
|
132 |
|
| 113 |
<?php //endif;?>
|
133 |
<?php //endif;?>
|
| 114 |
</div>
|
134 |
</div>
|
| 115 |
|
135 |
|
| 116 |
|
136 |
|