Netsolutions_Offlineordertrack - Version 1.0.0

Version Notes

Latest version

Download this release

Release Info

Developer Netsol
Extension Netsolutions_Offlineordertrack
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

app/code/community/Netsolutions/Offlineordertrack/Block/Tracking.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Netsolutions_Offlineordertrack_Block_Tracking extends Mage_Core_Block_Template{
3
+ /***
4
+ * Retrieve form url through helper
5
+ *
6
+ * @return form url
7
+ * */
8
+ public function getFormUrl()
9
+ {
10
+ return $this->helper('offlineordertrack')->resultUrl();
11
+ }
12
+
13
+ }
app/code/community/Netsolutions/Offlineordertrack/Helper/Data.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Netsolutions_Offlineordertrack_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+ const XML_CONFIG_PATH = "netsolconfig/settings/";
5
+
6
+
7
+ public function trackingUrl()
8
+ {
9
+ return Mage::getUrl('offlineordertrack/tracking/index');
10
+ }
11
+ /***
12
+ * retrieve the order track url
13
+ *
14
+ * @return url
15
+ *
16
+ ****/
17
+ public function resultUrl()
18
+ {
19
+ return Mage::getUrl('offlineordertrack/tracking/ordertrack');
20
+ }
21
+ /***
22
+ * retrieve store config flag for netsol group enable or disabled.
23
+ *
24
+ * @return boolean.
25
+ *
26
+ ****/
27
+ public function getIsEnabled()
28
+ {
29
+ return Mage::getStoreConfigFlag('netsolconfig/netsol_group/netsol_enable');
30
+ }
31
+ }
app/code/community/Netsolutions/Offlineordertrack/controllers/TrackingController.php ADDED
@@ -0,0 +1,187 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Netsolutions_Offlineordertrack_TrackingController extends Mage_Core_Controller_Front_Action
3
+ {
4
+ /****
5
+ * render the default layout for track order
6
+ * **/
7
+ public function indexAction()
8
+ {
9
+ $this->loadLayout();
10
+ $this->renderLayout();
11
+ }
12
+ /***
13
+ * Check for Order Details from order number for track order with ajax
14
+ *
15
+ * @param Mage_Sales_Model_Order $order order object
16
+ *
17
+ * @return json encode
18
+ *
19
+ * **/
20
+ public function ajaxAction()
21
+ {
22
+ $params = $this->getRequest()->getParams();
23
+ $response = array();
24
+ $orderId = Mage::getModel('sales/order')->loadByIncrementId($params['order_number'])->getEntityId();
25
+ $order = Mage::getModel("sales/order")->load($orderId);
26
+ /** store the ordered customer email address***/
27
+ $cEmail = $order->getCustomerEmail();
28
+ /* get the block of sales order_item_render_default for custom options value and label */
29
+ $block = Mage::app()->getLayout()->createBlock('sales/order_item_renderer_default');
30
+
31
+ if ($cEmail == trim($params['order_email'])) {
32
+ $response['orderdetail_header'] .='<tr><th>Items</th>';
33
+ foreach($order->getAllVisibleItems() as $item)
34
+ {
35
+ $item->getProductId();
36
+ $item->getProduct()->getData("sku");
37
+ $response['orderdetail_html'] .= '<tr><td><img width="55" height="55" src="'.$item->getProduct()->getSmallImageUrl().'" class="dataImage"><h3 class="dataName">'.$item->getName().'</h3>';
38
+
39
+ $block->setItem($item);
40
+
41
+ /* get the custom options of products */
42
+ if ($options = $block->getItemOptions()){
43
+ $j=0;
44
+ foreach($options as $option){
45
+ $label[$i] = $option['label'];
46
+ $textvalue[$j] = $option['value'];
47
+ $response['orderdetail_html'] .= '<p class="dataStyle">style #:'.$label[$i].':'.$textvalue[$j].'</p>';
48
+ $j++;
49
+ }
50
+ }
51
+ $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>';
52
+ }
53
+
54
+ $response['orderdetail_header'] .='<th>Price</th><th>Quantity</th><th class="dataTotal">Total</th></tr>';
55
+ $response['billing_info'] = $order->getBillingAddress()->format('html');
56
+ $response['shipping_info'] = $order->getShippingAddress()->format('html');
57
+ $response['subtotal'] = '<span class="price">'.number_format($order['subtotal'],2).'</span>';
58
+ $response['shipping'] = '<span class="price">'.number_format($order['shipping_amount'],2).'</span>';
59
+ $response['tax'] = '<span class="price">'.number_format($order['tax_amount'],2).'</span>';
60
+ $response['grandtotal'] = '<span class="price">'.number_format($order->getGrandTotal(),2).'</span>';
61
+ $response['order_number'] =$params['order_number'];
62
+ $response['order_email'] = $params['order_email'];
63
+ $response['status'] = $order['status'];
64
+ $shipping_method = $order->getShippingDescription();
65
+ $response['payment'] = $order->getPayment()->getMethodInstance()->getTitle();
66
+ $response['carriers'] = $shipping_method;
67
+
68
+ foreach($order->getShipmentsCollection() as $shipment)
69
+ {
70
+ $response['shipped_dates'] = date("M d, Y h:i:s A",strtotime($shipment->getCreatedAt()));
71
+ }
72
+ $response['billed_on'] = date("M d, Y h:i:s A",strtotime($order->getCreatedAt()));
73
+
74
+ }else{
75
+ $response['error_status'] = 'Invalid Order Number or Invalid Email Address';
76
+ }
77
+ $this->getResponse()->setBody(Mage::Helper('core')->jsonEncode($response));
78
+ }
79
+ /***
80
+ * Check for Order Details from order number for track order without ajax
81
+ *
82
+ * @param Mage_Sales_Model_Order $order order object
83
+ *
84
+ * @return string data with render layout
85
+ * **/
86
+ public function ordertrackAction()
87
+ {
88
+ $params = $this->getRequest()->getParams();
89
+ $response = array();
90
+ $orderId = Mage::getModel('sales/order')->loadByIncrementId($params['order_number'])->getEntityId();
91
+ $order = Mage::getModel("sales/order")->load($orderId);
92
+ /** store the ordered customer email address***/
93
+ $cEmail = $order->getCustomerEmail();
94
+
95
+ /* get the block of sales order_item_render_default for custom options value and label */
96
+ $block = Mage::app()->getLayout()->createBlock('sales/order_item_renderer_default');
97
+ $response['orderdetail_header'] .='<tr><th>Items</th>';
98
+
99
+ if ($cEmail == trim($params['order_email'])) {
100
+ foreach($order->getAllVisibleItems() as $item)
101
+ {
102
+ $item->getProductId();
103
+ $item->getProduct()->getData("sku");
104
+ $response['orderdetail_html'] .= '<tr><td><img width="55" height="55" src="'.$item->getProduct()->getSmallImageUrl().'" class="dataImage"><h3 class="dataName">'.$item->getName().'</h3>';
105
+
106
+ $block->setItem($item);
107
+
108
+ /* get the custom options of products */
109
+ if ($options = $block->getItemOptions()){
110
+ $j=0;
111
+ foreach($options as $option){
112
+ $label[$i] = $option['label'];
113
+ $textvalue[$j] = $option['value'];
114
+ $response['orderdetail_html'] .= '<p class="dataStyle">style #:'.$label[$i].':'.$textvalue[$j].'</p>';
115
+ $j++;
116
+ }
117
+ }
118
+ $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>';
119
+ }
120
+ $response['orderdetail_header'] .='<th>Price</th><th>Quantity</th><th class="dataTotal">Total</th></tr>';
121
+
122
+ if (empty($order->getShippingAddress())) {
123
+ $ship_flag = 0;
124
+ } else {
125
+ $ship_flag = 1;
126
+ $shipping = $order->getShippingAddress()->format('html');
127
+ }
128
+ if (empty($order->getBillingAddress())) {
129
+ $bill_flag = 0;
130
+ } else {
131
+ $bill_flag = 1;
132
+ $billing = $order->getBillingAddress()->format('html');
133
+ }
134
+
135
+ $response['billing_info'] = $billing;
136
+ $response['shipping_info'] = $shipping;
137
+ $response['subtotal'] = '<span class="price">'.number_format($order['subtotal'],2).'</span>';
138
+ $response['shipping'] = '<span class="price">'.number_format($order['shipping_amount'],2).'</span>';
139
+ $response['tax'] = '<span class="price">'.number_format($order['tax_amount'],2).'</span>';
140
+ $response['grandtotal'] = '<span class="price">'.number_format($order->getGrandTotal(),2).'</span>';
141
+ $response['order_number'] =$params['order_number'];
142
+ $response['order_email'] = $params['order_email'];
143
+ $response['status'] = $order['status'];
144
+ $shipping_method = $order->getShippingDescription();
145
+ $response['carriers'] = $shipping_method;
146
+ foreach($order->getShipmentsCollection() as $shipment)
147
+ {
148
+ $response['shipped_dates'] = date("M d, Y h:i:s A",strtotime($shipment->getCreatedAt()));
149
+ }
150
+ $response['billed_on'] = date("M d, Y h:i:s A",strtotime($order->getCreatedAt()));
151
+
152
+ $this->loadLayout();
153
+ $this->getLayout()
154
+ ->getBlock('offlineorder.tracking.track')
155
+ ->setTemplate('netsol/offlineordertrack/track.phtml');
156
+ $block = $this->getLayout()
157
+ ->getBlock('offlineorder.tracking.track');
158
+ $block->setData('order_number',$params['order_number']);
159
+ $block->setData('billing_info',$response['billing_info']);
160
+ $block->setData('shipping_info',$response['shipping_info']);
161
+ $block->setData('subtotal',$response['subtotal']);
162
+ $block->setData('shipping',$response['shipping']);
163
+ $block->setData('tax',$response['tax']);
164
+ $block->setData('grandtotal',$response['grandtotal']);
165
+ $block->setData('status',$response['status']);
166
+ $block->setData('billed_on',$response['billed_on']);
167
+ $block->setData('carriers',$response['carriers']);
168
+ $block->setData('shipped_dates',$response['shipped_dates']);
169
+ $block->setData('orderdetail_header',$response['orderdetail_header']);
170
+ $block->setData('orderdetail_html',$response['orderdetail_html']);
171
+ $block->setData('order_number',$params['order_number']);
172
+ $block->setData('payment',$order->getPayment()->getMethodInstance()->getTitle());
173
+ $this->renderLayout();
174
+
175
+ }else{
176
+
177
+ $this->loadLayout();
178
+ $this->getLayout()
179
+ ->getBlock('offlineorder.tracking.track')
180
+ ->setTemplate('netsol/offlineordertrack/track.phtml');
181
+ $block = $this->getLayout()
182
+ ->getBlock('offlineorder.tracking.track');
183
+ $block->setData('error_status','Invalid Order Number or Invalid Email Address.Please try again.');
184
+ $this->renderLayout();
185
+ }
186
+ }
187
+ }
app/code/community/Netsolutions/Offlineordertrack/etc/adminhtml.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
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>
15
+ </children>
16
+ </config>
17
+ </children>
18
+ </system>
19
+ </children>
20
+ </admin>
21
+ </resources>
22
+ </acl>
23
+ </config>
app/code/community/Netsolutions/Offlineordertrack/etc/config.xml ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Netsolutions_Offlineordertrack>
5
+ <version>1.0.0</version>
6
+ </Netsolutions_Offlineordertrack>
7
+ </modules>
8
+ <global>
9
+ <models>
10
+ <offlineordertrack>
11
+ <class>Netsolutions_Offlineordertrack_Model</class>
12
+ </offlineordertrack>
13
+ </models>
14
+ <blocks>
15
+ <offlineordertrack>
16
+ <class>Netsolutions_Offlineordertrack_Block</class>
17
+ </offlineordertrack>
18
+ </blocks>
19
+ <helpers>
20
+ <offlineordertrack>
21
+ <class>Netsolutions_Offlineordertrack_Helper</class>
22
+ </offlineordertrack>
23
+ </helpers>
24
+ </global>
25
+ <frontend>
26
+ <routers>
27
+ <offlineordertrack>
28
+ <use>standard</use>
29
+ <args>
30
+ <module>Netsolutions_Offlineordertrack</module>
31
+ <frontName>offlineordertrack</frontName>
32
+ </args>
33
+ </offlineordertrack>
34
+ </routers>
35
+ <layout>
36
+ <updates>
37
+ <offlineordertrack>
38
+ <file>offlineordertrack.xml</file>
39
+ </offlineordertrack>
40
+ </updates>
41
+ </layout>
42
+ </frontend>
43
+ <default>
44
+ <netsolconfig>
45
+ <netsol_status_group>
46
+ <netsol_pending>Pending</netsol_pending>
47
+ <netsol_pending_payment>Pending Payment</netsol_pending_payment>
48
+ <netsol_pending_paypal>Pending PayPal</netsol_pending_paypal>
49
+ <netsol_processing>Processing</netsol_processing>
50
+ <netsol_payment_review>Payment Review</netsol_payment_review>
51
+ <netsol_on_hold>On Hold</netsol_on_hold>
52
+ <netsol_closed>Closed</netsol_closed>
53
+ <netsol_complete>Complete</netsol_complete>
54
+ <netsol_suspected_fraud>Suspected Fraud</netsol_suspected_fraud>
55
+ <netsol_canceled>Canceled</netsol_canceled>
56
+ </netsol_status_group>
57
+ </netsolconfig>
58
+ </default>
59
+ </config>
app/code/community/Netsolutions/Offlineordertrack/etc/system.xml ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <netsol_tab module="offlineordertrack" translate="label">
5
+ <label>Order Track Config</label>
6
+ <sort_order>100</sort_order>
7
+ </netsol_tab>
8
+ </tabs>
9
+ <sections>
10
+ <netsolconfig module="offlineordertrack" translate="label">
11
+ <label>Order Track Configuration</label>
12
+ <sort_order>200</sort_order>
13
+ <show_in_default>1</show_in_default>
14
+ <show_in_website>1</show_in_website>
15
+ <show_in_store>1</show_in_store>
16
+ <tab>netsol_tab</tab>
17
+ <groups>
18
+ <netsol_group translate="label">
19
+ <label>Order Track Config</label>
20
+ <!--<comment>This is example of custom configuration.</comment>-->
21
+ <sort_order>100</sort_order>
22
+ <show_in_default>1</show_in_default>
23
+ <show_in_website>1</show_in_website>
24
+ <show_in_store>1</show_in_store>
25
+ <fields>
26
+ <netsol_enable translate="label comment">
27
+ <label>Enable</label>
28
+ <frontend_type>select</frontend_type>
29
+ <source_model>adminhtml/system_config_source_yesno</source_model>
30
+ <sort_order>0</sort_order>
31
+ <show_in_default>1</show_in_default>
32
+ <show_in_website>1</show_in_website>
33
+ <show_in_store>1</show_in_store>
34
+ <comment>Enable/disable Ordertrack on frontend.</comment>
35
+ </netsol_enable>
36
+ <netsol_ajax_enable translate="label comment">
37
+ <label>Ajax Enable</label>
38
+ <frontend_type>select</frontend_type>
39
+ <source_model>adminhtml/system_config_source_yesno</source_model>
40
+ <sort_order>1</sort_order>
41
+ <show_in_default>1</show_in_default>
42
+ <show_in_website>1</show_in_website>
43
+ <show_in_store>1</show_in_store>
44
+ <comment>Set to Yes o if you want ajax loading .</comment>
45
+ </netsol_ajax_enable>
46
+ </fields>
47
+ </netsol_group>
48
+ <netsol_status_group translate="label">
49
+ <label>Status Titles</label>
50
+ <sort_order>110</sort_order>
51
+ <show_in_default>1</show_in_default>
52
+ <show_in_website>1</show_in_website>
53
+ <show_in_store>1</show_in_store>
54
+ <fields>
55
+ <netsol_pending translate="label">
56
+ <label>Pending</label>
57
+ <frontend_type>text</frontend_type>
58
+ <sort_order>0</sort_order>
59
+ <show_in_default>1</show_in_default>
60
+ <show_in_website>1</show_in_website>
61
+ <show_in_store>1</show_in_store>
62
+ </netsol_pending>
63
+ <netsol_pending_payment translate="label">
64
+ <label>Pending Payment</label>
65
+ <frontend_type>text</frontend_type>
66
+ <sort_order>1</sort_order>
67
+ <show_in_default>1</show_in_default>
68
+ <show_in_website>1</show_in_website>
69
+ <show_in_store>1</show_in_store>
70
+ </netsol_pending_payment>
71
+ <netsol_pending_paypal translate="label">
72
+ <label>Pending PayPal</label>
73
+ <frontend_type>text</frontend_type>
74
+ <sort_order>2</sort_order>
75
+ <show_in_default>1</show_in_default>
76
+ <show_in_website>1</show_in_website>
77
+ <show_in_store>1</show_in_store>
78
+ </netsol_pending_paypal>
79
+ <netsol_processing translate="label">
80
+ <label>Processing</label>
81
+ <frontend_type>text</frontend_type>
82
+ <sort_order>3</sort_order>
83
+ <show_in_default>1</show_in_default>
84
+ <show_in_website>1</show_in_website>
85
+ <show_in_store>1</show_in_store>
86
+ </netsol_processing>
87
+ <netsol_payment_review translate="label">
88
+ <label>Payment Review</label>
89
+ <frontend_type>text</frontend_type>
90
+ <sort_order>4</sort_order>
91
+ <show_in_default>1</show_in_default>
92
+ <show_in_website>1</show_in_website>
93
+ <show_in_store>1</show_in_store>
94
+ </netsol_payment_review>
95
+ <netsol_on_hold translate="label">
96
+ <label>On Hold</label>
97
+ <frontend_type>text</frontend_type>
98
+ <sort_order>5</sort_order>
99
+ <show_in_default>1</show_in_default>
100
+ <show_in_website>1</show_in_website>
101
+ <show_in_store>1</show_in_store>
102
+ </netsol_on_hold>
103
+ <netsol_closed translate="label">
104
+ <label>Closed</label>
105
+ <frontend_type>text</frontend_type>
106
+ <sort_order>6</sort_order>
107
+ <show_in_default>1</show_in_default>
108
+ <show_in_website>1</show_in_website>
109
+ <show_in_store>1</show_in_store>
110
+ </netsol_closed>
111
+ <netsol_complete translate="label">
112
+ <label>Complete</label>
113
+ <frontend_type>text</frontend_type>
114
+ <sort_order>7</sort_order>
115
+ <show_in_default>1</show_in_default>
116
+ <show_in_website>1</show_in_website>
117
+ <show_in_store>1</show_in_store>
118
+ </netsol_complete>
119
+ <netsol_suspected_fraud translate="label">
120
+ <label>Suspected Fraud</label>
121
+ <frontend_type>text</frontend_type>
122
+ <sort_order>8</sort_order>
123
+ <show_in_default>1</show_in_default>
124
+ <show_in_website>1</show_in_website>
125
+ <show_in_store>1</show_in_store>
126
+ </netsol_suspected_fraud>
127
+ <netsol_canceled translate="label">
128
+ <label>Canceled</label>
129
+ <frontend_type>text</frontend_type>
130
+ <sort_order>9</sort_order>
131
+ <show_in_default>1</show_in_default>
132
+ <show_in_website>1</show_in_website>
133
+ <show_in_store>1</show_in_store>
134
+ </netsol_canceled>
135
+ </fields>
136
+ </netsol_status_group>
137
+ </groups>
138
+ </netsolconfig>
139
+ </sections>
140
+ </config>
app/design/frontend/base/default/layout/offlineordertrack.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="head">
5
+ <action method="addItem"><type>skin_css</type><name>css/ordertrack.css</name></action>
6
+ </reference>
7
+ <reference name="top.links">
8
+ <action method="addLink" translate="label title" module="offlineordertrack" ifconfig="netsolconfig/netsol_group/netsol_enable">
9
+ <label>Order Track</label>
10
+ <url helper="offlineordertrack/trackingurl"></url>
11
+ <title>Order Track</title>
12
+ </action>
13
+ </reference>
14
+ </default>
15
+ <offlineordertrack_tracking_index>
16
+ <reference name="content">
17
+ <block type="offlineordertrack/tracking" name="offlineorder.tracking" template="netsolutions/offlineordertrack/view.phtml"/>
18
+ </reference>
19
+ </offlineordertrack_tracking_index>
20
+ <offlineordertrack_tracking_ordertrack>
21
+ <reference name="content">
22
+ <block type="offlineordertrack/tracking" name="offlineorder.tracking.track" template="netsolutions/offlineordertrack/track.phtml"/>
23
+ </reference>
24
+ </offlineordertrack_tracking_ordertrack>
25
+ </layout>
app/design/frontend/base/default/template/netsolutions/offlineordertrack/track.phtml ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ <?php }else{?>
11
+ <div id="order-result" class="orderResult">
12
+ <div class="rsNo"><span class="noText">Order #</span><span id="no-value" class="noNumber"><?php echo $this->order_number; ?></span></div>
13
+ <div class="rsStatus1">
14
+ <ul>
15
+ <li id="status1-pending" class="<?php echo ($this->status == 'pending') ? 'active':''?>">Pending</li>
16
+ <li id="status1-processing" class="<?php echo ($this->status == 'processing') ? 'active':''?>">Processing</li>
17
+ <li id="status1-completed" class="<?php echo ($this->status == 'complete')? 'active' :''?>">Complete</li>
18
+ <li id="status1-cancel" class="<?php echo ($this->status == 'canceled')? 'active' :''?>">Canceled</li>
19
+ <li id="status1-closed" class="<?php echo ($this->status == 'closed')? 'active' :''?>">Closed</li>
20
+ </ul>
21
+ </div>
22
+ <div class="rsStatus2"><span class="status2Text">Order status: </span><span id="status2-value" class="status2Value"><?php echo $this->status; ?></span></div>
23
+ <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>
24
+ <div class="rsBilled"><span class="billedText">Billed on: </span><span id="billed-value" class="billedValue"><?php echo $this->billed_on; ?></span></div>
25
+ <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>
26
+
27
+ <div class="rsOrder">
28
+ <div class="orderDetail">
29
+ <div class="detailTitle">Order Detail</div>
30
+ <div class="detailContent">
31
+ <table class="data-table">
32
+ <colgroup>
33
+ <col width="1">
34
+ <col width="1">
35
+ <col width="1">
36
+ <col width="1">
37
+ <col width="1">
38
+ <col width="1">
39
+ </colgroup>
40
+ <thead id="orderdetail-header"><?php echo $this->orderdetail_header; ?></thead>
41
+ <tbody id="orderdetail-html"><?php echo $this->orderdetail_html; ?></tbody>
42
+ </table>
43
+ <div class="detailSummary">
44
+ <table>
45
+ <tbody><tr>
46
+ <td class="s-text">Subtotal</td>
47
+ <td id="s-subtotal"><?php echo $this->subtotal; ?></td>
48
+ </tr>
49
+ <tr>
50
+ <td class="s-text">Shipping</td>
51
+ <td id="s-shipping"><?php echo $this->shipping; ?></td>
52
+ </tr>
53
+ <tr>
54
+ <td class="s-text">Tax</td>
55
+ <td id="s-tax"><?php echo $this->tax;?></td>
56
+ </tr>
57
+ <tr>
58
+ <td class="s-text"><strong>Grand Total</strong></td>
59
+ <td class="sTotal" id="s-total"><?php echo $this->grandtotal; ?></td>
60
+ </tr>
61
+ <tr>
62
+ <td class="sPayment" id="s-payment" colspan="2"></td>
63
+ </tr>
64
+ </tbody></table>
65
+ </div>
66
+ <div class="order-info-address">
67
+ <div class="order-info-box">
68
+ <!--<div>
69
+ <h2>Gift Message</h2>
70
+ <div id="gift-html"><span></span></div>
71
+ </div>-->
72
+ </div>
73
+ <div class="order-info-box">
74
+ <div class="col-1">
75
+ <div class="box">
76
+ <div class="box-title">
77
+ <h2>Billing Information</h2>
78
+ </div>
79
+ <div class="box-content">
80
+ <address id="billing-info"><?php echo $this->billing_info; ?></address>
81
+ </div>
82
+ </div>
83
+ </div>
84
+ </div>
85
+ <div class="order-info-box">
86
+ <div class="col-1">
87
+ <div class="box">
88
+ <div class="box-title">
89
+ <h2>Shipping Information</h2>
90
+ </div>
91
+ <div class="box-content">
92
+ <address id="shipping-info"><?php echo $this->shipping_info; ?></address>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ </div>
98
+ </div>
99
+ </div>
100
+ </div>
101
+ </div>
102
+
103
+ <script type="text/javascript">
104
+ jQuery('#order-result').show('slow');
105
+ </script>
106
+ <?php } ?>
app/design/frontend/base/default/template/netsolutions/offlineordertrack/view.phtml ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * package : Netsol Offline Order Track
4
+ *
5
+ * **/
6
+ $helper = $this->helper('offlineordertrack');
7
+ ?>
8
+ <?php if(Mage::Helper('offlineordertrack')->getIsEnabled()): ////if my module is enabled?>
9
+ <div>
10
+ <div class="page-title">
11
+ <h1><?php echo $this->__('Track Your Order'); ?></h1>
12
+ </div>
13
+ <div class="content-trackorder">
14
+ <form id="track-order-form" name="trackorderform" method="GET" action="<?php echo $this->getFormUrl(); ?>">
15
+ <div>
16
+ <div class="field">
17
+ <label class="required" for="order:number">Order Number</label>
18
+ <div class="input-box">
19
+ <input type="text" class="input-text required-entry validation-passed" value="" id="order:number" name="order_number" title="Order Number">
20
+ </div>
21
+ </div>
22
+ <div class="field">
23
+ <label class="required" for="order:email">Email Address</label>
24
+ <div class="input-box">
25
+ <input type="text" class="input-text validate-email required-entry validation-passed" value="" id="order:email" name="order_email" title="Email Address">
26
+ </div>
27
+ </div>
28
+ </div>
29
+ <button class="button track-order validation-passed" title="Track Order" type="submit"><span>Track order</span></button>
30
+ <div id="div-loading" class="divLoading" style="display: none;">
31
+ <span class="loadingAjax">Loading</span>
32
+ </div>
33
+ </form>
34
+ </div>
35
+ <div id="error_status"></div>
36
+ </div>
37
+ <div id="order-result" class="orderResult" style="display: none;">
38
+ <div class="rsNo"><span class="noText">Order #</span><span id="no-value" class="noNumber"></span></div>
39
+ <div class="rsStatus1">
40
+ <ul>
41
+ <li id="status1-pending">Pending</li>
42
+ <li id="status1-processing">Processing</li>
43
+ <li id="status1-completed">Complete</li>
44
+ <li id="status1-cancel">Canceled</li>
45
+ <li id="status1-closed">Closed</li>
46
+ </ul>
47
+ </div>
48
+ <div class="rsStatus2"><span class="status2Text">Order status: </span><span id="status2-value" class="status2Value"></span></div>
49
+ <div id="rs-carrier" class="rsCarrier" style="display: none;"><span class="carrierText">Carrier: </span><span id="carrier-value" class="carrierValue"></span></div>
50
+ <div class="rsBilled"><span class="billedText">Billed on: </span><span id="billed-value" class="billedValue"></span></div>
51
+ <div id="rs-shipped" class="rsShipped" style="display: none;"><span class="shippedText">Shipped on: </span><span id="shipped-value" class="shippedValue"></span></div>
52
+ <div class="rsOrder">
53
+ <div class="orderDetail">
54
+ <div class="detailTitle">Order Detail</div>
55
+ <div class="detailContent">
56
+ <table class="data-table">
57
+ <colgroup>
58
+ <col width="1">
59
+ <col width="1">
60
+ <col width="1">
61
+ <col width="1">
62
+ <col width="1">
63
+ <col width="1">
64
+ </colgroup>
65
+ <thead id="orderdetail-header"></thead>
66
+ <tbody id="orderdetail-html"></tbody>
67
+ </table>
68
+ <div class="detailSummary">
69
+ <table>
70
+ <tbody><tr>
71
+ <td class="s-text">Subtotal</td>
72
+ <td id="s-subtotal"></td>
73
+ </tr>
74
+ <tr>
75
+ <td class="s-text">Shipping</td>
76
+ <td id="s-shipping"></td>
77
+ </tr>
78
+ <tr>
79
+ <td class="s-text">Tax</td>
80
+ <td id="s-tax"></td>
81
+ </tr>
82
+ <tr>
83
+ <td class="s-text"><strong>Grand Total</strong></td>
84
+ <td class="sTotal" id="s-total"></td>
85
+ </tr>
86
+ <tr>
87
+ <td class="sPayment" id="s-payment" colspan="2"></td>
88
+ </tr>
89
+ </tbody></table>
90
+ </div>
91
+ <div class="order-info-address">
92
+ <div class="order-info-box">
93
+ <!--<div>
94
+ <h2>Gift Message</h2>
95
+ <div id="gift-html"><span></span></div>
96
+ </div>-->
97
+ </div>
98
+ <div class="order-info-box">
99
+ <div class="col-1">
100
+ <div class="box">
101
+ <div class="box-title">
102
+ <h2>Billing Information</h2>
103
+ </div>
104
+ <div class="box-content">
105
+ <address id="billing-info"></address>
106
+ </div>
107
+ </div>
108
+ </div>
109
+ </div>
110
+ <div class="order-info-box">
111
+ <div class="col-1">
112
+ <div class="box">
113
+ <div class="box-title">
114
+ <h2>Shipping Information</h2>
115
+ </div>
116
+ <div class="box-content">
117
+ <address id="shipping-info"></address>
118
+ </div>
119
+ </div>
120
+ </div>
121
+ </div>
122
+ </div>
123
+ </div>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ <?php $ajaxEnabled = Mage::getStoreConfig('netsolconfig/netsol_group/netsol_ajax_enable');?>
128
+ <script type="text/javascript">
129
+ //&lt;![CDATA[
130
+ var orderForm = new VarienForm('track-order-form', true);
131
+ //]]&gt;
132
+
133
+ jQuery("#track-order-form").submit(function()
134
+ {
135
+ jQuery('#div-loading').show();
136
+ jQuery('#order-result-false').hide('slow');
137
+ //jQuery('#order-result').hide('slow');
138
+ //jQuery('#rs-carrier').show();
139
+ jQuery('#rs-shipped').show();
140
+ //jQuery('#rs-traking').show();
141
+ var ajax = '<?php echo $ajaxEnabled; ?>';
142
+ var url = '<?php echo Mage::getBaseUrl(). "offlineordertrack/tracking/ajax/"; ?>';
143
+ var data = jQuery('#track-order-form').serialize();
144
+ data += '&isAjax=1';
145
+ if(ajax == 0)
146
+ {
147
+ var orderstatus = '<?php echo $this->status; ?>';
148
+ if (this.validator.validate()) {
149
+ document.trackorderform.submit();
150
+ if (orderstatus === 'canceled') {
151
+ jQuery('#status2-value').text('Canceled');
152
+ } else if (orderstatus === 'closed') {
153
+ jQuery('#status2-value').text('Closed');
154
+ } else if (orderstatus === 'complete') {
155
+ jQuery('#status2-value').text('Complete');
156
+ } else if (orderstatus === 'fraud') {
157
+ jQuery('#status2-value').text('Suspected Fraud');
158
+ } else if (orderstatus === 'holded') {
159
+ jQuery('#status2-value').text('On Hold');
160
+ } else if (orderstatus === 'payment_review') {
161
+ jQuery('#status2-value').text('Payment Review');
162
+ } else if (orderstatus === 'pending') {
163
+ jQuery('#status2-value').text('Pending');
164
+ } else if (orderstatus === 'pending_payment') {
165
+ jQuery('#status2-value').text('Pending Payment');
166
+ } else if (orderstatus === 'pending_paypal') {
167
+ jQuery('#status2-value').text('Pending PayPal');
168
+ } else {
169
+ jQuery('#status2-value').text('Processing');
170
+ }
171
+ if (orderstatus === 'pending' || orderstatus === 'pending_payment' || orderstatus === 'pending_paypal' || orderstatus === 'holded') {
172
+ removeActiveClass();
173
+ jQuery('#status1-pending').addClass('active');
174
+ } else if (orderstatus === 'processing' || orderstatus === 'payment_review' || orderstatus === 'fraud') {
175
+ removeActiveClass();
176
+ jQuery('#status1-processing').addClass('active');
177
+ } else if (orderstatus === 'complete') {
178
+ removeActiveClass();
179
+ jQuery('#status1-completed').addClass('active');
180
+ } else if (orderstatus === 'cancel') {
181
+ removeActiveClass();
182
+ jQuery('#status1-cancel').addClass('active');
183
+ } else if (orderstatus === 'closed') {
184
+ removeActiveClass();
185
+ jQuery('#status1-closed').addClass('active');
186
+ }
187
+ }
188
+ }else{
189
+ jQuery.ajax({
190
+ url: url,
191
+ type: "POST",
192
+ data: data,
193
+ dataType: 'json',
194
+ success: function(data)
195
+ {
196
+ jQuery('#div-loading').hide();
197
+ if (data.order_number !== '' && data.order_email !== '') {
198
+ if(data.error_status){
199
+ jQuery('#error_status').html(data.error_status);
200
+ jQuery('#error_status').show();
201
+ jQuery('#order-result').hide();
202
+ }else{
203
+ jQuery('#order-result').show('slow');
204
+ jQuery('#error_status').hide();
205
+ }
206
+ jQuery('#no-value').text(data.order_number);
207
+ jQuery('#track-order-number').text(data.order_number);
208
+ jQuery('#billed-value').text(data.billed_on);
209
+ jQuery('#status2-value').text(data.status);
210
+ jQuery('#s-subtotal').html(data.subtotal);
211
+ jQuery('#s-shipping').html(data.shipping);
212
+ jQuery('#s-tax').html(data.tax);
213
+ jQuery('#s-total').html(data.grandtotal);
214
+ jQuery('#s-payment').text('(' + data.payment + ')');
215
+ jQuery('#gift-html').html(data.gifthtml);
216
+ jQuery('#billing-info').html(data.billing_info);
217
+ jQuery('#shipping-info').html(data.shipping_info);
218
+ jQuery('#orderdetail-header').html(data.orderdetail_header);
219
+ jQuery('#orderdetail-html').html(data.orderdetail_html);
220
+
221
+
222
+ if (data.status === 'canceled') {
223
+ jQuery('#status2-value').text('Canceled');
224
+ } else if (data.status === 'closed') {
225
+ jQuery('#status2-value').text('Closed');
226
+ } else if (data.status === 'complete') {
227
+ jQuery('#status2-value').text('Complete');
228
+ } else if (data.status === 'fraud') {
229
+ jQuery('#status2-value').text('Suspected Fraud');
230
+ } else if (data.status === 'holded') {
231
+ jQuery('#status2-value').text('On Hold');
232
+ } else if (data.status === 'payment_review') {
233
+ jQuery('#status2-value').text('Payment Review');
234
+ } else if (data.status === 'pending') {
235
+ jQuery('#status2-value').text('Pending');
236
+ } else if (data.status === 'pending_payment') {
237
+ jQuery('#status2-value').text('Pending Payment');
238
+ } else if (data.status === 'pending_paypal') {
239
+ jQuery('#status2-value').text('Pending PayPal');
240
+ } else {
241
+ jQuery('#status2-value').text('Processing');
242
+ }
243
+ jQuery('#number-after').val(data.order_number);
244
+ jQuery('#email-after').val(data.order_email);
245
+
246
+ var carrier_string = '';
247
+ if(data.carriers)
248
+ {
249
+ for (var i = 0; i < data.carriers.length; i++)
250
+ {
251
+ if (data.carriers.length - i === 1) {
252
+ carrier_string += data.carriers[i];
253
+ } else {
254
+ carrier_string += data.carriers[i] + ' ';
255
+ }
256
+ }
257
+ }
258
+ if(data.shipped_dates){
259
+ jQuery('#shipped-value').text(data.shipped_dates);
260
+ }else{
261
+ jQuery('#rs-shipped').hide();
262
+ }
263
+ jQuery('#carrier-value').text(carrier_string);
264
+ if (data.shipped_dates === '') {
265
+ jQuery('#rs-carrier').hide();
266
+ jQuery('#rs-shipped').hide();
267
+ jQuery('#rs-traking').hide();
268
+ }
269
+
270
+ if (data.status === 'pending' || data.status === 'pending_payment' || data.status === 'pending_paypal' || data.status === 'holded') {
271
+ removeActiveClass();
272
+ jQuery('#status1-pending').addClass('active');
273
+ } else if (data.status === 'processing' || data.status === 'payment_review' || data.status === 'fraud') {
274
+ removeActiveClass();
275
+ jQuery('#status1-processing').addClass('active');
276
+ } else if (data.status === 'complete') {
277
+ removeActiveClass();
278
+ jQuery('#status1-completed').addClass('active');
279
+ } else if (data.status === 'cancel') {
280
+ removeActiveClass();
281
+ jQuery('#status1-cancel').addClass('active');
282
+ } else if (data.status === 'closed') {
283
+ removeActiveClass();
284
+ jQuery('#status1-closed').addClass('active');
285
+ }
286
+ }else {
287
+ jQuery('#order-result-false').show('slow');
288
+ jQuery('#order-result-false').text('Order Number or Email Adress invaild!');
289
+ }
290
+ },
291
+ error: function(error)
292
+ {
293
+ console.log(error.status);
294
+ }
295
+ });
296
+ }
297
+ return false;
298
+ });
299
+ function removeActiveClass() {
300
+ jQuery('#status1-pending').removeClass();
301
+ jQuery('#status1-processing').removeClass();
302
+ jQuery('#status1-completed').removeClass();
303
+ jQuery('#status1-cancel').removeClass();
304
+ jQuery('#status1-closed').removeClass();
305
+ }
306
+ </script>
307
+ <?php endif; ?>
app/etc/modules/Netsolutions_Offlineordertrack.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Netsolutions_Offlineordertrack>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </Netsolutions_Offlineordertrack>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Netsolutions_Offlineordertrack</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license>Open Software License</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>This extension will give order details for guest customers.</summary>
10
+ <description>This extension will give order details for guest customers.</description>
11
+ <notes>Latest version</notes>
12
+ <authors><author><name>Netsol</name><user>net_solutions</user><email>marketing@netsolutionsindia.com</email></author></authors>
13
+ <date>2015-05-22</date>
14
+ <time>09:38:49</time>
15
+ <contents><target name="magecommunity"><dir name="Netsolutions"><dir name="Offlineordertrack"><dir name="Block"><file name="Tracking.php" hash="815723f1dd9153d5762f2a80c6851ba4"/></dir><dir name="Helper"><file name="Data.php" hash="d9a1123eba396f6cdb596e165e75070e"/></dir><dir name="controllers"><file name="TrackingController.php" hash="4255b6ecdf79f913c46dc41764d2ffad"/></dir><dir name="etc"><file name="adminhtml.xml" hash="69edda440ef5de1d8399c6893baa3a0a"/><file name="config.xml" hash="62d29325a60d39adf9d65dce0b546df1"/><file name="system.xml" hash="d792001cf6694f607d2b6d82422d8922"/></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="702ba2d0a6a4daa99566f08c4666953a"/></dir><dir name="template"><dir name="netsolutions"><dir name="offlineordertrack"><file name="track.phtml" hash="71f6d6fb6fc6424f3e33e56dc17a2366"/><file name="view.phtml" hash="267a086fcb82a856ac2fa2a1b6666593"/></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="bf0b4fea49b2d909bac329ed7703b4db"/></dir><dir name="images"><file name="order-loader.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/></dir></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>
skin/frontend/base/default/css/ordertrack.css ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .trackorder-index-index .page-title ,.trackorder-index-viewtrackorder .page-title {border: 0 none; height: 25px;}
2
+ .trackorder-index-index .continue-shopping,.trackorder-index-viewtrackorder .continue-shopping {padding-bottom: 4px; text-align: right;}
3
+ .table-your-order {border: 4px solid #E8E7E3; width: 100%;font-size: 11px;margin-bottom: 20px;}
4
+ .tr-info-order td {border-bottom: 2px solid #E8E7E3;}
5
+ .trackorder-index-index .field {margin-bottom: 15px;}
6
+ .trackorder-index-index .input-box {float: none;}
7
+ .trackorder-index-index .dv-track-order input {width: 190px;}
8
+ .dv-track-order .continue-shopping a {color: #FF6666;font-size: 11px;}
9
+ .dv-track-order .continue-shopping img {margin-bottom: 0; padding: 0; vertical-align: middle;}
10
+ .trackorder-index-index .messages .error-msg {border-top: none !important;}
11
+ .table-your-order span.bold-text {font-weight: bold;}
12
+ .col1-tbl td {padding: 20px 0 30px 0;}
13
+ .table-your-order .nm-text {font-weight: normal; text-transform: capitalize;}
14
+ .table-your-order .red-text {color: #FF6666; font-weight: bold; text-transform: uppercase;}
15
+ .table-your-order .col3-tbl td {padding: 15px 0;}
16
+ .table-your-order td.td-firts, .data-table td.td-firts, .data-table .th-only-fix {padding-left: 30px;}
17
+ .table-your-order .border-tbl-bt td {border-bottom: 2px solid #EFEFEF; padding-bottom: 5px;}
18
+ .trackorder-index-viewtrackorder .data-table img {float: left; padding-right: 20px;}
19
+ .trackorder-index-viewtrackorder #my-orders-table {
20
+ -moz-border-bottom-colors: none;
21
+ -moz-border-image: none;
22
+ -moz-border-left-colors: none;
23
+ -moz-border-right-colors: none;
24
+ -moz-border-top-colors: none;
25
+ border-color: #E8E7E3;
26
+ border-style: solid;
27
+ border-width: 4px 4px 0;
28
+ margin-bottom: 0;
29
+ }
30
+ .trackorder-index-viewtrackorder #my-orders-table tbody tr td {padding-top: 10px; border-bottom: 2px solid #E8E7E3;}
31
+ .trackorder-index-viewtrackorder #my-orders-table thead th.th-only-fix {padding-left:30px !important; width: 139px;}
32
+ .hs-wit {width: 165px;}
33
+ td.td-fixed {padding-top: 5px !important;}
34
+ .sales-order-view #my-orders-table tbody tr td {padding-top: 10px;}
35
+ .track-order {margin-top:10px !important;/*background-color: #000000 !important; border-color: #000000 !important; border-radius: 14px; color: #FFFFFF !important; height: 25px !important; line-height: 25px !important; width: 100px;*/}
36
+
37
+ .orderResultFalse {margin-top: 30px; border-top: 1px solid #CCCCCC; padding: 20px 0; display: none;}
38
+ .orderResult {margin-top: 30px; border-top: 1px solid #CCCCCC; padding: 20px 0; display: none;}
39
+ .orderResult .rsStatus1 {margin: 10px 0;}
40
+ .orderResult .rsStatus1 ul li {display: inline-block; padding: 10px; border: 1px solid;}
41
+ .orderResult .rsStatus1 ul li.active {background-color: #000000; color: #ffffff; border: 1px solid #000000;}
42
+ .orderResult .rsCarrier, .orderResult .rsTraking, .orderResult .rsShipped {display: none;}
43
+ .orderResult .orderLinks {margin-top: 10px;}
44
+ .orderResult .orderLinks button.button span {background-color: transparent; color: #000000; text-decoration: underline; border: none; padding: 0;}
45
+ .divLoading {margin-top: 10px; display: none;}
46
+ .loadingAjax {background: url("../images/order-loader.gif") no-repeat scroll 0 0 rgba(0, 0, 0, 0); padding-left: 23px;}
47
+ .orderResult .dataImage {float: left; padding-right: 20px;}
48
+ .orderResult .dataTotal {text-align: right;}
49
+ .orderResult .detailTitle {color: #0A263C; font-size: 20px; margin: 20px 0;}
50
+ .orderResult .order-info-address {margin-top: 15px;}
51
+ .orderResult .detailSummary {padding: 5px 15px; background: none repeat scroll 0 0 #DEE5E8; border: 1px solid #BEBCB7;}
52
+ .orderResult .detailSummary table {width: 100%;}
53
+ .orderResult .detailSummary td {text-align: right;}
54
+ .orderResult .detailSummary td.s-text {width: 90%;}
55
+ .orderResult .detailSummary td.sTotal {font-weight: bold; font-size: 15px;}
56
+ .orderResult .detailSummary td strong {font-size: 15px;}
57
+ .orderResult .detailSummary td.sPayment {font-style: italic;}
58
+ .orderResult .trakingTitle {color: #0A263C; font-size: 20px; margin: 20px 0;}
59
+ .orderResult .trackCarrier {color: #0000FF; font-size: 14px; font-weight: bold;}
60
+ #track-order-form .field label {font-size: 14px; font-weight: bold;}
61
+ .status2Value,.carrierValue,.billedValue,.shippedValue{font-weight:bold;}
62
+ .trackorder-notajax .orderResult {display: block; margin-top: 0; padding: 0; margin-bottom: 15px;}
63
+ .trackorder-notajax .orderResult .rsNo {margin-top: 15px;}
64
+ .orderResult #orderdetail-html .dataStyle{padding:0 0 0 4px;float: left;}
65
+ .orderResult .dataName{margin:0 0 0 0 !important;}
66
+ @media only screen and (max-width: 480px) {
67
+ .orderResult .rsStatus1 ul li {display: block;}
68
+ .trackorder-index-index .dv-track-order input {width: 100%;}
69
+ .orderResult .data-table {width: 100%;}
70
+ .orderResult .data-table td {padding: 2px;}
71
+ .orderResult .data-table th {padding: 0;}
72
+ .orderResult .dataImage {padding-right: 10px;}
73
+ .orderResult .dataName {font-size: 12px; float: left;}
74
+ }
skin/frontend/base/default/images/order-loader.gif ADDED
Binary file