Subversion Repositories SmartDukaan

Rev

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

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