Subversion Repositories SmartDukaan

Rev

Rev 19359 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
19359 manas 1
<style type="text/css">
2
h5{font-weight: bold;text-decoration: underline;}
3
h4{font-weight: bold;text-decoration: underline;}
4
 
19702 naman 5
	td:first-child {border:1px solid  #e6e6e6;}
19359 manas 6
	td{
7
	padding:2px;
8
    border:1px solid #e6e6e6;
9
}
10
tr{width:100%;}
11
    table{
12
    	font-size: 13px;
13
    }
14
.redcolor {
15
	color:red;
16
}
17
</style>
18
<?php if(isset($response) && !empty($response)):?>
19
<div class="container">
20
	<div class="row-fluid">	
21
		<div class="col-xs-12 bgwhite" style="margin:5px 0;">
22
 
23
			<h4 class="text-center">Accessories cashback scheme for April</h4>
24
 
25
 
26
			<div id="foreng">
19702 naman 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> &#8377; <?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> &#8377; <?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>&#8377; <?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'>&#8377;".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
							}
76
							echo "* You are eligible for <span class='redcolor'>". $response['target2_cash_back_percetage']."%</span> cashback.<br>";
77
							echo "* <span class='redcolor'>&#8377;".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>
19359 manas 83
 
19702 naman 84
			   	<h5>Scheme Target</h5>
85
 
19359 manas 86
				<div style="margin:5px 0;">
87
 
88
					<table cellpadding="1" cellspacing="1" width="100%">
19702 naman 89
						<tr><td><b>Total purchase in April</b></td><td><b>Cashback</b></td></tr>
19359 manas 90
						<?php if(isset($response['target1'])&& isset($response['target1_cash_back_percetage'])):?>
91
							<tr>
92
								<td>Above <span class="redcolor">&#8377; <?php echo number_format($response['target1']);?>*</span></td>
93
								<td class="redcolor"><?php echo $response['target1_cash_back_percetage']?>%</td>
94
							</tr>
95
						<?php endif;?>
96
						<?php if(isset($response['target2'])&& isset($response['target2_cash_back_percetage'])):?>
97
							<tr>
98
								<td>Above <span class="redcolor">&#8377; <?php echo number_format($response['target2']);?>*</span></td>
99
								<td class="redcolor"><?php echo $response['target2_cash_back_percetage']?>%</td>
100
							</tr>
101
						<?php endif;?>
102
					</table>
103
 
104
				</div>
105
 
106
				<div class="bgreen" style="margin:5px 0;font-size:12px;">
107
					<b><u>Terms and condtions:</u></b><br>
19702 naman 108
					<ul style="padding-left: 20px;">
109
					<li> You can achieve your target by placing multiple orders during April.</li>
19359 manas 110
					<li> Max cashback will be <span class="redcolor">&#8377; <?php echo number_format($response['maxCashBack']);?></span>.</li>
111
					<li> Above scheme is applicable only to you (<b><?php echo $user_email;?></b>).</li>
19702 naman 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>
19359 manas 113
					<li> Cashback available only on orders billed and fulfilled by <b>saholic.com</b>.</li>
114
					<li> Cashback available only on delivered orders.</li>
115
					<li> Cashback will be credited to your account by 20th May 2016.</li>
116
					<li> <b>ProfitMandi</b> shall have final discretion on matters relating to cashback.</li>
117
					</ul>
118
					<?php
119
// 						$gocount =0;
120
// 						foreach($response['sub_categories_not_applicable'] as $rkey){
121
// 						echo $subcat[$rkey];
122
// 						$gocount = $gocount +1;
123
// 						if(count($response['sub_categories_not_applicable'])>1 && count($response['sub_categories_not_applicable'])!= $gocount){
124
// 							echo ", ";
125
// 						}
126
					//}
127
					?>
128
 
129
				</div>
130
				<?php  //if(isset($needtoachieveval)):?>
19702 naman 131
 
19359 manas 132
 
133
			    <?php //endif;?>
134
			</div>
135
 
136
 
137
		</div>
138
	</div>
139
</div>
140
<?php else:?>
141
	<div class="well text-center emptyCart">
142
			No offer available for you.		
143
	</div>
144
 
145
<?php endif;?>