Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
713 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>
3830 chandransh 4
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5
	<!-- Prevent MS Office toolbar from changing layout -->
6
	<meta http-equiv="imagetoolbar" content="false" />
7
	<meta name="MSSmartTagsPreventParsing" content="true" />
8
	<title>Saholic</title>
9
#include ( "templates/commoncssfiles.vm" )
10
#set($total_amount = 0.0)
713 rajveer 11
</head>
12
 
13
<body>
14
	<noscript>
15
		<p id="noScript">Please allow <em>Javascript</em> in order to function this website correctly!</p>
16
	</noscript>
1067 varun.gupt 17
 
18
	$action.getHeaderSnippet()
3830 chandransh 19
 
20
<div id="main">
21
	<div class="main-content">
22
		<div id="cartFlowHeader">
23
			<div class="left cartflow-header-tab lefttab-inactive inactive-tab-font">
24
				<span class="counter-inactive">1</span>
25
				<span class="label">Cart Details</span>
1067 varun.gupt 26
			</div>
3830 chandransh 27
			<div class="left cartflow-header-tab midtab-inactive left-overlap inactive-tab-font">
28
				<span class="counter-inactive">2</span>
29
				<span class="label">Shipping Info.</span>
30
			</div>
31
			<div class="left cartflow-header-tab midtab-inactive left-overlap inactive-tab-font">
32
				<span class="counter-inactive">3</span>
33
				<span class="label">Make Payment</span>
34
			</div>
35
			<div class="left cartflow-header-tab righttab-active left-overlap active-tab-font">
36
				<span class="counter-active">4</span>
37
				<span class="label">Order Status</span>
38
			</div>
719 rajveer 39
		</div>
3830 chandransh 40
 
41
		<!-- Cart Details -->
42
	#set($orders = $action.getOrders())
43
	#set($cod = false)
44
 
45
		#if($orders && $orders.size() != 0)
46
		<div id="cart" class="blue-border">
47
			<div id="shippingEstimateCalculator" class="left">
48
				<span class="label left orange congrats">Congratulations! &nbsp;</span><span class="label left" style="font-size:13px; font-weight:bold; color:#333333">$action.getMessage()</span>
49
            </div>
50
			<div id="checkout" class="cartflow-main-action-button right"><a href="/myaccount">VIEW ALL ORDERS <img src="/images/Arrow_OrangeButton_AllScreens.png"/></a></div>
51
			<table id="cartDetail" cellpadding="0" cellspacing="0" class="left">
52
				<thead>
53
					<tr>
54
						<th width="100" class="first" style="text-align: center;"><b>ORDER ID</b></th>
55
						<th width="242">Item &amp; Color</th>
56
						<th width="140">Unit Price</th>
57
						<th width="110">Quantity</th>
58
						<th width="140">Total Price</th>
59
						<th width="200">Order Status</th>
60
                    </tr>
61
                </thead>
62
				<tbody>
63
 
1077 varun.gupt 64
				#foreach($order in $orders)
65
					#set($lineitems = $order.getLineitems())
66
					#foreach($lineitem in $lineitems)
67
						#set($total_price = $lineitem.getTotal_price())
68
						#set($total_amount = $total_amount + $total_price)
69
							<tr>
3830 chandransh 70
								<td class="ordercolumn">
3075 chandransh 71
									<a href="/order/$order.getId()">$order.getId()</a>
72
									#if($order.isCod())
73
            							#set($cod=true)
74
            							<sup>*</sup>
75
									#end
76
								</td>
3830 chandransh 77
								<td>
78
 
79
        							<div class="cart-item-name-div">
80
                                        <span class="cart-item-name">
81
											#if($lineitem.getBrand()) $lineitem.getBrand() #end
82
											#if($lineitem.getModel_name()) $lineitem.getModel_name() #end
83
											#if($lineitem.getModel_number())  $lineitem.getModel_number() #end
84
										</span>
85
                                        <br/>
86
        								<span class="cart-item-color">
87
											#if($lineitem.getColor())
88
											Color - $lineitem.getColor()
89
											#end
90
										</span>
91
                                    </div>
1077 varun.gupt 92
								</td>
3830 chandransh 93
								<td><img src="/images/rupee-symbol.png" alt="Rs." /> $action.formatPrice($lineitem.getUnit_price())</td>
1331 varun.gupt 94
								<td>$lineitem.getQuantity().intValue()</td>
3830 chandransh 95
								<td><img src="/images/rupee-symbol.png" alt="Rs." /> $action.formatPrice($total_price)</td>
1077 varun.gupt 96
								<td>
3075 chandransh 97
            					#if($order.getStatus().getDescription())
98
            						$order.getStatus().getDescription()
99
            					#end
1077 varun.gupt 100
								</td>
101
							</tr>
1067 varun.gupt 102
									#end
103
								#end
3830 chandransh 104
                </tbody>
105
            </table>
106
			<table class="net-amount right" style="margin-bottom: 30px" cellspacing="0">
107
				<tr class="total-amount payable">
108
					<td class="label">Total Amount:</td>
109
					<td><img src="/images/rupee-symbol.png" alt="Rs." /> $action.formatPrice($total_amount)</td>
110
                </tr>
111
            </table>
112
			#if($cod)
113
    		<div id="shippingEstimateCalculator" class="left" style="padding: 15px 10px 15px 10px">
114
    			<span class="label left" style="font-size:13px; font-weight:bold; color:#333333"><sup>*</sup>Our Executive will give you a call to confirm your order.</span>
115
    		</div>
116
    		#end
713 rajveer 117
		</div>
3830 chandransh 118
		#else
119
    	<div id="registration" class="blue-border">
120
    		<div class="middle">
121
    			<div class="mid-inner">
122
    				<div id="emptyCart">
123
    					<!-- empty cart -->
124
    					<div id="emptyCart">
125
    						<p>
126
    							<strong>
127
									Due to some error we are unable to display your details.
128
									Please check <a href="/myaccount">My Account</a> page to see the order confirmation status.
129
								</strong>
130
    						</p>
131
    					</div>
132
    					<!-- /empty cart -->
133
    				</div>
134
    			</div>
135
    		</div>
136
    	</div>
137
		#end	
138
 
139
 
140
 
141
 
142
		<!-- /Cart Details -->
713 rajveer 143
	</div>
3830 chandransh 144
</div>
1067 varun.gupt 145
 
3830 chandransh 146
#include("templates/footer.vm")
3111 vikas 147
 
3830 chandransh 148
#include ( "templates/commonjsfiles.vm" )
3840 vikas 149
 
150
    <script type="text/javascript" charset="utf-8">
151
        #set($orders = $action.getOrders())
152
        #if($orders && $orders.size() != 0)
153
            #foreach($order in $orders)
154
                if(typeof _gaq != "undefined" && _gaq != null)  {
155
                    _gaq.push(['_addTrans',
156
                       '$order.getId()',                // order ID - required
157
                       'Saholic',                       // affiliation or store name
158
                       '$order.getTotal_amount()',      // total - required
159
                       '0',                             // tax
160
                       '0',                             // shipping
161
                       '$order.getCustomer_city()',     // city
162
                       '$order.getCustomer_state()',    // state or province
163
                       'INDIA'                          // country
164
                    ]);
165
                #set($lineitems = $order.getLineitems())
166
                #foreach($lineitem in $lineitems)
167
                    var prod_name = '';
168
                    #if($lineitem.getBrand()) 
169
                        prod_name += '$lineitem.getBrand()'; 
170
                    #end
171
                    #if($lineitem.getModel_name()) 
172
                        prod_name += ' $lineitem.getModel_name()'; 
173
                    #end
174
                    #if($lineitem.getModel_number()) 
175
                        prod_name += ' $lineitem.getModel_number()'; 
176
                    #end
177
                    _gaq.push(['_addItem',
178
                        '$order.getId()',            // order ID - required
179
                        '$lineitem.getItem_id()',    // SKU/code - required
180
                        prod_name,                   // product name
181
                        '$lineitem.getColor()',      // category or variation
182
                        '$lineitem.getUnit_price()', // unit price - required
183
                        '$lineitem.getQuantity()'    // quantity - required
184
                    ]);
185
                #end
186
                    _gaq.push(['_trackTrans']);
187
                }
188
            #end
189
        #end
190
    </script>
191
 
192
 
193
    <!-- Google Code for AdwordsPurchase Conversion Page -->
194
    <script type="text/javascript" charset="utf-8">
195
        /* <![CDATA[ */
196
        var google_conversion_id = 979811816;
197
        var google_conversion_language = "en";
198
        var google_conversion_format = "3";
199
        var google_conversion_color = "ffffff";
200
        var google_conversion_label = "t9j-CID2lQMQ6Pua0wM";
201
        if ($total_amount) {
202
            var google_conversion_value = $total_amount;
203
        }
204
        /* ]]> */
205
    </script>
206
    <script language="javascript" type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js"></script>
207
 
208
    <!-- Ohana Conversion Code -->
209
    <!-- DO NOT MODIFY THIS TAG IN ANY WAY -->
210
    <!-- Place your logic to get the revenue from the page & pass as an argument to the conversion script -->
211
    <script language="javascript" type="text/javascript" src='http://bsrv.adohana.com/ohana/conversion.js?id=112&r=0'></script>
212
    <!-- Fill info array as "Product ID,,Product Name,,Quantity,,Product Price" --> 
213
    <script type="text/javascript" language='javascript'>
214
        var info = [];
215
        #set($orders = $action.getOrders())
216
        #if($orders && $orders.size() != 0)
217
            #foreach($order in $orders)
218
                #set($lineitems = $order.getLineitems())
219
                #foreach($lineitem in $lineitems)
220
                    var prod_name = '';
221
                    #if($lineitem.getBrand()) 
222
                        prod_name += '$lineitem.getBrand()'; 
223
                    #end
224
                    #if($lineitem.getModel_name()) 
225
                        prod_name += ' $lineitem.getModel_name()'; 
226
                    #end
227
                    #if($lineitem.getModel_number()) 
228
                        prod_name += ' $lineitem.getModel_number()'; 
229
                    #end
230
                    info.push('$lineitem.getItem_id(),,' + prod_name + ',,$lineitem.getQuantity(),,0') 
231
                #end
232
            #end
233
        #end
234
        trackProductInfo('6e1310f31fc4c8aaf869c94be5d61d03',info); 
235
    </script>
236
    <!-- End of Conversion tag -->
237
 
238
    <noscript>
239
        <div style="display:inline;">
240
            <img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/979811816/?label=t9j-CID2lQMQ6Pua0wM&amp;guid=ON&amp;script=0"/>
241
        </div>
242
    </noscript>
713 rajveer 243
</body>
1688 rajveer 244
</html>