Rev 4225 | Rev 5040 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#set($Integer = 0)#if($defaultAddressId)#set($defaultid = $Integer.parseInt($defaultAddressId))#else#set($defaultid = 0)#end#if(!$errorMsg.isEmpty())<div id="messageError"><span></span><p>$errorMsg <br/></p></div>#end<div class="free-shipping left"><div class="label">Shipping to your area is <span class="orange">FREE</span>.</div><div class="payment-modes-msg">We accept all <b>credit / debit cards</b> and <b>netbanking facilities</b>. You can also pay <b>Cash on Delivery</b>.</div></div><form id="formProceedToPay" action="/proceed-to-pay" method="post"><input type="hidden" value="$defaultid" name="addressid" id="addressid"></form><div id="proceedToPay" class="cartflow-main-action-button right">PROCEED TO PAYMENT ></div>#if($items)<div class="cart-container left"><table id="cartDetail" cellpadding="0" cellspacing="0" class="left"><thead><tr><th width="212" class="first">Item & Color</th><th width="117">Delivery Time</th><th width="99">Total Price </th></tr></thead><tbody>#foreach($item in $items)#if($item.get("SHIPPING_TIME") == -1)#set($locationServiceable = 0)#set($messageShippingTime = "Location not serviceable")#else#set($locationServiceable = 1)#set($messageShippingTime = $item.get("SHIPPING_TIME") + " Bus. Days")#end<tr><td><div class="cart-item-name-div padding5"><span class="cart-item-name">$item.get("ITEM_NAME")</span><br/><span class="cart-item-color">$item.get("ITEM_COLOR")</span>#if($item.get("BEST_DEAL_TEXT"))<div class="cart-item-best-deal-text">$item.get("BEST_DEAL_TEXT")</div>#end</div></td><td id="shipping_time_$item.get("ITEM_ID")">$messageShippingTime</td><td><img src="/images/rupee-symbol.png" alt="Rs." />$item.get("TOTAL_PRICE")<br />(for $item.get("ITEM_QUANTITY") pcs)</td></tr>#end</tbody></table><table class="right net-amount" cellspacing="0"><tr><td class="label">SHIPPING:</td><td class="orange">FREE</td></tr>#if($couponcode != "")#set($cssClass = "")#else#set($cssClass = "payable")#end<tr class="total-amount $cssClass"><td class="label">Total Amount:</td><td><img src="/images/rupee-symbol.png" alt="Rs." /> $totalamount</td></tr>#if($couponcode != "")<tr class="discounted-amount payable"><td class="label">Amount Payable<br />(After Discount):</td><td><img src="/images/rupee-symbol.png" alt="Rs." /> $discountedamount</td></tr>#end</table></div>#end<table id="addresses" class="right" cellspacing="0" cellpadding="2"><thead><tr><td colspan="3"><div class="label left">Select Shipping Address</div><button id="addAddress" class="new-button right">+ Add New Address</button></td></tr></thead><tbody>#set($shipAddressEmpty = 1)#foreach($address in $addresses)#set($shipAddressEmpty = 0)#set($addressId = $address.getId())#if($defaultid == $addressId)#set($cssClassDefault = "default-address")#else#set($cssClassDefault = "")#end<tr id="tr_$address.getId()" class="address $cssClassDefault"><td align="center" valign="top" class="radio">#if($defaultid == $addressId)#set($shipAddressEmpty = 0)<img src="/images/RadioButton_Selected.png" />#else<img id="selectAddress_$addressId" class="button-address-select" src="/images/RadioButton_Unselected.png" title="Select this Address for Shipment" /><form id="formChangeAddressTo_$addressId" method="post" action="/shipping?action=change&addressid=$addressId"></form>#end</td><td class="detail"><b>SHIP ITEMS TO THIS ADDRESS</b><p>#if($address.getName())<b>$address.getName()</b><br />#end#if($address.getLine1())<label>$address.getLine1() </label><br />#end#if($address.getLine2() != "")<label>$address.getLine2()</label><br />#end#if($address.getCity())<label>$address.getCity()</label><br />#end#if($address.getState())<label>$address.getState()</label><br />#end#if($address.getPin())<label>Pin: $address.getPin()</label>#end</p>#if($address.getPhone())<b>Phone: $address.getPhone() </b>#end</td><td class="delete"><img id="delete_$addressId" class="delete-address" src="/images/Cross_DeleteRow_DEF.png" title="Delete this Address"/></td></tr>#end#if($shipAddressEmpty!=0)<tr><td colspan="2">You do not have a shipping address linked to your profile. Please add one.</td></tr>#end<input type="hidden" id="addressEmpty" value="$shipAddressEmpty"></tbody></table>#if($shipAddressEmpty == 1)<input type="hidden" id="canProceedToPay" value="0" /><input type="hidden" id="reasonActionDisability" value="Please specify a shipping address" />#elseif($locationServiceable == 0)<input type="hidden" id="canProceedToPay" value="0" /><input type="hidden" id="reasonActionDisability" value="Location not serviceable. Please specify a different address" />#else<input type="hidden" id="canProceedToPay" value="1" />#end<!-- Add Shipping Detail Start--><form name="frmShippingAddress" id="frmShippingAddress" method="post" action="/shipping" class="right"><table cellpadding="0" cellspacing="0"><thead><tr class="header"><td colspan="2">Enter the shipping address where you want the items to be delivered</td></tr></thead><tbody><tr><td> </td><td class="instruction">All Fields are required</td></tr><tr><td class="label" align="right"><sup>*</sup>Name:</td><td class="input"><input type="text" id="shipName" name="name" class="searchbox right" /></td></tr><tr><td class="label" align="right"><sup>*</sup>Address Line 1:</td><td class="input"><input type="text" id="shipAddress1" name="line1" class="searchbox right" /></td></tr><tr><td class="label" align="right">Address Line 2:</td><td class="input"><input type="text" id="shipAddress2" name="line2" class="searchbox right" /></td></tr><tr><td class="label" align="right"><sup>*</sup>State</td><td class="input"><select class="select_state" name="state" id="shipState">#include("templates/stateslist.vm")</select></td></tr><tr><td class="label" align="right"><sup>*</sup>City:</td><td class="input"><input type="text" id="shipCity" name="city" class="searchbox"/></td></tr><tr><td class="label" align="right"><sup>*</sup>Pin Code:</td><td class="input"><input type="text" id="shipPin" name="pincode" value="" class="searchbox textbox-pincode" /></td></tr><tr><td class="label" align="right"><sup>*</sup>Phone:</td><td class="input"><input type="text" id="shipPhone" name="phone" value="" class="searchbox right" /></td></tr><tr><td colspan="2" align="center"><input type="hidden" name="action" value="add" /><input type="submit" id="submitAddress" value="Save Address" class="new-button" /><a id="closeAddAddressForm">Clear</a></td></tr><tr><td> </td><td class="instruction">This will be added to your list of shipping addresses</td></tr></tbody></table></form>