Version Notes
Stable release with bug fixes.
Download this release
Release Info
Developer | Netsol |
Extension | Netsolutions_Offlineordertrack |
Version | 1.1.7 |
Comparing to | |
See all releases |
Code changes from version 1.1.6 to 1.1.7
- app/code/community/Netsolutions/Offlineordertrack/controllers/TrackingController.php +82 -27
- app/code/community/Netsolutions/Offlineordertrack/etc/adminhtml.xml +1 -1
- app/code/community/Netsolutions/Offlineordertrack/etc/config.xml +1 -1
- app/code/community/Netsolutions/Offlineordertrack/sql/ot_setup/{mysql4-install-1.1.6.php → mysql4-install-1.1.7.php} +0 -0
- app/code/community/Netsolutions/Offlineordertrack/sql/ot_setup/mysql4-upgrade-1.1.6-1.1.7.php +3 -0
- app/design/frontend/base/default/template/netsolutions/offlineordertrack/email/mail.phtml +13 -0
- app/design/frontend/base/default/template/netsolutions/offlineordertrack/track.phtml +126 -0
- app/design/frontend/base/default/template/netsolutions/offlineordertrack/view.phtml +400 -0
- package.xml +5 -5
app/code/community/Netsolutions/Offlineordertrack/controllers/TrackingController.php
CHANGED
@@ -38,9 +38,24 @@ class Netsolutions_Offlineordertrack_TrackingController extends Mage_Core_Contro
|
|
38 |
|
39 |
if(!empty($getOrderData)){
|
40 |
$cEmail = $order->getCustomerEmail();
|
41 |
-
$billing = $order->getBillingAddress();
|
|
|
42 |
$zipcode = $billing->getPostcode();
|
43 |
$phonenumber = $billing->getTelephone();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
$fieldTodisplayemail = Mage::getStoreConfig('netsolconfig/netsol_group/netsol_email');
|
46 |
$fieldTodisplayzipcode = Mage::getStoreConfig('netsolconfig/netsol_group/netsol_zipcode');
|
@@ -65,7 +80,9 @@ class Netsolutions_Offlineordertrack_TrackingController extends Mage_Core_Contro
|
|
65 |
|
66 |
if($condition != '') {
|
67 |
$response['orderdetail_header'] .='<tr><th>Items</th>';
|
68 |
-
|
|
|
|
|
69 |
{
|
70 |
$item->getSku();
|
71 |
$_product = Mage::getModel('catalog/product')->load($item->getProductId());
|
@@ -85,27 +102,36 @@ class Netsolutions_Offlineordertrack_TrackingController extends Mage_Core_Contro
|
|
85 |
}
|
86 |
$response['orderdetail_html'] .='</td><td><span><span class="price">'.number_format($item->getPrice(),2).'</span></span></td><td><span>'.number_format($item->getQtyOrdered(),2).'</span></td><td class="dataTotal"><span><span class="price">'.number_format($item->getPrice(),2).'</span></span></td></tr>';
|
87 |
}
|
88 |
-
|
|
|
|
|
|
|
|
|
|
|
89 |
$response['orderdetail_header'] .='<th>Price</th><th>Quantity</th><th class="dataTotal">Total</th></tr>';
|
90 |
-
$response['billing_info'] = $
|
91 |
-
$response['shipping_info'] = $
|
92 |
-
$response['subtotal'] = '<span class="price">'.number_format($
|
93 |
-
$response['shipping'] = '<span class="price">'.number_format($
|
94 |
-
$response['tax'] = '<span class="price">'.number_format($
|
95 |
-
$response['discount'] = '<span class="price">'.number_format($
|
96 |
-
$response['grandtotal'] = '<span class="price">'.number_format($
|
97 |
$response['order_number'] =$params['order_number'];
|
98 |
$response['order_email'] = $params['order_email'];
|
99 |
-
$response['status'] = $
|
100 |
$shipping_method = $order->getShippingDescription();
|
101 |
-
$
|
|
|
102 |
$response['carriers'] = $shipping_method;
|
103 |
|
104 |
-
|
|
|
|
|
105 |
{
|
|
|
106 |
$response['shipped_dates'] = date("M d, Y h:i:s A",strtotime($shipment->getCreatedAt()));
|
107 |
}
|
108 |
-
$response['billed_on'] = date("M d, Y h:i:s A",strtotime($
|
109 |
|
110 |
}else{
|
111 |
$errormsg = 'Entered data is incorrect.Please try again.';
|
@@ -157,8 +183,23 @@ class Netsolutions_Offlineordertrack_TrackingController extends Mage_Core_Contro
|
|
157 |
$billing = $order->getBillingAddress();
|
158 |
$zipcode = $billing->getPostcode();
|
159 |
$phonenumber = $billing->getTelephone();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
|
161 |
-
|
|
|
162 |
if(in_array(2,$fieldmultiselect) && in_array(3,$fieldmultiselect)){
|
163 |
$condition = ($zipcode == trim($params['order_zipcode']) && $phonenumber === trim($params['order_phonenumber']));
|
164 |
}elseif(in_array(2,$fieldmultiselect) && in_array(1,$fieldmultiselect)){
|
@@ -178,7 +219,9 @@ class Netsolutions_Offlineordertrack_TrackingController extends Mage_Core_Contro
|
|
178 |
if ($condition != '') {
|
179 |
$ship_flag = '';
|
180 |
$response['orderdetail_header'] .='<tr><th>Items</th>';
|
181 |
-
|
|
|
|
|
182 |
{
|
183 |
$item->getSku();
|
184 |
$_product = Mage::getModel('catalog/product')->load($item->getProductId());
|
@@ -216,21 +259,32 @@ class Netsolutions_Offlineordertrack_TrackingController extends Mage_Core_Contro
|
|
216 |
|
217 |
$response['billing_info'] = $billing;
|
218 |
$response['shipping_info'] = $shipping;
|
219 |
-
$
|
220 |
-
$
|
221 |
-
$
|
222 |
-
$
|
223 |
-
$
|
224 |
-
$response['
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
$response['order_email'] = $params['order_email'];
|
226 |
-
$response['status'] = $
|
227 |
$shipping_method = $order->getShippingDescription();
|
228 |
$response['carriers'] = $shipping_method;
|
229 |
-
|
|
|
|
|
|
|
|
|
230 |
{
|
231 |
-
$
|
|
|
232 |
}
|
233 |
-
$response['billed_on'] = date("M d, Y h:i:s A",strtotime($
|
234 |
|
235 |
$this->loadLayout();
|
236 |
$this->getLayout()
|
@@ -253,7 +307,8 @@ class Netsolutions_Offlineordertrack_TrackingController extends Mage_Core_Contro
|
|
253 |
$block->setData('orderdetail_header',$response['orderdetail_header']);
|
254 |
$block->setData('orderdetail_html',$response['orderdetail_html']);
|
255 |
$block->setData('order_number',$params['order_number']);
|
256 |
-
$
|
|
|
257 |
$this->renderLayout();
|
258 |
|
259 |
}else{
|
38 |
|
39 |
if(!empty($getOrderData)){
|
40 |
$cEmail = $order->getCustomerEmail();
|
41 |
+
$billing = $order->getBillingAddress();
|
42 |
+
$shipping = $order->getShippingAddress();
|
43 |
$zipcode = $billing->getPostcode();
|
44 |
$phonenumber = $billing->getTelephone();
|
45 |
+
$response['orderdetail_header'] = '';
|
46 |
+
$response['orderdetail_html'] = '';
|
47 |
+
$response['billing_info'] = '';
|
48 |
+
$response['shipping_info'] = '';
|
49 |
+
$response['subtotal'] = '';
|
50 |
+
$response['shipping'] = '';
|
51 |
+
$response['tax'] = '';
|
52 |
+
$response['discount'] = '';
|
53 |
+
$response['grandtotal'] = '';
|
54 |
+
$response['order_number'] = '';
|
55 |
+
$response['order_email'] = '';
|
56 |
+
$response['status'] = '';
|
57 |
+
$response['shipped_dates'] = '';
|
58 |
+
$response['billed_on'] = '';
|
59 |
|
60 |
$fieldTodisplayemail = Mage::getStoreConfig('netsolconfig/netsol_group/netsol_email');
|
61 |
$fieldTodisplayzipcode = Mage::getStoreConfig('netsolconfig/netsol_group/netsol_zipcode');
|
80 |
|
81 |
if($condition != '') {
|
82 |
$response['orderdetail_header'] .='<tr><th>Items</th>';
|
83 |
+
|
84 |
+
$orderVisibleItem = $order->getAllVisibleItems();
|
85 |
+
foreach($orderVisibleItem as $item)
|
86 |
{
|
87 |
$item->getSku();
|
88 |
$_product = Mage::getModel('catalog/product')->load($item->getProductId());
|
102 |
}
|
103 |
$response['orderdetail_html'] .='</td><td><span><span class="price">'.number_format($item->getPrice(),2).'</span></span></td><td><span>'.number_format($item->getQtyOrdered(),2).'</span></td><td class="dataTotal"><span><span class="price">'.number_format($item->getPrice(),2).'</span></span></td></tr>';
|
104 |
}
|
105 |
+
$grandTotal = $order['grand_total'];
|
106 |
+
$orderSubtotal = $order->getSubtotal();
|
107 |
+
$ordershippingAmount = $order->getShippingAmount();
|
108 |
+
$orderTax = $order->getTaxAmount();
|
109 |
+
$orderDiscount = $order->getDiscountAmount();
|
110 |
+
$orderStatus = $order->getStatus();
|
111 |
$response['orderdetail_header'] .='<th>Price</th><th>Quantity</th><th class="dataTotal">Total</th></tr>';
|
112 |
+
$response['billing_info'] = $billing->format('html');
|
113 |
+
$response['shipping_info'] = $shipping->format('html');
|
114 |
+
$response['subtotal'] = '<span class="price">'.number_format($orderSubtotal,2).'</span>';
|
115 |
+
$response['shipping'] = '<span class="price">'.number_format($ordershippingAmount,2).'</span>';
|
116 |
+
$response['tax'] = '<span class="price">'.number_format($orderTax,2).'</span>';
|
117 |
+
$response['discount'] = '<span class="price">'.number_format($orderDiscount,2).'</span>';
|
118 |
+
$response['grandtotal'] = '<span class="price">'.number_format($grandTotal,2).'</span>';
|
119 |
$response['order_number'] =$params['order_number'];
|
120 |
$response['order_email'] = $params['order_email'];
|
121 |
+
$response['status'] = $orderStatus;
|
122 |
$shipping_method = $order->getShippingDescription();
|
123 |
+
$payment = $order->getPayment()->getMethodInstance()->getTitle();
|
124 |
+
$response['payment'] = $payment;
|
125 |
$response['carriers'] = $shipping_method;
|
126 |
|
127 |
+
$orderShipmentCollection = $order->getShipmentsCollection();
|
128 |
+
$orderCreatedAt = $order->getCreatedAt();
|
129 |
+
foreach($orderShipmentCollection as $shipment)
|
130 |
{
|
131 |
+
$shipmentCreatedAt = $shipment->getCreatedAt();
|
132 |
$response['shipped_dates'] = date("M d, Y h:i:s A",strtotime($shipment->getCreatedAt()));
|
133 |
}
|
134 |
+
$response['billed_on'] = date("M d, Y h:i:s A",strtotime($orderCreatedAt));
|
135 |
|
136 |
}else{
|
137 |
$errormsg = 'Entered data is incorrect.Please try again.';
|
183 |
$billing = $order->getBillingAddress();
|
184 |
$zipcode = $billing->getPostcode();
|
185 |
$phonenumber = $billing->getTelephone();
|
186 |
+
$response['orderdetail_header'] = '';
|
187 |
+
$response['orderdetail_html'] = '';
|
188 |
+
$response['billing_info'] = '';
|
189 |
+
$response['shipping_info'] = '';
|
190 |
+
$response['subtotal'] = '';
|
191 |
+
$response['shipping'] = '';
|
192 |
+
$response['tax'] = '';
|
193 |
+
$response['discount'] = '';
|
194 |
+
$response['grandtotal'] = '';
|
195 |
+
$response['order_number'] = '';
|
196 |
+
$response['order_email'] = '';
|
197 |
+
$response['status'] = '';
|
198 |
+
$response['shipped_dates'] = '';
|
199 |
+
$response['billed_on'] = '';
|
200 |
|
201 |
+
$shipping_method = $order->getShippingDescription();
|
202 |
+
$response['carriers'] = $shipping_method;
|
203 |
if(in_array(2,$fieldmultiselect) && in_array(3,$fieldmultiselect)){
|
204 |
$condition = ($zipcode == trim($params['order_zipcode']) && $phonenumber === trim($params['order_phonenumber']));
|
205 |
}elseif(in_array(2,$fieldmultiselect) && in_array(1,$fieldmultiselect)){
|
219 |
if ($condition != '') {
|
220 |
$ship_flag = '';
|
221 |
$response['orderdetail_header'] .='<tr><th>Items</th>';
|
222 |
+
|
223 |
+
$orderVisibleItem = $order->getAllVisibleItems();
|
224 |
+
foreach($orderVisibleItem as $item)
|
225 |
{
|
226 |
$item->getSku();
|
227 |
$_product = Mage::getModel('catalog/product')->load($item->getProductId());
|
259 |
|
260 |
$response['billing_info'] = $billing;
|
261 |
$response['shipping_info'] = $shipping;
|
262 |
+
$orderSubtotal = $order->getSubtotal();
|
263 |
+
$ordershippingAmount = $order->getShippingAmount();
|
264 |
+
$orderTax = $order->getTaxAmount();
|
265 |
+
$orderDiscount = $order->getDiscountAmount();
|
266 |
+
$orderStatus = $order->getStatus();
|
267 |
+
$response['subtotal'] = '<span class="price">'.number_format($orderSubtotal,2).'</span>';
|
268 |
+
$response['shipping'] = '<span class="price">'.number_format($ordershippingAmount,2).'</span>';
|
269 |
+
$response['tax'] = '<span class="price">'.number_format($orderTax,2).'</span>';
|
270 |
+
$response['discount'] = '<span class="price">'.number_format($orderDiscount,2).'</span>';
|
271 |
+
$grandTotal = $order['grand_total'];;
|
272 |
+
$response['grandtotal'] = '<span class="price">'.number_format($grandTotal,2).'</span>';
|
273 |
+
$response['order_number'] = $params['order_number'];
|
274 |
$response['order_email'] = $params['order_email'];
|
275 |
+
$response['status'] = $orderStatus;
|
276 |
$shipping_method = $order->getShippingDescription();
|
277 |
$response['carriers'] = $shipping_method;
|
278 |
+
|
279 |
+
$orderShipmentCollection = $order->getShipmentsCollection();
|
280 |
+
$orderCreatedAt = $order->getCreatedAt();
|
281 |
+
|
282 |
+
foreach($orderShipmentCollection as $shipment)
|
283 |
{
|
284 |
+
$shipmentCreatedAt = $shipment->getCreatedAt();
|
285 |
+
$response['shipped_dates'] = date("M d, Y h:i:s A",strtotime($shipmentCreatedAt));
|
286 |
}
|
287 |
+
$response['billed_on'] = date("M d, Y h:i:s A",strtotime($orderCreatedAt));
|
288 |
|
289 |
$this->loadLayout();
|
290 |
$this->getLayout()
|
307 |
$block->setData('orderdetail_header',$response['orderdetail_header']);
|
308 |
$block->setData('orderdetail_html',$response['orderdetail_html']);
|
309 |
$block->setData('order_number',$params['order_number']);
|
310 |
+
$payment = $order->getPayment()->getMethodInstance()->getTitle();
|
311 |
+
$block->setData('payment',$payment);
|
312 |
$this->renderLayout();
|
313 |
|
314 |
}else{
|
app/code/community/Netsolutions/Offlineordertrack/etc/adminhtml.xml
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
<children>
|
9 |
<config>
|
10 |
<children>
|
11 |
-
<netsolconfig translate="title" module="
|
12 |
<title>Order Track Config</title>
|
13 |
<sort_order>100</sort_order>
|
14 |
</netsolconfig>
|
8 |
<children>
|
9 |
<config>
|
10 |
<children>
|
11 |
+
<netsolconfig translate="title" module="offlineordertrack">
|
12 |
<title>Order Track Config</title>
|
13 |
<sort_order>100</sort_order>
|
14 |
</netsolconfig>
|
app/code/community/Netsolutions/Offlineordertrack/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Netsolutions_Offlineordertrack>
|
5 |
-
<version>1.1.
|
6 |
</Netsolutions_Offlineordertrack>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Netsolutions_Offlineordertrack>
|
5 |
+
<version>1.1.7</version>
|
6 |
</Netsolutions_Offlineordertrack>
|
7 |
</modules>
|
8 |
<global>
|
app/code/community/Netsolutions/Offlineordertrack/sql/ot_setup/{mysql4-install-1.1.6.php → mysql4-install-1.1.7.php}
RENAMED
File without changes
|
app/code/community/Netsolutions/Offlineordertrack/sql/ot_setup/mysql4-upgrade-1.1.6-1.1.7.php
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* No difference in database */
|
app/design/frontend/base/default/template/netsolutions/offlineordertrack/email/mail.phtml
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$email = $this->getEmail();
|
3 |
+
$ordercollection = Mage::getResourceModel('sales/order_collection')
|
4 |
+
->addFieldToSelect('increment_id','order_no')
|
5 |
+
->addFieldToFilter('customer_email',$email);
|
6 |
+
?>
|
7 |
+
<?php foreach($ordercollection as $order): ?>
|
8 |
+
<li style="list-style:none inside; padding:0 0 0 10px;">
|
9 |
+
<a href="<?php echo Mage::getBaseUrl();?>offlineordertrack/tracking/index/" target="_blank">
|
10 |
+
<?php echo $order['order_no']; ?>
|
11 |
+
</a>
|
12 |
+
</li>
|
13 |
+
<?php endforeach; ?>
|
app/design/frontend/base/default/template/netsolutions/offlineordertrack/track.phtml
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* package : Netsol Offline Order Track
|
4 |
+
*
|
5 |
+
* **/
|
6 |
+
$helper = $this->helper('offlineordertrack');
|
7 |
+
?>
|
8 |
+
<?php if($this->error_status){?>
|
9 |
+
<div id="error_status"><?php echo $this->error_status; ?></div>
|
10 |
+
<a href="<?php echo $this->ordertrackUrl(); ?>">Back</a>
|
11 |
+
<?php }else{?>
|
12 |
+
<div id="order-result" class="orderResult">
|
13 |
+
<div class="rsNo"><span class="noText">Order #</span><span id="no-value" class="noNumber"><?php echo $this->order_number; ?></span></div>
|
14 |
+
<div class="rsStatus1">
|
15 |
+
<ul>
|
16 |
+
<li id="status1-pending" class="<?php echo ($this->status == 'pending') ? 'active':''?>">Pending</li>
|
17 |
+
<li id="status1-processing" class="<?php echo ($this->status == 'processing') ? 'active':''?>">Processing</li>
|
18 |
+
<li id="status1-completed" class="<?php echo ($this->status == 'complete')? 'active' :''?>">Complete</li>
|
19 |
+
<li id="status1-cancel" class="<?php echo ($this->status == 'canceled')? 'active' :''?>">Canceled</li>
|
20 |
+
<li id="status1-closed" class="<?php echo ($this->status == 'closed')? 'active' :''?>">Closed</li>
|
21 |
+
</ul>
|
22 |
+
</div>
|
23 |
+
<div class="rsStatus2"><span class="status2Text">Order status: </span><span id="status2-value" class="status2Value"><?php echo ucwords($this->status); ?></span></div>
|
24 |
+
<div id="rs-carrier" class="rsCarrier" style="display: block;"><span class="carrierText">Carrier: </span><span id="carrier-value" class="carrierValue"><?php echo $this->carriers; ?></span></div>
|
25 |
+
<div class="rsBilled"><span class="billedText">Billed on: </span><span id="billed-value" class="billedValue"><?php echo $this->billed_on; ?></span></div>
|
26 |
+
<div id="rs-shipped" class="rsShipped" style="display: block;"><span class="shippedText">Shipped on: </span><span id="shipped-value" class="shippedValue"><?php echo $this->shipped_dates; ?></span></div>
|
27 |
+
|
28 |
+
<div class="rsOrder">
|
29 |
+
<div class="orderDetail">
|
30 |
+
<div class="detailTitle">Order Detail</div>
|
31 |
+
<div class="detailContent">
|
32 |
+
<table class="data-table">
|
33 |
+
<colgroup>
|
34 |
+
<col width="1">
|
35 |
+
<col width="1">
|
36 |
+
<col width="1">
|
37 |
+
<col width="1">
|
38 |
+
<col width="1">
|
39 |
+
<col width="1">
|
40 |
+
</colgroup>
|
41 |
+
<thead id="orderdetail-header"><?php echo $this->orderdetail_header; ?></thead>
|
42 |
+
<tbody id="orderdetail-html"><?php echo $this->orderdetail_html; ?></tbody>
|
43 |
+
</table>
|
44 |
+
<div class="detailSummary">
|
45 |
+
<table>
|
46 |
+
<tbody><tr>
|
47 |
+
<td class="s-text">Subtotal</td>
|
48 |
+
<td id="s-subtotal"><?php echo $this->subtotal; ?></td>
|
49 |
+
</tr>
|
50 |
+
<tr>
|
51 |
+
<td class="s-text">Shipping</td>
|
52 |
+
<td id="s-shipping"><?php echo $this->shipping; ?></td>
|
53 |
+
</tr>
|
54 |
+
<tr>
|
55 |
+
<td class="s-text">Tax</td>
|
56 |
+
<td id="s-tax"><?php echo $this->tax;?></td>
|
57 |
+
</tr>
|
58 |
+
<tr>
|
59 |
+
<td class="s-text">Discount</td>
|
60 |
+
<td id="s-tax-discount"><?php echo $this->discount;?></td>
|
61 |
+
</tr>
|
62 |
+
<tr>
|
63 |
+
<td class="s-text"><strong>Grand Total</strong></td>
|
64 |
+
<td class="sTotal" id="s-total"><?php echo $this->grandtotal; ?></td>
|
65 |
+
</tr>
|
66 |
+
<tr>
|
67 |
+
<td class="sPayment" id="s-payment" colspan="2"><?php echo $this->payment; ?></td>
|
68 |
+
</tr>
|
69 |
+
</tbody></table>
|
70 |
+
</div>
|
71 |
+
<div class="order-info-address">
|
72 |
+
<div class="order-info-box">
|
73 |
+
<!--<div>
|
74 |
+
<h2>Gift Message</h2>
|
75 |
+
<div id="gift-html"><span></span></div>
|
76 |
+
</div>-->
|
77 |
+
</div>
|
78 |
+
<div class="order-info-box">
|
79 |
+
<div class="col-1">
|
80 |
+
<div class="box">
|
81 |
+
<div class="box-title">
|
82 |
+
<h2>Billing Information</h2>
|
83 |
+
</div>
|
84 |
+
<div class="box-content">
|
85 |
+
<address id="billing-info"><?php echo $this->billing_info; ?></address>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
</div>
|
89 |
+
</div>
|
90 |
+
<div class="order-info-box">
|
91 |
+
<div class="col-1">
|
92 |
+
<div class="box">
|
93 |
+
<div class="box-title">
|
94 |
+
<h2>Shipping Information</h2>
|
95 |
+
</div>
|
96 |
+
<div class="box-content">
|
97 |
+
<address id="shipping-info"><?php echo $this->shipping_info; ?></address>
|
98 |
+
</div>
|
99 |
+
</div>
|
100 |
+
</div>
|
101 |
+
</div>
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
</div>
|
105 |
+
</div>
|
106 |
+
</div>
|
107 |
+
|
108 |
+
<script>jQuery.noConflict();</script>
|
109 |
+
<script type="text/javascript">
|
110 |
+
if ( typeof jQuery == 'undefined')
|
111 |
+
{
|
112 |
+
var script=document.createElement('script');
|
113 |
+
script.onload = function() {
|
114 |
+
console.log("Script loaded and ready");
|
115 |
+
jQuery.noConflict();
|
116 |
+
jQuery('#order-result').show('slow');
|
117 |
+
}
|
118 |
+
script.type='text/javascript';
|
119 |
+
script.src='<?php echo $this->getSkinUrl('js/ordertrack/jquery-1.10.2.min.js');?>';
|
120 |
+
document.getElementsByTagName('head')[0].appendChild(script)
|
121 |
+
}else{
|
122 |
+
jQuery('#order-result').show('slow');
|
123 |
+
}
|
124 |
+
|
125 |
+
</script>
|
126 |
+
<?php } ?>
|
app/design/frontend/base/default/template/netsolutions/offlineordertrack/view.phtml
ADDED
@@ -0,0 +1,400 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* package : Netsol Offline Order Track
|
4 |
+
*
|
5 |
+
* **/
|
6 |
+
$helper = $this->helper('offlineordertrack');
|
7 |
+
$fieldmultiselect = Mage::getStoreConfig('netsolconfig/netsol_group/netsol_specific_field');
|
8 |
+
$fieldmultiselect = explode(",",$fieldmultiselect);
|
9 |
+
?>
|
10 |
+
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->toHtml() ?></div>
|
11 |
+
<?php if(Mage::Helper('offlineordertrack')->getIsEnabled()): ////if my module is enabled?>
|
12 |
+
<div id="track-order">
|
13 |
+
<div class="page-title">
|
14 |
+
<h1><?php echo $this->__('Track Your Order'); ?></h1>
|
15 |
+
</div>
|
16 |
+
<div class="content-trackorder">
|
17 |
+
<form id="track-order-form" name="trackorderform" method="GET" action="<?php echo $this->getFormUrl(); ?>">
|
18 |
+
<div>
|
19 |
+
<div class="field">
|
20 |
+
<label class="required" for="order:number">Order Number</label>
|
21 |
+
<div class="input-box">
|
22 |
+
<input type="text" class="input-text required-entry" id="order:number" name="order_number" title="Order Number">
|
23 |
+
</div>
|
24 |
+
</div>
|
25 |
+
<div class="field" style="display:<?php echo (in_array(1,$fieldmultiselect)) ? 'block' : 'none';?>">
|
26 |
+
<label class="required" for="order:email">Email Address</label>
|
27 |
+
<div class="input-box">
|
28 |
+
<input type="text" style="display:<?php echo (in_array(1,$fieldmultiselect)) ? 'block' : 'none';?>" class="input-text validate-email required-entry " id="order:email" name="order_email" title="Email Address">
|
29 |
+
</div>
|
30 |
+
</div>
|
31 |
+
<div class="field" style="display:<?php echo (in_array(2,$fieldmultiselect)) ? 'block' : 'none';?>">
|
32 |
+
<label class="required" for="order:zipcode">Zipcode</label>
|
33 |
+
<div class="input-box">
|
34 |
+
<input type="text"style="display:<?php echo (in_array(2,$fieldmultiselect)) ? 'block' : 'none';?>" class="input-text validate-zip-international required-entry" id="order:zipcode" name="order_zipcode" title="Zipcode">
|
35 |
+
</div>
|
36 |
+
</div>
|
37 |
+
<div class="field" style="display:<?php echo (in_array(3,$fieldmultiselect)) ? 'block' : 'none';?>">
|
38 |
+
<label class="required" for="order:phonenumber">Phone Number</label>
|
39 |
+
<div class="input-box">
|
40 |
+
<input type="text" style="display:<?php echo (in_array(3,$fieldmultiselect)) ? 'block' : 'none';?>" class="input-text required-entry" id="order:phonenumber" name="order_phonenumber" title="Phone Number">
|
41 |
+
</div>
|
42 |
+
</div>
|
43 |
+
|
44 |
+
</div>
|
45 |
+
<button class="button track-order" id="track-order-button" title="Track Order" type="submit"><span><span>Track order</span></span></button>
|
46 |
+
<div id="div-loading" class="divLoading" style="display: none;">
|
47 |
+
<span class="loadingAjax">Loading</span>
|
48 |
+
</div>
|
49 |
+
</form>
|
50 |
+
|
51 |
+
<form id="track-order-forgotorder" name="trackorderforgotform" method="POST" action="<?php echo $this->getForgotorderurl(); ?>" style="display:none;">
|
52 |
+
<div class="field">
|
53 |
+
<label class="required" for="order:email">Email Address</label>
|
54 |
+
<div class="input-box">
|
55 |
+
<input type="text" class="input-text validate-email required-entry" id="order_emailid" name="order_email" title="Email Address">
|
56 |
+
</div>
|
57 |
+
</div>
|
58 |
+
<button class="button forgotOrderNumber" id="track-order-forgot-button" title="Forgot Order Number" type="submit"><span><span>Submit</span></span></button>
|
59 |
+
</form>
|
60 |
+
</div>
|
61 |
+
<div id="error_status"></div>
|
62 |
+
<div class="field">
|
63 |
+
<label for="order:forgotordernumber">Forgot Your Order Number</label>
|
64 |
+
<div class="input-box">
|
65 |
+
<input type="checkbox" id="order_forgotordernumber" name="order_forgotordernumber" onchange="valueChanged()"/>
|
66 |
+
</div>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
|
70 |
+
<div id="order-result" class="orderResult" style="display: none;">
|
71 |
+
<div class="rsNo"><span class="noText">Order #</span><span id="no-value" class="noNumber"></span></div>
|
72 |
+
<div class="rsStatus1">
|
73 |
+
<ul>
|
74 |
+
<li id="status1-pending">Pending</li>
|
75 |
+
<li id="status1-processing">Processing</li>
|
76 |
+
<li id="status1-completed">Complete</li>
|
77 |
+
<li id="status1-cancel">Canceled</li>
|
78 |
+
<li id="status1-closed">Closed</li>
|
79 |
+
</ul>
|
80 |
+
</div>
|
81 |
+
<div class="rsStatus2"><span class="status2Text">Order status: </span><span id="status2-value" class="status2Value"></span></div>
|
82 |
+
<div id="rs-carrier" class="rsCarrier" style="display: none;"><span class="carrierText">Carrier: </span><span id="carrier-value" class="carrierValue"></span></div>
|
83 |
+
<div class="rsBilled"><span class="billedText">Billed on: </span><span id="billed-value" class="billedValue"></span></div>
|
84 |
+
<div id="rs-shipped" class="rsShipped" style="display: none;"><span class="shippedText">Shipped on: </span><span id="shipped-value" class="shippedValue"></span></div>
|
85 |
+
<div class="rsOrder">
|
86 |
+
<div class="orderDetail">
|
87 |
+
<div class="detailTitle">Order Detail</div>
|
88 |
+
<div class="detailContent">
|
89 |
+
<table class="data-table">
|
90 |
+
<colgroup>
|
91 |
+
<col width="1">
|
92 |
+
<col width="1">
|
93 |
+
<col width="1">
|
94 |
+
<col width="1">
|
95 |
+
<col width="1">
|
96 |
+
<col width="1">
|
97 |
+
</colgroup>
|
98 |
+
<thead id="orderdetail-header"></thead>
|
99 |
+
<tbody id="orderdetail-html"></tbody>
|
100 |
+
</table>
|
101 |
+
<div class="detailSummary">
|
102 |
+
<table>
|
103 |
+
<tbody><tr>
|
104 |
+
<td class="s-text">Subtotal</td>
|
105 |
+
<td id="s-subtotal"></td>
|
106 |
+
</tr>
|
107 |
+
<tr>
|
108 |
+
<td class="s-text">Shipping</td>
|
109 |
+
<td id="s-shipping"></td>
|
110 |
+
</tr>
|
111 |
+
<tr>
|
112 |
+
<td class="s-text">Tax</td>
|
113 |
+
<td id="s-tax"></td>
|
114 |
+
</tr>
|
115 |
+
<tr>
|
116 |
+
<td class="s-text">Discount</td>
|
117 |
+
<td id="s-tax-discount"></td>
|
118 |
+
</tr>
|
119 |
+
<tr>
|
120 |
+
<td class="s-text"><strong>Grand Total</strong></td>
|
121 |
+
<td class="sTotal" id="s-total"></td>
|
122 |
+
</tr>
|
123 |
+
<tr>
|
124 |
+
<td class="sPayment" id="s-payment" colspan="2"></td>
|
125 |
+
</tr>
|
126 |
+
</tbody></table>
|
127 |
+
</div>
|
128 |
+
<div class="order-info-address">
|
129 |
+
<!--<div class="order-info-box">
|
130 |
+
<div>
|
131 |
+
<h2>Gift Message</h2>
|
132 |
+
<div id="gift-html"><span></span></div>
|
133 |
+
</div>
|
134 |
+
</div>-->
|
135 |
+
<div class="order-info-box">
|
136 |
+
<div class="col-1">
|
137 |
+
<div class="box">
|
138 |
+
<div class="box-title">
|
139 |
+
<h2>Billing Information</h2>
|
140 |
+
</div>
|
141 |
+
<div class="box-content">
|
142 |
+
<address id="billing-info"></address>
|
143 |
+
</div>
|
144 |
+
</div>
|
145 |
+
</div>
|
146 |
+
</div>
|
147 |
+
<div class="order-info-box">
|
148 |
+
<div class="col-1">
|
149 |
+
<div class="box">
|
150 |
+
<div class="box-title">
|
151 |
+
<h2>Shipping Information</h2>
|
152 |
+
</div>
|
153 |
+
<div class="box-content">
|
154 |
+
<address id="shipping-info"></address>
|
155 |
+
</div>
|
156 |
+
</div>
|
157 |
+
</div>
|
158 |
+
</div>
|
159 |
+
</div>
|
160 |
+
</div>
|
161 |
+
</div>
|
162 |
+
</div>
|
163 |
+
</div>
|
164 |
+
<?php $ajaxEnabled = Mage::getStoreConfig('netsolconfig/netsol_group/netsol_ajax_enable');?>
|
165 |
+
<script type="text/javascript">
|
166 |
+
var ajax = "<?php echo $ajaxEnabled; ?>";
|
167 |
+
var baseurl = "<?php echo Mage::getBaseUrl() ?>";
|
168 |
+
</script>
|
169 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/ordertrack/ordertrack.js'); ?>"></script>
|
170 |
+
<script type="text/javascript">
|
171 |
+
//<![CDATA[
|
172 |
+
var orderForm = new VarienForm('track-order-form', true);
|
173 |
+
var orderforgotForm = new VarienForm('track-order-forgotorder', true);
|
174 |
+
//]]>
|
175 |
+
|
176 |
+
if ( typeof jQuery == 'undefined')
|
177 |
+
{
|
178 |
+
var script=document.createElement('script');
|
179 |
+
script.onload = function() {
|
180 |
+
console.log("Script loaded and ready");
|
181 |
+
jQuery.noConflict();
|
182 |
+
|
183 |
+
jQuery("#track-order-form").submit(function()
|
184 |
+
{
|
185 |
+
jQuery('#div-loading').show();
|
186 |
+
jQuery('#order-result-false').hide('slow');
|
187 |
+
//jQuery('#order-result').hide('slow');
|
188 |
+
//jQuery('#rs-carrier').show();
|
189 |
+
jQuery('#rs-shipped').show();
|
190 |
+
//jQuery('#rs-traking').show();
|
191 |
+
var ajax = '<?php echo $ajaxEnabled; ?>';
|
192 |
+
var url = '<?php echo Mage::getBaseUrl(). "offlineordertrack/tracking/ajax/"; ?>';
|
193 |
+
var data = jQuery('#track-order-form').serialize();
|
194 |
+
data += '&isAjax=1';
|
195 |
+
if(ajax == 0)
|
196 |
+
{
|
197 |
+
jQuery('#div-loading').hide();
|
198 |
+
var orderstatus = '<?php echo $this->status; ?>';
|
199 |
+
if (this.validator.validate()) {
|
200 |
+
document.trackorderform.submit();
|
201 |
+
if (orderstatus === 'canceled') {
|
202 |
+
jQuery('#status2-value').text('Canceled');
|
203 |
+
} else if (orderstatus === 'closed') {
|
204 |
+
jQuery('#status2-value').text('Closed');
|
205 |
+
} else if (orderstatus === 'complete') {
|
206 |
+
jQuery('#status2-value').text('Complete');
|
207 |
+
} else if (orderstatus === 'fraud') {
|
208 |
+
jQuery('#status2-value').text('Suspected Fraud');
|
209 |
+
} else if (orderstatus === 'holded') {
|
210 |
+
jQuery('#status2-value').text('On Hold');
|
211 |
+
} else if (orderstatus === 'payment_review') {
|
212 |
+
jQuery('#status2-value').text('Payment Review');
|
213 |
+
} else if (orderstatus === 'pending') {
|
214 |
+
jQuery('#status2-value').text('Pending');
|
215 |
+
} else if (orderstatus === 'pending_payment') {
|
216 |
+
jQuery('#status2-value').text('Pending Payment');
|
217 |
+
} else if (orderstatus === 'pending_paypal') {
|
218 |
+
jQuery('#status2-value').text('Pending PayPal');
|
219 |
+
} else {
|
220 |
+
jQuery('#status2-value').text('Processing');
|
221 |
+
}
|
222 |
+
if (orderstatus === 'pending' || orderstatus === 'pending_payment' || orderstatus === 'pending_paypal' || orderstatus === 'holded') {
|
223 |
+
removeActiveClass();
|
224 |
+
jQuery('#status1-pending').addClass('active');
|
225 |
+
} else if (orderstatus === 'processing' || orderstatus === 'payment_review' || orderstatus === 'fraud') {
|
226 |
+
removeActiveClass();
|
227 |
+
jQuery('#status1-processing').addClass('active');
|
228 |
+
} else if (orderstatus === 'complete') {
|
229 |
+
removeActiveClass();
|
230 |
+
jQuery('#status1-completed').addClass('active');
|
231 |
+
} else if (orderstatus === 'canceled') {
|
232 |
+
removeActiveClass();
|
233 |
+
jQuery('#status1-cancel').addClass('active');
|
234 |
+
} else if (orderstatus === 'closed') {
|
235 |
+
removeActiveClass();
|
236 |
+
jQuery('#status1-closed').addClass('active');
|
237 |
+
}
|
238 |
+
}
|
239 |
+
}else{
|
240 |
+
jQuery.ajax({
|
241 |
+
url: url,
|
242 |
+
type: "POST",
|
243 |
+
data: data,
|
244 |
+
dataType: 'json',
|
245 |
+
success: function(data)
|
246 |
+
{
|
247 |
+
jQuery('#div-loading').hide();
|
248 |
+
if (data.order_number !== '') {
|
249 |
+
if(data.error_status){
|
250 |
+
jQuery('#error_status').html(data.error_status);
|
251 |
+
jQuery('#error_status').show();
|
252 |
+
jQuery('#order-result').hide();
|
253 |
+
}else{
|
254 |
+
jQuery('#order-result').show('slow');
|
255 |
+
jQuery('#error_status').hide();
|
256 |
+
}
|
257 |
+
jQuery('#no-value').text(data.order_number);
|
258 |
+
jQuery('#track-order-number').text(data.order_number);
|
259 |
+
jQuery('#billed-value').text(data.billed_on);
|
260 |
+
jQuery('#status2-value').text(data.status);
|
261 |
+
jQuery('#s-subtotal').html(data.subtotal);
|
262 |
+
jQuery('#s-shipping').html(data.shipping);
|
263 |
+
jQuery('#s-tax').html(data.tax);
|
264 |
+
jQuery('#s-tax-discount').html(data.discount);
|
265 |
+
jQuery('#s-total').html(data.grandtotal);
|
266 |
+
jQuery('#s-payment').text('(' + data.payment + ')');
|
267 |
+
jQuery('#gift-html').html(data.gifthtml);
|
268 |
+
jQuery('#billing-info').html(data.billing_info);
|
269 |
+
jQuery('#shipping-info').html(data.shipping_info);
|
270 |
+
jQuery('#orderdetail-header').html(data.orderdetail_header);
|
271 |
+
jQuery('#orderdetail-html').html(data.orderdetail_html);
|
272 |
+
|
273 |
+
|
274 |
+
if (data.status === 'canceled') {
|
275 |
+
jQuery('#status2-value').text('Canceled');
|
276 |
+
} else if (data.status === 'closed') {
|
277 |
+
jQuery('#status2-value').text('Closed');
|
278 |
+
} else if (data.status === 'complete') {
|
279 |
+
jQuery('#status2-value').text('Complete');
|
280 |
+
} else if (data.status === 'fraud') {
|
281 |
+
jQuery('#status2-value').text('Suspected Fraud');
|
282 |
+
} else if (data.status === 'holded') {
|
283 |
+
jQuery('#status2-value').text('On Hold');
|
284 |
+
} else if (data.status === 'payment_review') {
|
285 |
+
jQuery('#status2-value').text('Payment Review');
|
286 |
+
} else if (data.status === 'pending') {
|
287 |
+
jQuery('#status2-value').text('Pending');
|
288 |
+
} else if (data.status === 'pending_payment') {
|
289 |
+
jQuery('#status2-value').text('Pending Payment');
|
290 |
+
} else if (data.status === 'pending_paypal') {
|
291 |
+
jQuery('#status2-value').text('Pending PayPal');
|
292 |
+
} else {
|
293 |
+
jQuery('#status2-value').text('Processing');
|
294 |
+
}
|
295 |
+
jQuery('#number-after').val(data.order_number);
|
296 |
+
jQuery('#email-after').val(data.order_email);
|
297 |
+
|
298 |
+
var carrier_string = '';
|
299 |
+
if(data.carriers)
|
300 |
+
{
|
301 |
+
for (var i = 0; i < data.carriers.length; i++)
|
302 |
+
{
|
303 |
+
if (data.carriers.length - i === 1) {
|
304 |
+
carrier_string += data.carriers[i];
|
305 |
+
} else {
|
306 |
+
carrier_string += data.carriers[i] + ' ';
|
307 |
+
}
|
308 |
+
}
|
309 |
+
}
|
310 |
+
if(data.shipped_dates){
|
311 |
+
jQuery('#shipped-value').text(data.shipped_dates);
|
312 |
+
}else{
|
313 |
+
jQuery('#rs-shipped').hide();
|
314 |
+
}
|
315 |
+
jQuery('#carrier-value').text(carrier_string);
|
316 |
+
if (data.shipped_dates === '') {
|
317 |
+
jQuery('#rs-carrier').hide();
|
318 |
+
jQuery('#rs-shipped').hide();
|
319 |
+
jQuery('#rs-traking').hide();
|
320 |
+
}
|
321 |
+
|
322 |
+
if (data.status === 'pending' || data.status === 'pending_payment' || data.status === 'pending_paypal' || data.status === 'holded') {
|
323 |
+
removeActiveClass();
|
324 |
+
jQuery('#status1-pending').addClass('active');
|
325 |
+
} else if (data.status === 'processing' || data.status === 'payment_review' || data.status === 'fraud') {
|
326 |
+
removeActiveClass();
|
327 |
+
jQuery('#status1-processing').addClass('active');
|
328 |
+
} else if (data.status === 'complete') {
|
329 |
+
removeActiveClass();
|
330 |
+
jQuery('#status1-completed').addClass('active');
|
331 |
+
} else if (data.status === 'canceled') {
|
332 |
+
removeActiveClass();
|
333 |
+
jQuery('#status1-cancel').addClass('active');
|
334 |
+
} else if (data.status === 'closed') {
|
335 |
+
removeActiveClass();
|
336 |
+
jQuery('#status1-closed').addClass('active');
|
337 |
+
}
|
338 |
+
}else {
|
339 |
+
jQuery('#order-result-false').show('slow');
|
340 |
+
jQuery('#order-result-false').text('Order Number or Email Adress invaild!');
|
341 |
+
}
|
342 |
+
},
|
343 |
+
error: function(error)
|
344 |
+
{
|
345 |
+
console.log(error.status);
|
346 |
+
}
|
347 |
+
});
|
348 |
+
}
|
349 |
+
return false;
|
350 |
+
});
|
351 |
+
|
352 |
+
/****
|
353 |
+
jQuery ajax for retrieving all order number for specfic email
|
354 |
+
address and sending to customer email***/
|
355 |
+
|
356 |
+
jQuery("#track-order-forgotorder").submit(function(){
|
357 |
+
var url = jQuery("#track-order-forgotorder").attr('action');
|
358 |
+
var data = jQuery('#track-order-forgotorder').serialize();
|
359 |
+
//data += '&isAjax=1';
|
360 |
+
|
361 |
+
jQuery.ajax({
|
362 |
+
url: url,
|
363 |
+
type: "POST",
|
364 |
+
data: data,
|
365 |
+
dataType: 'json',
|
366 |
+
success:function(data){
|
367 |
+
console.log('succes');
|
368 |
+
if(data.error_status){
|
369 |
+
jQuery('#error_status').html(data.error_status);
|
370 |
+
jQuery('#error_status').show();
|
371 |
+
//jQuery('#order-result').hide();
|
372 |
+
}else{
|
373 |
+
//jQuery('#order-result').show('slow');
|
374 |
+
jQuery('#error_status').hide();
|
375 |
+
}
|
376 |
+
|
377 |
+
},
|
378 |
+
statusCode: {
|
379 |
+
404: function() { alert('Could not contact server.');
|
380 |
+
},
|
381 |
+
500: function() { alert('A server-side error has occurred.. 1');
|
382 |
+
}
|
383 |
+
},
|
384 |
+
error: function(error) {
|
385 |
+
console.log(error);
|
386 |
+
return false;
|
387 |
+
},
|
388 |
+
});
|
389 |
+
|
390 |
+
return false;
|
391 |
+
});
|
392 |
+
};
|
393 |
+
script.type='text/javascript';
|
394 |
+
script.src='<?php echo $this->getSkinUrl('js/ordertrack/jquery-1.10.2.min.js');?>';
|
395 |
+
document.getElementsByTagName('head')[0].appendChild(script);
|
396 |
+
}
|
397 |
+
|
398 |
+
|
399 |
+
</script>
|
400 |
+
<?php endif; ?>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Netsolutions_Offlineordertrack</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
<license>Open Software License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>This extension allows the customers to check orders details and status without logging in to their account. </summary>
|
10 |
<description>This extension allows the customers to check orders details and status without logging in to their account. </description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Netsol</name><user>net_solutions</user><email>marketing@netsolutionsindia.com</email></author></authors>
|
13 |
-
<date>2015-07-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Netsolutions"><dir name="Offlineordertrack"><dir name="Block"><file name="Forgotmail.php" hash="bfa51eb79037a1ecd83fef4ed02694b4"/><file name="Tracking.php" hash="0741cd154e094d4196a6b40785e122c5"/></dir><dir name="Helper"><file name="Data.php" hash="1684c88d1eef1c170b0fcc890def0e39"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Ordertrack"><file name="Collection.php" hash="a828733d247949aefea0e8ef80fb6238"/></dir><file name="Ordertrack.php" hash="4f4f8d8c46e33ff181237a00d0275adf"/></dir><file name="Ordertrack.php" hash="0bad8553772cc8e6def9366e3c41fbd5"/><dir name="System"><dir name="Config"><dir name="Source"><file name="View.php" hash="77b1904426b84b429e344d3701996b49"/></dir></dir></dir></dir><dir name="controllers"><file name="TrackingController.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Netsolutions_Offlineordertrack</name>
|
4 |
+
<version>1.1.7</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>Open Software License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>This extension allows the customers to check orders details and status without logging in to their account. </summary>
|
10 |
<description>This extension allows the customers to check orders details and status without logging in to their account. </description>
|
11 |
+
<notes>Stable release with bug fixes.</notes>
|
12 |
<authors><author><name>Netsol</name><user>net_solutions</user><email>marketing@netsolutionsindia.com</email></author></authors>
|
13 |
+
<date>2015-07-28</date>
|
14 |
+
<time>09:45:52</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Netsolutions"><dir name="Offlineordertrack"><dir name="Block"><file name="Forgotmail.php" hash="bfa51eb79037a1ecd83fef4ed02694b4"/><file name="Tracking.php" hash="0741cd154e094d4196a6b40785e122c5"/></dir><dir name="Helper"><file name="Data.php" hash="1684c88d1eef1c170b0fcc890def0e39"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Ordertrack"><file name="Collection.php" hash="a828733d247949aefea0e8ef80fb6238"/></dir><file name="Ordertrack.php" hash="4f4f8d8c46e33ff181237a00d0275adf"/></dir><file name="Ordertrack.php" hash="0bad8553772cc8e6def9366e3c41fbd5"/><dir name="System"><dir name="Config"><dir name="Source"><file name="View.php" hash="77b1904426b84b429e344d3701996b49"/></dir></dir></dir></dir><dir name="controllers"><file name="TrackingController.php" hash="b2b7b9780e93b384a8dc4f75aacba056"/></dir><dir name="etc"><file name="adminhtml.xml" hash="684af01afda5a73ab16dcca41cecdecf"/><file name="config.xml" hash="f95c89891c6e48f74a979938cbdbb5c8"/><file name="system.xml" hash="ba1fc4ac8378625410ca7d8622b2e0dd"/></dir><dir name="sql"><dir name="ot_setup"><file name="mysql4-install-1.1.7.php" hash="99ecd2fc3073d959897810316da47787"/><file name="mysql4-upgrade-1.1.2-1.1.3.php" hash="ecdaefef485fc41cecc9de89fad97737"/><file name="mysql4-upgrade-1.1.3-1.1.4 .php" hash="ecdaefef485fc41cecc9de89fad97737"/><file name="mysql4-upgrade-1.1.4-1.1.5.php" hash="ecdaefef485fc41cecc9de89fad97737"/><file name="mysql4-upgrade-1.1.5-1.1.6.php" hash="ecdaefef485fc41cecc9de89fad97737"/><file name="mysql4-upgrade-1.1.6-1.1.7.php" hash="ecdaefef485fc41cecc9de89fad97737"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Netsolutions_Offlineordertrack.xml" hash="1bc70e057c37a9fa2494ee418e759159"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="offlineordertrack.xml" hash="462bc726d57acadab7cd7c50c0302c34"/></dir><dir name="template"><dir name="netsolutions"><dir name="offlineordertrack"><dir name="email"><file name="mail.phtml" hash="3d5360174bd6a95f476599aa1e41f430"/></dir><file name="track.phtml" hash="56311295219a8fee78b23182a3812a73"/><file name="view.phtml" hash="64e435deb8ad86db8c0120a05b9e3222"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="ordertrack.css" hash="5f0b79a24caa2b4b714371522aa319a0"/></dir><dir name="images"><file name="order-loader.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/></dir><dir name="js"><dir name="ordertrack"><file name="jquery-1.10.2.min.js" hash="628072e7212db1e8cdacb22b21752cda"/><file name="ordertrack.js" hash="01ff6d90fda04aea4226780ad033f579"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><file name="forgotordernumbermail.html" hash="ed548cc114cd797716abbeabd96ccfa1"/></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|