Subversion Repositories SmartDukaan

Rev

Rev 6222 | Rev 6413 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6222 Rev 6407
Line 165... Line 165...
165
								<span class="center-text-bold13">You will be taken to our Bank&apos;s payment gateway for making this payment.</span> 
165
								<span class="center-text-bold13">You will be taken to our Bank&apos;s payment gateway for making this payment.</span> 
166
							</div>
166
							</div>
167
						</form>
167
						</form>
168
                    </div>
168
                    </div>
169
					<div>
169
					<div>
170
						<div class="center-text-bold12">Select Your EMI option:</div><br/>
-
 
171
						<form id="emiSelection" name="emiSelection" action="/order" method="post" onsubmit="return verifyPaymentModeSelectionForm('emiSelection')">
170
						<form id="emiSelection" name="emiSelection" action="/order" method="post" onsubmit="return verifyPaymentModeSelectionForm('emiSelection')">
172
							<input type="hidden" name="addressid" id="addressid" value="$adrressId"/>
171
							<input type="hidden" name="addressid" id="addressid" value="$adrressId"/>
173
							<div style="margin-left:100px; margin-top:10px; margin-bottom:20px">
172
							<div style="margin-left:100px; margin-top:10px; margin-bottom:20px">
174
								<div class="options">
173
								<div class="options" style="height:auto;float:left">
175
									<input type="radio" name="payment_option" value="2020" class="marginRight5px"/>
174
									<span style="padding: 0px 8px 0px 0px; font-size: 14px; font-weight: bold;">Select Bank</span>
176
									<span class="cctext">3-months EMI for HDFC Bank Credit Cards</span>
175
									<ol class="bank-name" id="bank-name" name="bankname">
177
									<br/>
176
									</ol>
-
 
177
									<!--<select id="bank-name" name="bankname">
-
 
178
                                    </select>-->
-
 
179
                                    <!--<div id="no-options" style="display:none">Sorry, no EMI options available for this bank.</div>-->
178
								</div>
180
								</div>
-
 
181
								<br><br>
-
 
182
								<div class="options" style="height:auto;float:left">
-
 
183
									<span style="padding: 0px 8px 0px 0px; font-size: 14px; font-weight: bold;">Select Plan</span>
-
 
184
									<table id="emi-options">
-
 
185
										<thead>
-
 
186
											<tr>
-
 
187
												<th>&nbsp;</th>
-
 
188
	                                            <th>EMI Plan</th>
-
 
189
	                                            <th style="width:90px;text-align:center">Processing Fee*</th>
-
 
190
												<th style="width:90px;text-align:center">Monthly Installment</th>
-
 
191
												<th style="width:75px;text-align:center">Total Amount</th>
-
 
192
	                                        </tr>
-
 
193
	                                    </thead>
-
 
194
										<tbody>
-
 
195
	                                    </tbody>
-
 
196
	                                </table>
-
 
197
	                                <span style="padding-left:10px">*Inculsive of all taxes.</span>
179
								
198
								</div>
-
 
199
                                
180
							</div>
200
							</div>
181
							<div style="text-align:center;">
201
							<div style="text-align:center;clear:left">
-
 
202
								<div style="font-size:15px;font-weight:bold;padding:5px">Total Amount : <span class="rupee-icon mk_total_amount"></span></div>
182
    							<input type="submit" value="MAKE PAYMENT" class="make-payment-button"/>
203
    							<input type="submit" value="MAKE PAYMENT" class="make-payment-button"/>
183
								<br/><br/>
204
								<br/><br/>
184
								<b>You will be taken to our Bank&apos;s payment gateway for making this payment.</b>
205
								<b>You will be taken to our Bank&apos;s payment gateway for making this payment.</b>
185
							</div>
206
							</div>
186
						</form>
207
						</form>
Line 535... Line 556...
535
 
556
 
536
#include("templates/footer.vm")
557
#include("templates/footer.vm")
537
 
558
 
538
#include ( "templates/commonjsfiles.vm" )
559
#include ( "templates/commonjsfiles.vm" )
539
<script language="javascript" type="text/javascript" src="/js/proceed-to-pay.js"></script>
560
<script language="javascript" type="text/javascript" src="/js/proceed-to-pay.js"></script>
-
 
561
<script language="javascript" type="text/javascript">
-
 
562
	emiOptions = $action.getJSONEmiSchemes();
-
 
563
	banks = {};
-
 
564
	jQuery.each(emiOptions, function(index, opt) {
-
 
565
		if(typeof banks[opt.bankId] == "undefined") {
-
 
566
			banks[opt.bankId] = {};
-
 
567
			banks[opt.bankId].name =  opt.bankName;
-
 
568
			banks[opt.bankId].emis =  {};
-
 
569
			banks[opt.bankId].active =  true;
-
 
570
		}
-
 
571
		var bank = banks[opt.bankId];
-
 
572
		var bankTenure = {};
-
 
573
		bankTenure.tenureDescription = opt.tenureDescription;
-
 
574
		if (opt.chargeType = "FIXED") {	
-
 
575
			bankTenure.emiProcessingCharge = opt.chargeValue;
-
 
576
		} else {
-
 
577
			bankTenure.emiProcessingCharge = Math.ceil((opt.chargeValue * $action.getTotalAmountL())/100);  
-
 
578
		}
-
 
579
		bankTenure.totalAmount = $action.getTotalAmountL() + bankTenure.emiProcessingCharge;  
-
 
580
		bankTenure.monthlyEmi =  Math.ceil(bankTenure.totalAmount/opt.tenure);
-
 
581
		bank.emis[opt.id] = bankTenure;
-
 
582
	});
-
 
583
	//This code shall be removed when all banks go live
-
 
584
	banks[1].top = -88;
-
 
585
	banks[2] = {};
-
 
586
	banks[2].name =  "Axis Bank";
-
 
587
	banks[2].emis =  {};
-
 
588
	banks[2].active =  false;
-
 
589
	banks[2].top =  0;
-
 
590
	banks[3] = {};
-
 
591
	banks[3].name =  "ICICI Bank";
-
 
592
	banks[3].emis =  {};
-
 
593
	banks[3].active =  false;
-
 
594
	banks[3].top =  -110;
-
 
595
/*	banks[6] = {};
-
 
596
	banks[6].name =  "Standar Chartered Bank";
-
 
597
	banks[6].emis =  {};
-
 
598
	banks[6].active =  false;
-
 
599
	banks[7] = {};
-
 
600
	banks[7].name =  "HSBC Bank";
-
 
601
	banks[7].emis =  {};
-
 
602
	banks[7].active =  false;
-
 
603
	banks[8] = {};
-
 
604
	banks[8].name =  "Kotak Bank";
-
 
605
	banks[8].emis =  {};
-
 
606
	banks[8].active =  false;*/
-
 
607
	banks[9] = {};
-
 
608
	banks[9].name =  "SBI Bank";
-
 
609
	banks[9].emis =  {};
-
 
610
	banks[9].active =  false;
-
 
611
	banks[9].top =  -177;
-
 
612
	
-
 
613
	
-
 
614
</script>
540
</body>
615
</body>
541
</html>
616
</html>
542
	
617