Subversion Repositories SmartDukaan

Rev

Rev 19431 | Rev 19664 | 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
 
5
	td:first-child { ; border:1px solid  #e6e6e6;}
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">
19358 naman 27
				<h5>Exclusive offer only for you (<?php echo $user_email?>)</h5>
28
			    <div style="margin:5px 0;">Buy accessories in April and get upto <span class="redcolor"><?php echo $maxpercentage."% ";?></span>cashback. </div>
19307 naman 29
 
30
				<div style="margin:5px 0;">
19342 naman 31
 
19307 naman 32
					<table cellpadding="1" cellspacing="1" width="100%">
19431 naman 33
						<tr><td><b>Total purchase in April</b></td><td><b>Cashback</b></td></tr>
19307 naman 34
						<?php if(isset($response['target1'])&& isset($response['target1_cash_back_percetage'])):?>
35
							<tr>
19358 naman 36
								<td>Above <span class="redcolor">&#8377; <?php echo number_format($response['target1']);?>*</span></td>
37
								<td class="redcolor"><?php echo $response['target1_cash_back_percetage']?>%</td>
19307 naman 38
							</tr>
39
						<?php endif;?>
40
						<?php if(isset($response['target2'])&& isset($response['target2_cash_back_percetage'])):?>
41
							<tr>
19358 naman 42
								<td>Above <span class="redcolor">&#8377; <?php echo number_format($response['target2']);?>*</span></td>
43
								<td class="redcolor"><?php echo $response['target2_cash_back_percetage']?>%</td>
19307 naman 44
							</tr>
45
						<?php endif;?>
46
					</table>
19342 naman 47
 
19307 naman 48
				</div>
49
 
50
				<div class="bgreen" style="margin:5px 0;font-size:12px;">
19358 naman 51
					<b><u>Terms and condtions:</u></b><br>
19364 naman 52
					<ul style="padding-left: 20px;">
19431 naman 53
					<li> You can achieve your target by placing multiple orders during April.</li>
19358 naman 54
					<li> Max cashback will be <span class="redcolor">&#8377; <?php echo number_format($response['maxCashBack']);?></span>.</li>
55
					<li> Above scheme is applicable only to you (<b><?php echo $user_email;?></b>).</li>
19439 naman 56
					<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 57
					<li> Cashback available only on orders billed and fulfilled by <b>saholic.com</b>.</li>
58
					<li> Cashback available only on delivered orders.</li>
59
					<li> Cashback will be credited to your account by 20th May 2016.</li>
60
					<li> <b>ProfitMandi</b> shall have final discretion on matters relating to cashback.</li>
61
					</ul>
19307 naman 62
					<?php
19311 naman 63
// 						$gocount =0;
64
// 						foreach($response['sub_categories_not_applicable'] as $rkey){
65
// 						echo $subcat[$rkey];
66
// 						$gocount = $gocount +1;
67
// 						if(count($response['sub_categories_not_applicable'])>1 && count($response['sub_categories_not_applicable'])!= $gocount){
68
// 							echo ", ";
69
// 						}
70
					//}
71
					?>
19307 naman 72
 
73
				</div>
19358 naman 74
				<?php  //if(isset($needtoachieveval)):?>
19360 naman 75
				<hr style="border-top: 2px solid #eee;;">
19342 naman 76
				<div style="margin:15px 0 10px;">
19358 naman 77
					Orders placed till <?php echo date('d-M',$response['last_run_timestamp']/1000);?>.
19342 naman 78
					<table cellpadding="1" cellspacing="1" width="100%">
79
 
80
						<?php if(isset($response['delivered_order_value'])):?>
81
							<tr>
82
								<td>Delivered Orders</td>
19360 naman 83
								<td> &#8377; <?php echo number_format($response['delivered_order_value']);?></td>
19342 naman 84
							</tr>
85
						<?php endif;?>
86
						<?php if(isset($response['pending_order_value'])):?>
87
							<tr>
19358 naman 88
								<td>In process Orders </td>
19360 naman 89
								<td> &#8377; <?php echo number_format($response['pending_order_value']);?></td>
19342 naman 90
							</tr>
91
						<?php endif;?>
92
						<tr>
93
								<td><b>Total</b></td>
19360 naman 94
								<td> <b>&#8377; <?php echo number_format($response['pending_order_value'] + $response['delivered_order_value']);?></b></td>
19342 naman 95
						</tr>
96
					</table>
97
					<div style="padding:10px 0 0px;">
19358 naman 98
					<?php //if(isset($needtoachieveval) && $needtoachieveval >0){
99
						$totalval = $response['delivered_order_value'] + $response['pending_order_value'];
100
 
101
						if($totalval< $response['target2']){
102
							if($totalval< $response['target1']){
103
								echo "* Buy <span class='redcolor'>&#8377; ". number_format($response['target1'] - $totalval) ."</span> more to get <span class='redcolor'>". $response['target1_cash_back_percetage']."%</span> cashback.<br>";
104
 
105
							}
106
 
107
						echo "* Buy <span class='redcolor'>&#8377; ". number_format($response['target2'] - $totalval) ."</span> more to get <span class='redcolor'>". $response['target2_cash_back_percetage']."%</span> cashback.";}
108
						else{
109
							echo "You have achieved your target.";
110
						}
19342 naman 111
					?>
112
					</div>
113
				</div>
19358 naman 114
 
115
			    <?php //endif;?>
19307 naman 116
			</div>
117
 
118
 
119
		</div>
120
	</div>
19342 naman 121
</div>
122
<?php else:?>
123
	<div class="well text-center emptyCart">
124
			No offer available for you.		
125
	</div>
126
 
127
<?php endif;?>