Subversion Repositories SmartDukaan

Rev

Rev 1981 | Rev 2013 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
410 rajveer 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
507 rajveer 5
 
6
<!-- Prevent MS Office toolbar from changing layout -->
7
<meta http-equiv="imagetoolbar" content="false">
8
<meta name="MSSmartTagsPreventParsing" content="true">
9
 
793 rajveer 10
<title>Saholic</title>
507 rajveer 11
 
12
<!-- start of new code -->
13
 
1688 rajveer 14
 #set($currentUrl = $request.getRequestURL().toString()) 
15
 #if(!$currentUrl.startsWith("http://www.")) #set($currentUrl = $currentUrl.replace("http://", "http://www."))  #end  
16
 <link rel="canonical" href="$currentUrl" /> 
17
 #include ( "templates/commoncssfiles.vm" )  
507 rajveer 18
 
19
</head>
413 rajveer 20
 
507 rajveer 21
<body>
22
	<noscript>
23
		<p id="noScript">Please allow <em>Javascript</em> in order to function this website correctly!</p>
24
	</noscript>
413 rajveer 25
 
507 rajveer 26
	$action.getHeaderSnippet()			
27
     <!-- Wrapper start -->
28
	<div id="main">
29
		$action.getMainMenuSnippet()
30
		$action.getSearchBarSnippet()
413 rajveer 31
 
507 rajveer 32
		<!-- wrapper-->
33
		<div id="wrapper">
1981 varun.gupt 34
			<!-- Product detail -->
35
			<div id="productDetail">
36
				<div class="top">
37
					<div class="left">
38
						<div class="right"> &nbsp; </div>
39
					</div>
40
				</div>
41
				<div class="middle">
42
					<div class="content">
43
						<ul id="midtop-leftNav">
44
							<li><a class="current"><span class="cart">Cart Checkout</span></a></li>
45
							<li>|</li>
46
							<li><a><span class="shipping">My Shipping Details</span></a></li>
47
							<li>|</li>
48
							<li><a><span class="payment">Payment</span></a></li>
49
						</ul>
50
						<div class="clearBoth"></div>
51
					</div>
52
				</div>
53
				<div class="bottom">
54
					<div class="left">
55
						<div class="right"> &nbsp; </div>
56
					</div>
57
				</div>
58
			</div>
507 rajveer 59
        </div>
60
		<!-- /wrapper-->
61
 
62
		<!-- sidebar-->
63
		<div id="sidebar">
64
			$action.getCustomerServiceSnippet()
410 rajveer 65
		</div>
507 rajveer 66
		<div class="clearBoth"></div>
67
		<!-- /sidebar-->
413 rajveer 68
 
1981 varun.gupt 69
		<!-- Cart Details -->
70
		#set($items = $action.getCartItems())
71
		#if($items)
72
 
73
			#set($totalamount = $action.getTotalAmount())
74
			#set($pincode = $action.getPinCode())
75
			#set($couponcode = $action.getCouponCode())
76
			#set($discountedAmount = $action.getDiscountedAmount())
77
			#set($errorMsg  = $action.getErrorMsg())
78
<div id="registration">
79
  <div class="top">
80
    <div class="left">
81
      <div class="right"> &nbsp; </div>
82
    </div>
83
  </div>
84
  <div class="middle">
85
    <div class="mid-inner">
86
      <!-- Block 1 -->
87
      <div class="padding-top17">
88
        <p style="color:red;display:inline;"> $errorMsg</p>
89
        <div class="cart-checkout">
90
          <div class="bigImgButton yellow-image">
91
                  <a href="./shipping" class="button">Checkout</a>
92
                  <!--<input type="button" onClick="javascript:document.myCart.submit();" name=""  id="" value="Checkout " class="button" />-->
93
          </div>
94
        </div>
95
        <div class="clearBoth"></div>
96
        <!-- Table-->
97
        <div>
98
          <form name="myCart" id="myCart" method="post" action="shipping">
99
            <table cellpadding="0" cellspacing="0" width="100%" class="estimate-table" id="cartTable" >
100
              <thead>
101
                <tr>
102
                  <th width="33%">Item</th>
103
                  <th width="18%" class="shipTo"> <span class="floatLeft">Ships to</span>
104
                    <div class="cart-header-textbox textbox-image">
105
                            <input type="text" id="zipcode" name="zipcode" value="$pincode" class="textbox" maxlength="6" onblur="changeEstimate()" />
106
                    </div></th>
107
                  <th width="15%">Unit Price</th>
108
                  <th width="14%" class="quantity">Qty.</th>
109
                  <th class="last">Total Price</th>
110
                </tr>
111
              </thead>
112
              <tbody>
113
				#foreach($item in $items)
114
                <tr>
115
                  <td class="phone-content">
116
                    <span id="$item.get("ITEM_ID")" class="pro">
117
                          <div>
118
                          <img src="/images/$item.get("CATALOG_ID")/thumbnail.jpg" alt="phone" />
119
                          </div>
120
                      <span>$item.get("ITEM_NAME")</span>
121
                    </span>
122
                  </td>
123
                  <!-- <td>within $item.get("SHIPPING_TIME") hours</td> -->
124
                  <td>
125
                    <div id="shipTime">
126
                      <span id="shipping_time_$item.get("ITEM_ID")">within <span id="days_$item.get("ITEM_ID")"> $item.get("SHIPPING_TIME")</span> business days</span>
127
                    </div>
128
                  </td>
129
                  <td>
130
                    Rs. $item.get("SELLING_PRICE")
131
                  </td>
132
                  <td class="quantity">
133
                  <div class="quantity-inner-content">
134
                    <div class="cart-item-textbox textbox-image">
135
                            <input type="text" id="cart-item-quantity" name="" value=$item.get("ITEM_QUANTITY")  onblur=changeQty(this,'itemPrice$velocityCount','totalPrice$velocityCount') class="textbox" />
136
                     </div>
137
                    <img class="remove-quantitybttn"  src="/images/nav-img/remove.png" />
138
                    </div>
139
                  </td>
140
                  <td id="totalPrice$velocityCount">
141
                    Rs. $item.get("TOTAL_PRICE")
142
                    <input type="hidden"  value="$velocityCount" name="itemID$velocityCount" id="itemID$velocityCount" />
143
                    <input type="hidden"  value=$item.get("SELLING_PRICE") name="itemPrice$velocityCount" id="itemPrice$velocityCount" />
144
                  </td>
145
                </tr>
146
				#end
2012 varun.gupt 147
 
148
				#if($couponcode != "")
149
					#set($styleTotalAmount = "total-amount")
150
				#else
151
					#set($styleTotalAmount = "discounted-amount")
152
				#end
1981 varun.gupt 153
                <tr align="right">
154
                  <td colspan="5" class="total-amount">
2012 varun.gupt 155
                    <img src="/images/nav-img/free_shipping_cart.png" alt="free shipping" width="147" height="24" />
156
					<span class="$styleTotalAmount">Total Amount: Rs. $totalamount </span>
1981 varun.gupt 157
                  </td>
158
                </tr>
159
				#if($couponcode != "")
160
                <tr align="right">
161
                  <td colspan="5" class="discounted-amount">
2012 varun.gupt 162
                    <span id="discountedAmount">Amount Payable (After Discount): Rs. $discountedAmount </span>
1981 varun.gupt 163
                  </td>
164
                </tr>
165
				#end
166
              </tbody>
167
            </table>
168
          </form>
169
        </div>
170
        <!-- Table End-->
171
        <div class="clearBoth"></div>
172
      </div>
173
      <!-- Block 1 End-->
174
      <div class="clearBoth"></div>
175
      <div class="padding-top17">
176
        <div class="cart-checkout">
177
          <div class="bigImgButton yellow-image">
178
                  <!-- <input type="submit" name="" onClick="javascript:document.myCart.submit();"  id="" value="Checkout " class="button" /> -->
179
                  <a href="./shipping" class="button">Checkout</a>
180
          </div>
181
        </div>
182
      </div>
183
      <br />
184
	  <form id="frmCouponCode" action="/promotion" method="post">
185
		Coupon Code 
186
		<input id="couponCode" type="text" name="coupon_code" size="12" value="$couponcode" />&nbsp;
187
		<input type="hidden" name="action" id="couponAction" /> &nbsp;
188
		<a id="applyCoupon" href="#">Apply</a>&nbsp;&nbsp;
189
		#if($couponcode != "")
190
        <a id="removeCoupon" href="#">Remove</a>&nbsp;&nbsp;
191
		#end
192
      </form>
193
		#set($messages = $action.getActionErrors())
194
 
195
		#if($messages && $messages.size() != 0)
196
		<p id="messageError">
197
			#foreach($message in $messages)
198
				$message <br>
199
			#end
200
		</p>
201
		#end
202
    </div>
203
    <!-- mid inner end-->
204
  </div>
205
  <div class="bottom">
206
    <div class="left">
207
      <div class="right"> &nbsp; </div>
208
    </div>
209
  </div>
210
</div>
211
<!-- /Add Shipping Detail End-->
212
#else
213
<div id="registration">
214
  <div class="top">
215
    <div class="left">
216
      <div class="right"> &nbsp; </div>
217
    </div>
218
  </div>
219
  <div class="middle">
220
    <div class="mid-inner">
221
      <div id="emptyCart">
222
        <!-- empty cart -->
223
        <div id="emptyCart">
224
          <img src="images/empty-cart.jpg" width="183" height="179" alt="" />
225
          <br />
226
          <p>
227
            <strong>Your cart is currently empty!</strong> <span>Please add items to cart.</span>
228
          </p>
229
          <br />
230
          <a href="/home">Back to Home</a>
231
        </div>
232
        <!-- /empty cart -->
233
      </div>
234
    </div>
235
  </div>
236
  <div class="bottom">
237
    <div class="left">
238
      <div class="right"> &nbsp; </div>
239
    </div>
240
  </div>
241
</div>
242
#end	
243
		<!-- /Cart Details -->
410 rajveer 244
 
507 rajveer 245
   		<div class="clearBoth"></div>
246
    </div><!-- /main -->
247
 
248
	 $action.getFooterSnippet()
943 vikas 249
 
250
#include ( "templates/commonjsfiles.vm" )
978 chandransh 251
<script language="javascript" src="/js/cart-details.js" type="text/javascript"></script>
410 rajveer 252
</body>
1688 rajveer 253
</html>