trackorder_module - Version 0.1.0

Version Notes

-New Release

Download this release

Release Info

Developer Biztech
Extension trackorder_module
Version 0.1.0
Comparing to
See all releases


Version 0.1.0

app/code/local/Biztech/Trackorder/Block/Trackorder.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Biztech_Trackorder_Block_Trackorder extends Mage_Core_Block_Template
3
+ {
4
+ public function _prepareLayout()
5
+ {
6
+ return parent::_prepareLayout();
7
+ }
8
+
9
+ public function getTrackorder()
10
+ {
11
+ if (!$this->hasData('trackorder')) {
12
+ $this->setData('trackorder', Mage::registry('current_order'));
13
+ }
14
+ return $this->getData('trackorder');
15
+
16
+ }
17
+ public function getTrackInfo($order)
18
+ {
19
+ $shipTrack = array();
20
+ if ($order) {
21
+ $shipments = $order->getShipmentsCollection();
22
+ foreach ($shipments as $shipment){
23
+ $increment_id = $shipment->getIncrementId();
24
+ $tracks = $shipment->getTracksCollection();
25
+
26
+ $trackingInfos=array();
27
+ foreach ($tracks as $track){
28
+ $trackingInfos[] = $track->getNumberDetail();
29
+ }
30
+ $shipTrack[$increment_id] = $trackingInfos;
31
+ }
32
+ }
33
+ return $shipTrack;
34
+ }
35
+ }
app/code/local/Biztech/Trackorder/Helper/Data.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Biztech_Trackorder_Helper_Data extends Mage_Core_Helper_Abstract
4
+ {
5
+ public function getTrackorderUrl()
6
+ {
7
+ return $this->_getUrl('trackorder/index');
8
+ }
9
+ }
app/code/local/Biztech/Trackorder/controllers/IndexController.php ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Biztech_Trackorder_IndexController extends Mage_Core_Controller_Front_Action
3
+ {
4
+ public function indexAction()
5
+ {
6
+ $this->loadLayout();
7
+ $this->renderLayout();
8
+ }
9
+ public function validate(){
10
+
11
+ }
12
+ public function initOrder(){
13
+ if ($data = $this->getRequest()->getPost()) {
14
+ $orderId = $data["order_id"];
15
+ $email = $data["email"];
16
+ $order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
17
+ $cEmail = $order->getCustomerEmail();
18
+ if($cEmail == trim($email)){
19
+ Mage::register('current_order',$order);
20
+ } else {
21
+ Mage::register('current_order',Mage::getModel("sales/order"));
22
+ }
23
+
24
+ }
25
+ }
26
+ public function trackAction()
27
+ {
28
+ //$orderId = $this->getRequest()->getPost()
29
+ $post = $this->getRequest()->getPost();
30
+ if ( $post ) {
31
+ try {
32
+ if (!Zend_Validate::is(trim($post['order_id']) , 'NotEmpty')) {
33
+ $error = true;
34
+ }
35
+ if (!Zend_Validate::is(trim($post['email']), 'NotEmpty')) {
36
+ $error = true;
37
+ }
38
+ if (!Zend_Validate::is(trim($post['email']), 'EmailAddress')) {
39
+ $error = true;
40
+ }
41
+ if ($error) {
42
+ throw new Exception();
43
+ }
44
+ $this->initOrder($post);
45
+ $order = Mage::registry('current_order');
46
+ if($order->getId()){
47
+
48
+ $this->getResponse()->setBody($this->getLayout()->getMessagesBlock()->getGroupedHtml().$this->_getGridHtml());
49
+ return;
50
+ /*$this->loadLayout();
51
+ $this->renderLayout(); */
52
+ } else {
53
+ Mage::getSingleton('core/session')->addError(Mage::helper('contacts')->__('Order Not Found.Please try again later'));
54
+ $this->getResponse()->setBody($this->getLayout()->getMessagesBlock()->getGroupedHtml());
55
+ return;
56
+ }
57
+
58
+
59
+ }catch (Exception $e) {
60
+ Mage::getSingleton('core/session')->addError(Mage::helper('trackorder')->__('Please Enter Order Detail.'));
61
+ $this->getResponse()->setBody($this->getLayout()->getMessagesBlock()->getGroupedHtml());
62
+ return;
63
+
64
+ }
65
+ } else {
66
+ $this->_redirect('*/*/');
67
+ }
68
+
69
+ }
70
+ protected function _getGridHtml()
71
+ {
72
+ $layout = $this->getLayout();
73
+ $update = $layout->getUpdate();
74
+ $update->load("trackorder_index_track");
75
+ $layout->generateXml();
76
+ $layout->generateBlocks();
77
+ $output = $layout->getOutput();
78
+ return $output;
79
+ }
80
+ }
app/code/local/Biztech/Trackorder/etc/config.xml ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Biztech
5
+ * @package Biztech_Trackorder
6
+ * @author ModuleCreator
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ -->
10
+ <config>
11
+ <modules>
12
+ <Biztech_Trackorder>
13
+ <version>0.1.0</version>
14
+ </Biztech_Trackorder>
15
+ </modules>
16
+ <frontend>
17
+ <routers>
18
+ <trackorder>
19
+ <use>standard</use>
20
+ <args>
21
+ <module>Biztech_Trackorder</module>
22
+ <frontName>trackorder</frontName>
23
+ </args>
24
+ </trackorder>
25
+ </routers>
26
+ <layout>
27
+ <updates>
28
+ <trackorder>
29
+ <file>trackorder.xml</file>
30
+ </trackorder>
31
+ </updates>
32
+ </layout>
33
+ </frontend>
34
+ <admin>
35
+ <routers>
36
+ <trackorder>
37
+ <use>admin</use>
38
+ <args>
39
+ <module>Biztech_Trackorder</module>
40
+ <frontName>trackorder</frontName>
41
+ </args>
42
+ </trackorder>
43
+ </routers>
44
+ </admin>
45
+ <adminhtml>
46
+ <acl>
47
+ <resources>
48
+ <all>
49
+ <title>Allow Everything</title>
50
+ </all>
51
+ <admin>
52
+ <children>
53
+ <Biztech_Trackorder>
54
+ <title>Trackorder Module</title>
55
+ <sort_order>10</sort_order>
56
+ </Biztech_Trackorder>
57
+ <system>
58
+ <children>
59
+ <config>
60
+ <children>
61
+ <trackorder>
62
+ <title>Track Order</title>
63
+ </trackorder>
64
+ </children>
65
+ </config>
66
+ </children>
67
+ </system>
68
+ </children>
69
+ </admin>
70
+ </resources>
71
+ </acl>
72
+ <layout>
73
+ <updates>
74
+ <trackorder>
75
+ <file>trackorder.xml</file>
76
+ </trackorder>
77
+ </updates>
78
+ </layout>
79
+ </adminhtml>
80
+ <global>
81
+ <models>
82
+ <trackorder>
83
+ <class>Biztech_Trackorder_Model</class>
84
+ <resourceModel>trackorder_mysql4</resourceModel>
85
+ </trackorder>
86
+ <trackorder_mysql4>
87
+ <class>Biztech_Trackorder_Model_Mysql4</class>
88
+ <entities>
89
+ <trackorder>
90
+ <table>trackorder</table>
91
+ </trackorder>
92
+ </entities>
93
+ </trackorder_mysql4>
94
+ </models>
95
+ <resources>
96
+ <trackorder_setup>
97
+ <setup>
98
+ <module>Biztech_Trackorder</module>
99
+ </setup>
100
+ <connection>
101
+ <use>core_setup</use>
102
+ </connection>
103
+ </trackorder_setup>
104
+ <trackorder_write>
105
+ <connection>
106
+ <use>core_write</use>
107
+ </connection>
108
+ </trackorder_write>
109
+ <trackorder_read>
110
+ <connection>
111
+ <use>core_read</use>
112
+ </connection>
113
+ </trackorder_read>
114
+ </resources>
115
+ <blocks>
116
+ <trackorder>
117
+ <class>Biztech_Trackorder_Block</class>
118
+ </trackorder>
119
+ </blocks>
120
+ <helpers>
121
+ <trackorder>
122
+ <class>Biztech_Trackorder_Helper</class>
123
+ </trackorder>
124
+ </helpers>
125
+ </global>
126
+ </config>
app/code/local/Biztech/Trackorder/etc/system.xml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <config>
3
+ <tabs>
4
+ <biztech translate="label" module="trackorder">
5
+ <label>Biztech Extensions</label>
6
+ <sort_order>400</sort_order>
7
+ </biztech>
8
+ </tabs>
9
+ <sections>
10
+ <trackorder translate="label" module="trackorder">
11
+ <label>Track Order</label>
12
+ <tab>biztech</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>10</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <trackorder_general translate="label">
20
+ <label>General</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>10</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+ <fields>
27
+ <enabled translate="label">
28
+ <label>Enabled</label>
29
+ <frontend_type>select</frontend_type>
30
+ <source_model>adminhtml/system_config_source_yesno</source_model>
31
+ <sort_order>1</sort_order>
32
+ <show_in_default>1</show_in_default>
33
+ <show_in_website>1</show_in_website>
34
+ <show_in_store>1</show_in_store>
35
+ <comment>Select Yes to enable this feature.</comment>
36
+ </enabled>
37
+ </fields>
38
+ </trackorder_general>
39
+ </groups>
40
+ </trackorder>
41
+ </sections>
42
+ </config>
app/design/frontend/default/default/layout/trackorder.xml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="top.links">
5
+ <action method="addLink" translate="label title" module="trackorder" ifconfig="trackorder/trackorder_general/enabled" ><label>Trackorder</label><url helper="trackorder/getTrackorderUrl"/><title>Trackorder</title><prepare/><urlParams/><position>20</position></action>
6
+ </reference>
7
+ </default>
8
+ <trackorder_index_index>
9
+ <reference name="head">
10
+ <action method="addCss" ><stylesheet>trackorder/css/trackorder.css</stylesheet></action>
11
+ </reference>
12
+ <reference name="root">
13
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
14
+ <action method="setHeaderTitle" translate="title" module="trackorder"><title>Track Your Order</title></action>
15
+ </reference>
16
+ <reference name="content">
17
+ <block type="trackorder/trackorder" name="trackorder" template="trackorder/trackorder.phtml" />
18
+ </reference>
19
+ </trackorder_index_index>
20
+ <trackorder_index_track>
21
+ <reference name="content">
22
+ <block type="trackorder/trackorder" name="root" output="toHtml" template="trackorder/trackdetail.phtml">
23
+
24
+ </block>
25
+ </reference>
26
+ </trackorder_index_track>
27
+ </layout>
app/design/frontend/default/default/template/trackorder/trackdetail.phtml ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $order = $this->getTrackOrder();
3
+ $shipTrack = array();
4
+ if ($order) {
5
+ $shipments = $order->getShipmentsCollection();
6
+ foreach ($shipments as $shipment){
7
+ $increment_id = $shipment->getIncrementId();
8
+ $tracks = $shipment->getTracksCollection();
9
+
10
+ $trackingInfos=array();
11
+ foreach ($tracks as $track){
12
+ $trackingInfos[] = $track->getNumberDetail();
13
+ }
14
+ $shipTrack[$increment_id] = $trackingInfos;
15
+ }
16
+ }
17
+ ?>
18
+ <?php $_results = $shipTrack; ?>
19
+ <div class="page-title title-buttons">
20
+ <h1><?php echo $this->__('Tracking Information'); ?></h1>
21
+ </div>
22
+
23
+ <p><?php echo $this->__("Your Order Status is :")?> <strong><?php echo $order->getStatusLabel() ?></strong></p>
24
+
25
+ <?php if(sizeof($_results)>0): ?>
26
+ <?php foreach($_results as $shipid => $_result): ?>
27
+ <?php if($shipid): ?>
28
+ <h4><?php echo $this->__('Shipment #').$shipid; ?></h4>
29
+ <?php endif; ?>
30
+ <?php if(sizeof($_result)>0): ?>
31
+ <?php $rowCount = sizeof($_result); $counter = 1; ?>
32
+ <?php foreach($_result as $track): ?>
33
+ <table class="data-table track-data-table">
34
+ <col width="15%" />
35
+ <col />
36
+ <tbody>
37
+ <?php if(is_object($track)): ?>
38
+ <tr>
39
+ <th><?php echo $this->__('Tracking Number:'); ?></th>
40
+ <td><?php echo $track->getTracking(); ?></td>
41
+ </tr>
42
+ <?php if ($track->getCarrierTitle()): ?>
43
+ <tr>
44
+ <th><?php echo $this->__('Carrier:'); ?></th>
45
+ <td><?php echo $track->getCarrierTitle(); ?></td>
46
+ </tr>
47
+ <?php endif; ?>
48
+ <?php if($track->getErrorMessage()): ?>
49
+ <tr>
50
+ <th><?php echo $this->__('Error:'); ?></th>
51
+ <td class="error"><?php if ((bool) Mage::getStoreConfig('contacts/contacts/enabled')) : ?><a href="<?php echo $this->getUrl('contacts') ?>" onclick="this.target='_blank'"><?php echo $this->__('Click here') ?></a><?php echo $this->__(' to get details or '); endif; echo $this->__('email us at '); ?><a href="mailto:<?php echo Mage::getStoreConfig('trans_email/ident_support/email'); ?>"><?php echo Mage::getStoreConfig('trans_email/ident_support/email') ?></a>
52
+
53
+ </td>
54
+ </tr>
55
+ <?php elseif($track->getTrackSummary()): ?>
56
+ <tr>
57
+ <th><?php echo $this->__('Info:'); ?></th>
58
+ <td><?php echo $track->getTrackSummary(); ?></td>
59
+ </tr>
60
+ <?php elseif($track->getUrl()): ?>
61
+ <tr>
62
+ <th><?php echo $this->__('Track:'); ?></th>
63
+ <td><a href="<?php echo $track->getUrl(); ?>" onclick="this.target='_blank'"><?php echo $this->__('Click here to get details'); ?></a></td>
64
+ </tr>
65
+ <?php else: ?>
66
+ <?php if ($track->getStatus()): ?>
67
+ <tr>
68
+ <th><?php echo $this->__('Status:'); ?></th>
69
+ <td><?php echo $track->getStatus(); ?></td>
70
+ </tr>
71
+ <?php endif; ?>
72
+
73
+ <?php if ($track->getDeliverydate()): ?>
74
+ <tr>
75
+ <th><?php echo $this->__('Delivered on:'); ?></th>
76
+ <td><?php echo $this->formatDeliveryDateTime($track->getDeliverydate(),$track->getDeliverytime()); ?></td>
77
+ </tr>
78
+ <?php endif; ?>
79
+
80
+ <?php if ($track->getSignedby()): ?>
81
+ <tr>
82
+ <th><?php echo $this->__('Signed by:'); ?></th>
83
+ <td><?php echo $track->getSignedby(); ?></td>
84
+ </tr>
85
+ <?php endif; ?>
86
+
87
+ <?php if ($track->getDeliveryLocation()): ?>
88
+ <tr>
89
+ <th><?php echo $this->__('Delivered to:'); ?></th>
90
+ <td><?php echo $track->getDeliveryLocation(); ?></td>
91
+ </tr>
92
+ <?php endif; ?>
93
+
94
+ <?php if ($track->getShippedDate()): ?>
95
+ <tr>
96
+ <th><?php echo $this->__('Shipped or billed on:'); ?></th>
97
+ <td><?php echo $track->getShippedDate(); ?></td>
98
+ </tr>
99
+ <?php endif; ?>
100
+
101
+ <?php if ($track->getService()): ?>
102
+ <tr>
103
+ <th><?php echo $this->__('Service Type:'); ?></th>
104
+ <td><?php echo $track->getService(); ?></td>
105
+ </tr>
106
+ <?php endif; ?>
107
+
108
+ <?php if ($track->getWeight()): ?>
109
+ <tr>
110
+ <th><?php echo $this->__('Weight:'); ?></th>
111
+ <td><?php echo $track->getWeight(); ?></td>
112
+ </tr>
113
+ <?php endif; ?>
114
+
115
+ <?php endif; ?>
116
+ <?php elseif(isset($track['title']) && isset($track['number']) && $track['number']): ?>
117
+ <!--if the tracking is custom value-->
118
+ <tr>
119
+ <th><?php echo ($track['title'] ? $this->escapeHtml($track['title']) : $this->__('N/A')); ?>:</th>
120
+ <td><?php echo (isset($track['number']) ? $this->escapeHtml($track['number']) : ''); ?></td>
121
+ </tr>
122
+ <?php endif; ?>
123
+ </tbody>
124
+ </table>
125
+
126
+ <?php if (is_object($track) && sizeof($track->getProgressdetail())>0): ?>
127
+ <table class="data-table" id="track-history-table-<?php echo $track->getTracking(); ?>">
128
+ <col />
129
+ <col width="1" />
130
+ <col width="1" />
131
+ <col />
132
+ <thead>
133
+ <tr>
134
+ <th><?php echo $this->__('Location') ?></th>
135
+ <th><?php echo $this->__('Date') ?></th>
136
+ <th><?php echo $this->__('Local Time') ?></th>
137
+ <th><?php echo $this->__('Description') ?></th>
138
+ </tr>
139
+ </thead>
140
+ <tbody>
141
+ <?php foreach($track->getProgressdetail() as $_detail): ?>
142
+ <?php $_detailDate = (isset($_detail['deliverydate']) ? $this->formatDeliveryDate($_detail['deliverydate']) : '') ?>
143
+ <?php $_detailTime = (isset($_detail['deliverytime']) ? $this->formatDeliveryTime($_detail['deliverytime'], $_detailDate) : '') ?>
144
+ <tr>
145
+ <td><?php echo (isset($_detail['deliverylocation']) ? $_detail['deliverylocation'] : ''); ?></td>
146
+ <td><?php echo $_detailDate ?></td>
147
+ <td><?php echo $_detailTime ?></td>
148
+ <td><?php echo (isset($_detail['activity']) ? $_detail['activity'] : '') ?></td>
149
+ </tr>
150
+ <?php endforeach; ?>
151
+ </tbody>
152
+ </table>
153
+
154
+ <script type="text/javascript">decorateTable('track-history-table-<?php echo $track->getTracking(); ?>');</script>
155
+ <?php endif; ?>
156
+ <?php if($counter!=$rowCount): ?>
157
+ <?php endif; ?>
158
+ <?php $counter++; ?>
159
+
160
+ <?php endforeach; ?>
161
+ <!--end for each tracking information-->
162
+ <?php else: ?>
163
+ <p><?php echo $this->__('There is no tracking available for this shipment.'); ?></p>
164
+ <?php endif; ?>
165
+
166
+ <?php endforeach; ?>
167
+ <?php else: ?>
168
+ <div><?php echo $this->__('There is no tracking available.'); ?></div>
169
+ <?php endif; ?>
170
+
app/design/frontend/default/default/template/trackorder/trackorder.phtml ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if(Mage::getStoreConfig('trackorder/trackorder_general/enabled')):
3
+ ?>
4
+ <div class="page-title"><h1><?php echo $this->__('Track Your Order ') ?></h1></div>
5
+ <div class="form-list">
6
+ <form name="track_order" id="track_order" action="" method="post" onsubmit="sendAjax('track_order','<?php echo Mage::getUrl('*/*/track');?>'); return false;">
7
+ <ul class="form-list">
8
+ <li>
9
+ <label for="order_id" class="required"><em>*</em><?php echo $this->__('Order Id') ?></label>
10
+ <div class="input-box">
11
+ <input type="text" name="order_id" id="order_id" value="" title="" class="input-text required-entry" />
12
+ </div>
13
+ </li>
14
+ <li>
15
+ <label for="email_address" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
16
+ <div class="input-box" >
17
+ <input type="text" name="email" id="email_address" value="" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
18
+ </div>
19
+ </li>
20
+ </ul>
21
+ <div class="buttons-set">
22
+ <button type="submit" class="button" title="<?php echo $this->__('Track Order') ?>" name="track" id="track"><span><span><?php echo $this->__('Track Order') ?></span></span></button>
23
+ </div>
24
+
25
+ </form>
26
+ <div id="loading-details" class="loading-details" style="display:none">
27
+ <div id="loading-mask" >
28
+ <p class="loader" id="loading_mask_loader"><img src="<?php echo $this->getSkinUrl('trackorder/images/ajax-loader-tr.gif') ?>" alt="<?php echo Mage::helper('adminhtml')->__('Loading...') ?>"/><br/><?php echo $this->__('Please wait...') ?></p>
29
+ </div>
30
+ </div>
31
+ </div>
32
+
33
+
34
+
35
+ <div id="oderinfo" class="order-info-message"></div>
36
+
37
+
38
+
39
+ <script type="text/javascript">
40
+ var validateForm = new VarienForm('track_order', true);
41
+ </script>
42
+ <script type="text/javascript">
43
+
44
+ function sendAjax(frmId,url){
45
+ if (!validateForm.validator.validate()) {
46
+ return;
47
+ }
48
+ var data = $(frmId).serialize(this);
49
+ $("loading-details").show();
50
+ new Ajax.Updater(
51
+ {
52
+ success:"oderinfo"
53
+ },
54
+ url,
55
+ {
56
+ asynchronous:true,
57
+ evalScripts:false,
58
+ onComplete:function(request, json){
59
+ $("loading-details").hide();
60
+ return false;
61
+ },
62
+ onLoading:function(request, json){},
63
+ parameters:data
64
+ }
65
+ );
66
+ return false;
67
+ }
68
+
69
+ </script>
70
+ <?php else: ?>
71
+ <?php
72
+ $url = Mage::getBaseUrl();
73
+ Mage::app()->getFrontController()->getResponse()->setRedirect($url);
74
+ ?>
75
+ <?php endif; ?>
76
+
app/etc/modules/Biztech_Trackorder.xml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Biztech
5
+ * @package Biztech_Trackorder
6
+ * @author ModuleCreator
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ -->
10
+ <config>
11
+ <modules>
12
+ <Biztech_Trackorder>
13
+ <active>true</active>
14
+ <codePool>local</codePool>
15
+ <depends>
16
+ <Mage_Sales/>
17
+ </depends>
18
+ </Biztech_Trackorder>
19
+ </modules>
20
+ </config>
package.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>trackorder_module</name>
4
+ <version>0.1.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Track Order Extension allows the buyers to check the status of their orders without logging in to their account. </summary>
10
+ <description>Our &#x201C;Track Order&#x201D; Extension allows the buyers to check the status of their orders without logging in to their account. Customer can also check the tracking information of shipment using this extension. &#xD;
11
+ A link called &#x201C;Track Order&#x201D; will be automatically inserted in the header part and footer menu of the site. The customer (buyer) will simply have to fill the order number and email address, and they will be shown the order status with all its details including the shipment tracking information. The details will include links to shipment provider&#x2019;s site to track order directly.&#xD;
12
+ Key Features of the Extension&#xD;
13
+ &#x2022; Customer allowed to track order without login&#xD;
14
+ &#x2022; Show Order status&#xD;
15
+ &#x2022; Show Order Shipment Tracking&#xD;
16
+ &#x2022; Show Links to Shipment Provider&#x2019;s site&#xD;
17
+ </description>
18
+ <notes>-New Release</notes>
19
+ <authors><author><name>Biztech</name><user>biztechcon</user><email>sales@biztechconsultancy.com</email></author></authors>
20
+ <date>2014-01-07</date>
21
+ <time>10:43:17</time>
22
+ <contents><target name="mageetc"><dir name="modules"><file name="Biztech_Trackorder.xml" hash="2dc128b849316f8f053e2d482ab2ec04"/></dir></target><target name="magelocal"><dir name="Biztech"><dir name="Trackorder"><dir name="Block"><file name="Trackorder.php" hash="07689f6dca91b08cf48e9d73edab159d"/></dir><dir name="Helper"><file name="Data.php" hash="66c8dcb0194732d45383e99cd7403e3a"/></dir><dir name="controllers"><file name="IndexController.php" hash="82a4234b51982a8cec2f8c4bb5f72537"/></dir><dir name="etc"><file name="config.xml" hash="c51229574a50dc3a444d35ca37082521"/><file name="system.xml" hash="10f6fc3bf3604e1ac384d71f3992f260"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="trackorder.xml" hash="0d6b3c2976c965a8ccc4fb673f404d30"/></dir><dir name="template"><dir name="trackorder"><file name="trackdetail.phtml" hash="6ba0cbb0c33bab8ad7aa4845c931994a"/><file name="trackorder.phtml" hash="9c79ce025d46e9640ddaa614ff8f8032"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="trackorder"><dir name="css"><file name="trackorder.css" hash="0881bdff2e8cc79c4fbc127e7d62283e"/></dir><dir name="images"><file name="Thumbs.db" hash="2e44a69c8cd5d418657605eeaef20c08"/><file name="ajax-loader-tr.gif" hash="1ae32bc8232ff2527c627e5b38eb319a"/><file name="ajax-loader.gif" hash="57ca1a2085d82f0574e3ef740b9a5ead"/><file name="main-bg.png" hash="615e539beac7fc4ad7b6aa7e519ca2ee"/></dir></dir></dir></dir></dir></target></contents>
23
+ <compatible/>
24
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
25
+ </package>
skin/frontend/default/default/trackorder/css/trackorder.css ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ .loading-details { background: url("../images/main-bg.png") repeat scroll 0 0 transparent; height: 100%; left: 0; position: fixed; top: 0; width: 100%; z-index: 99; }
2
+ #loading-details .update-popup { position:fixed; top:45%; left:45%; width:300px; margin-left:-105px; padding:15px 30px; background:#fff; color:#d85909; font-weight:bold; text-align:center; z-index:400;webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px;}
3
+ #loading-mask { background: none repeat scroll 0 0 #F5F5F5; border: 1px solid #F18200; margin: 20% auto; padding: 15px; text-align: center; width: 200px;}
4
+ #loading-mask p{ margin-bottom:0;}
5
+
6
+ .track-data-table{ margin-bottom:20px;}
7
+
8
+ .order-info-message{ padding-top: 15px;}
skin/frontend/default/default/trackorder/images/Thumbs.db ADDED
Binary file
skin/frontend/default/default/trackorder/images/ajax-loader-tr.gif ADDED
Binary file
skin/frontend/default/default/trackorder/images/ajax-loader.gif ADDED
Binary file
skin/frontend/default/default/trackorder/images/main-bg.png ADDED
Binary file