Subversion Repositories SmartDukaan

Rev

Rev 19664 | Rev 19680 | Go to most recent revision | 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
							}
19664 naman 66
							echo "* You are eligible for <span class='redcolor'>". $response['target1_cash_back_percetage']."%</span> cashback subject to orders delivered.<br> ";
19672 naman 67
							echo "* <span class='redcolor'>&#8377;".number_format($getcashback) ."</span> will be credited to your account on 20th May.";
19664 naman 68
						}
69
						else{
19672 naman 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
							}
19664 naman 76
							echo "* You are eligible for <span class='redcolor'>". $response['target2_cash_back_percetage']."%</span> cashback subject to orders delivered.<br>";
19672 naman 77
							echo "* <span class='redcolor'>&#8377;".number_format($getcashback) ."</span> will be credited to your account on 20th May.";
19664 naman 78
						}
79
					?>
80
					<hr style="border-top: 2px solid #eee;">
81
				</div>
82
				</div>
19307 naman 83
 
84
				<div style="margin:5px 0;">
19342 naman 85
 
19307 naman 86
					<table cellpadding="1" cellspacing="1" width="100%">
19431 naman 87
						<tr><td><b>Total purchase in April</b></td><td><b>Cashback</b></td></tr>
19307 naman 88
						<?php if(isset($response['target1'])&& isset($response['target1_cash_back_percetage'])):?>
89
							<tr>
19358 naman 90
								<td>Above <span class="redcolor">&#8377; <?php echo number_format($response['target1']);?>*</span></td>
91
								<td class="redcolor"><?php echo $response['target1_cash_back_percetage']?>%</td>
19307 naman 92
							</tr>
93
						<?php endif;?>
94
						<?php if(isset($response['target2'])&& isset($response['target2_cash_back_percetage'])):?>
95
							<tr>
19358 naman 96
								<td>Above <span class="redcolor">&#8377; <?php echo number_format($response['target2']);?>*</span></td>
97
								<td class="redcolor"><?php echo $response['target2_cash_back_percetage']?>%</td>
19307 naman 98
							</tr>
99
						<?php endif;?>
100
					</table>
19342 naman 101
 
19307 naman 102
				</div>
103
 
104
				<div class="bgreen" style="margin:5px 0;font-size:12px;">
19358 naman 105
					<b><u>Terms and condtions:</u></b><br>
19364 naman 106
					<ul style="padding-left: 20px;">
19431 naman 107
					<li> You can achieve your target by placing multiple orders during April.</li>
19358 naman 108
					<li> Max cashback will be <span class="redcolor">&#8377; <?php echo number_format($response['maxCashBack']);?></span>.</li>
109
					<li> Above scheme is applicable only to you (<b><?php echo $user_email;?></b>).</li>
19439 naman 110
					<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 111
					<li> Cashback available only on orders billed and fulfilled by <b>saholic.com</b>.</li>
112
					<li> Cashback available only on delivered orders.</li>
113
					<li> Cashback will be credited to your account by 20th May 2016.</li>
114
					<li> <b>ProfitMandi</b> shall have final discretion on matters relating to cashback.</li>
115
					</ul>
19307 naman 116
					<?php
19311 naman 117
// 						$gocount =0;
118
// 						foreach($response['sub_categories_not_applicable'] as $rkey){
119
// 						echo $subcat[$rkey];
120
// 						$gocount = $gocount +1;
121
// 						if(count($response['sub_categories_not_applicable'])>1 && count($response['sub_categories_not_applicable'])!= $gocount){
122
// 							echo ", ";
123
// 						}
124
					//}
125
					?>
19307 naman 126
 
127
				</div>
19358 naman 128
				<?php  //if(isset($needtoachieveval)):?>
19664 naman 129
 
19358 naman 130
 
131
			    <?php //endif;?>
19307 naman 132
			</div>
133
 
134
 
135
		</div>
136
	</div>
19342 naman 137
</div>
138
<?php else:?>
139
	<div class="well text-center emptyCart">
140
			No offer available for you.		
141
	</div>
142
 
143
<?php endif;?>