Subversion Repositories SmartDukaan

Rev

Rev 1688 | Rev 2012 | 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
147
                <tr align="right">
148
                  <td colspan="5" class="total-amount">
149
                    <img src="/images/nav-img/free_shipping_cart.png" alt="free shipping" width="147" height="24" /><span id="totalAmount">Total Amount: Rs. $totalamount </span>
150
                  </td>
151
                </tr>
152
				#if($couponcode != "")
153
                <tr align="right">
154
                  <td colspan="5" class="discounted-amount">
155
                    <span id="discountedAmount">Amount after Discount: Rs. $discountedAmount </span>
156
                  </td>
157
                </tr>
158
				#end
159
              </tbody>
160
            </table>
161
          </form>
162
        </div>
163
        <!-- Table End-->
164
        <div class="clearBoth"></div>
165
      </div>
166
      <!-- Block 1 End-->
167
      <div class="clearBoth"></div>
168
      <div class="padding-top17">
169
        <div class="cart-checkout">
170
          <div class="bigImgButton yellow-image">
171
                  <!-- <input type="submit" name="" onClick="javascript:document.myCart.submit();"  id="" value="Checkout " class="button" /> -->
172
                  <a href="./shipping" class="button">Checkout</a>
173
          </div>
174
        </div>
175
      </div>
176
      <br />
177
	  <form id="frmCouponCode" action="/promotion" method="post">
178
		Coupon Code 
179
		<input id="couponCode" type="text" name="coupon_code" size="12" value="$couponcode" />&nbsp;
180
		<input type="hidden" name="action" id="couponAction" /> &nbsp;
181
		<a id="applyCoupon" href="#">Apply</a>&nbsp;&nbsp;
182
		#if($couponcode != "")
183
        <a id="removeCoupon" href="#">Remove</a>&nbsp;&nbsp;
184
		#end
185
      </form>
186
		#set($messages = $action.getActionErrors())
187
 
188
		#if($messages && $messages.size() != 0)
189
		<p id="messageError">
190
			#foreach($message in $messages)
191
				$message <br>
192
			#end
193
		</p>
194
		#end
195
    </div>
196
    <!-- mid inner end-->
197
  </div>
198
  <div class="bottom">
199
    <div class="left">
200
      <div class="right"> &nbsp; </div>
201
    </div>
202
  </div>
203
</div>
204
<!-- /Add Shipping Detail End-->
205
#else
206
<div id="registration">
207
  <div class="top">
208
    <div class="left">
209
      <div class="right"> &nbsp; </div>
210
    </div>
211
  </div>
212
  <div class="middle">
213
    <div class="mid-inner">
214
      <div id="emptyCart">
215
        <!-- empty cart -->
216
        <div id="emptyCart">
217
          <img src="images/empty-cart.jpg" width="183" height="179" alt="" />
218
          <br />
219
          <p>
220
            <strong>Your cart is currently empty!</strong> <span>Please add items to cart.</span>
221
          </p>
222
          <br />
223
          <a href="/home">Back to Home</a>
224
        </div>
225
        <!-- /empty cart -->
226
      </div>
227
    </div>
228
  </div>
229
  <div class="bottom">
230
    <div class="left">
231
      <div class="right"> &nbsp; </div>
232
    </div>
233
  </div>
234
</div>
235
#end	
236
		<!-- /Cart Details -->
410 rajveer 237
 
507 rajveer 238
   		<div class="clearBoth"></div>
239
    </div><!-- /main -->
240
 
241
	 $action.getFooterSnippet()
943 vikas 242
 
243
#include ( "templates/commonjsfiles.vm" )
978 chandransh 244
<script language="javascript" src="/js/cart-details.js" type="text/javascript"></script>
410 rajveer 245
</body>
1688 rajveer 246
</html>