Version Notes
supee patch 6788
Download this release
Release Info
Developer | Biztech |
Extension | trackorder_module |
Version | 0.1.5 |
Comparing to | |
See all releases |
Code changes from version 0.1.4 to 0.1.5
- app/code/local/Biztech/All/Helper/Data.php +0 -6
- app/code/local/Biztech/All/Model/All.php +0 -10
- app/code/local/Biztech/All/Model/Mysql4/All.php +0 -10
- app/code/local/Biztech/All/Model/Mysql4/All/Collection.php +0 -10
- app/code/local/Biztech/All/Model/Source/Updates/Type.php +0 -50
- app/code/local/Biztech/All/Model/Status.php +0 -15
- app/code/local/Biztech/All/Model/Update.php +0 -93
- app/code/local/Biztech/All/etc/config.xml +0 -147
- app/code/local/Biztech/All/etc/system.xml +0 -46
- app/code/local/Biztech/Trackorder/Model/Observer.php +13 -13
- app/code/local/Biztech/Trackorder/etc/config.xml +167 -168
- app/etc/modules/Biztech_All.xml +0 -52
- package.xml +8 -53
app/code/local/Biztech/All/Helper/Data.php
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Biztech_All_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
-
{
|
5 |
-
|
6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Biztech/All/Model/All.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Biztech_All_Model_All extends Mage_Core_Model_Abstract
|
4 |
-
{
|
5 |
-
public function _construct()
|
6 |
-
{
|
7 |
-
parent::_construct();
|
8 |
-
$this->_init('all/all');
|
9 |
-
}
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Biztech/All/Model/Mysql4/All.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Biztech_All_Model_Mysql4_All extends Mage_Core_Model_Mysql4_Abstract
|
4 |
-
{
|
5 |
-
public function _construct()
|
6 |
-
{
|
7 |
-
// Note that the all_id refers to the key field in your database table.
|
8 |
-
$this->_init('all/all', 'all_id');
|
9 |
-
}
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Biztech/All/Model/Mysql4/All/Collection.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Biztech_All_Model_Mysql4_All_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
4 |
-
{
|
5 |
-
public function _construct()
|
6 |
-
{
|
7 |
-
parent::_construct();
|
8 |
-
$this->_init('all/all');
|
9 |
-
}
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Biztech/All/Model/Source/Updates/Type.php
DELETED
@@ -1,50 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the EULA
|
8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
*/
|
11 |
-
|
12 |
-
class Biztech_All_Model_Source_Updates_Type extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
|
13 |
-
{
|
14 |
-
const TYPE_UPDATE_RELEASE = 'UPDATE_RELEASE';
|
15 |
-
const TYPE_INSTALLED_UPDATE = 'INSTALLED_UPDATE';
|
16 |
-
public function toOptionArray()
|
17 |
-
{
|
18 |
-
return array(
|
19 |
-
array('value' => self::TYPE_INSTALLED_UPDATE, 'label' => Mage::helper('all')->__('My extensions updates')),
|
20 |
-
array('value' => self::TYPE_UPDATE_RELEASE, 'label' => Mage::helper('all')->__('All extensions updates')),
|
21 |
-
);
|
22 |
-
}
|
23 |
-
|
24 |
-
public function getAllOptions()
|
25 |
-
{
|
26 |
-
return $this->toOptionArray();
|
27 |
-
}
|
28 |
-
|
29 |
-
|
30 |
-
public function getLabel($value)
|
31 |
-
{
|
32 |
-
$options = $this->toOptionArray();
|
33 |
-
foreach ($options as $v) {
|
34 |
-
if ($v['value'] == $value) {
|
35 |
-
return $v['label'];
|
36 |
-
}
|
37 |
-
}
|
38 |
-
return '';
|
39 |
-
}
|
40 |
-
|
41 |
-
public function getGridOptions()
|
42 |
-
{
|
43 |
-
$items = $this->getAllOptions();
|
44 |
-
$out = array();
|
45 |
-
foreach ($items as $item) {
|
46 |
-
$out[$item['value']] = $item['label'];
|
47 |
-
}
|
48 |
-
return $out;
|
49 |
-
}
|
50 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Biztech/All/Model/Status.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Biztech_All_Model_Status extends Varien_Object
|
4 |
-
{
|
5 |
-
const STATUS_ENABLED = 1;
|
6 |
-
const STATUS_DISABLED = 2;
|
7 |
-
|
8 |
-
static public function getOptionArray()
|
9 |
-
{
|
10 |
-
return array(
|
11 |
-
self::STATUS_ENABLED => Mage::helper('all')->__('Enabled'),
|
12 |
-
self::STATUS_DISABLED => Mage::helper('all')->__('Disabled')
|
13 |
-
);
|
14 |
-
}
|
15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Biztech/All/Model/Update.php
DELETED
@@ -1,93 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Biztech_All_Model_Update extends Mage_Core_Helper_Abstract
|
4 |
-
{
|
5 |
-
|
6 |
-
const UPDATE_NOTIFICATION_FEED_URL = 'http://store.biztechconsultancy.com/rss/catalog/new/store_id/1/';
|
7 |
-
public function getInterests()
|
8 |
-
{
|
9 |
-
$types = @explode(',', Mage::getStoreConfig('all/all_general/interests'));
|
10 |
-
return $types;
|
11 |
-
}
|
12 |
-
public function isExtensionInstalled($code)
|
13 |
-
{
|
14 |
-
|
15 |
-
$modules = array_keys((array)Mage::getConfig()->getNode('modules')->children());
|
16 |
-
foreach ($modules as $moduleName) {
|
17 |
-
if ($moduleName == $code) {
|
18 |
-
return true;
|
19 |
-
}
|
20 |
-
}
|
21 |
-
return false;
|
22 |
-
}
|
23 |
-
|
24 |
-
public function check()
|
25 |
-
{
|
26 |
-
if ((time() - Mage::app()->loadCache('biztech_all_updates_feed_lastcheck')) > Mage::getStoreConfig('all/all_general/check_frequency')) {
|
27 |
-
$this->refresh();
|
28 |
-
}
|
29 |
-
}
|
30 |
-
|
31 |
-
public function refresh()
|
32 |
-
{
|
33 |
-
$types = array();
|
34 |
-
$feedData = array();
|
35 |
-
$extensio_module = array();
|
36 |
-
try{
|
37 |
-
$xml = false;
|
38 |
-
$limit_context = stream_context_create(array('http'=>array('timeout' => 5)));
|
39 |
-
$xml = file_get_contents(self::UPDATE_NOTIFICATION_FEED_URL,true,$limit_context);
|
40 |
-
$xml = simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA);//LIBXML_NOCDATA LIBXML_NOWARNING
|
41 |
-
|
42 |
-
if($xml != false){
|
43 |
-
$interests = $this->getInterests();
|
44 |
-
if(!empty($interests[0])){
|
45 |
-
$isInterestedInSelfUpgrades = in_array(Biztech_All_Model_Source_Updates_Type::TYPE_INSTALLED_UPDATE, $interests);
|
46 |
-
$isInterestedInAllUpgrades = in_array(Biztech_All_Model_Source_Updates_Type::TYPE_UPDATE_RELEASE, $interests);
|
47 |
-
$modules = Mage::getConfig()->getNode('modules')->children();
|
48 |
-
$modulesArray = (array)$modules;
|
49 |
-
foreach($xml->channel->item as $keys=>$extensions) {
|
50 |
-
$types[] = (string) $extensions->update_notifications->type;
|
51 |
-
$extensions_name = (string)$extensions->update_notifications->extensions;
|
52 |
-
|
53 |
-
if((string)$extensions->update_notifications->date!=""&&(string)$extensions->update_notifications->extension_title!=""&&(string)$extensions->update_notifications->extension_content!=""&&(string)$extensions->update_notifications->product_url!=""){
|
54 |
-
if(!$isInterestedInAllUpgrades){
|
55 |
-
if ($this->isExtensionInstalled($extensions_name)) {
|
56 |
-
$feedData[] = array(
|
57 |
-
'severity' => 4,
|
58 |
-
'date_added' => (string) $extensions->update_notifications->date,
|
59 |
-
'title' => (string)$extensions->update_notifications->extension_title,
|
60 |
-
'description' => (string)$extensions->update_notifications->extension_content,
|
61 |
-
'url' => (string)$extensions->update_notifications->product_url,
|
62 |
-
);
|
63 |
-
}
|
64 |
-
} else{
|
65 |
-
$feedData[] = array(
|
66 |
-
'severity' => 4,
|
67 |
-
'date_added' => (string)$extensions->update_notifications->date,
|
68 |
-
'title' => (string)$extensions->update_notifications->extension_title,
|
69 |
-
'description' => (string)$extensions->update_notifications->extension_content,
|
70 |
-
'url' => (string)$extensions->update_notifications->product_url,
|
71 |
-
);
|
72 |
-
}
|
73 |
-
}
|
74 |
-
}
|
75 |
-
if ($feedData) {
|
76 |
-
foreach($feedData as $data){
|
77 |
-
if ((array_intersect($types,$interests) && $isInterestedInSelfUpgrades)) {
|
78 |
-
Mage::getModel('adminnotification/inbox')->parse(array_reverse(array($data)));
|
79 |
-
}
|
80 |
-
}
|
81 |
-
}
|
82 |
-
Mage::app()->saveCache(time(), 'biztech_all_updates_feed_lastcheck');
|
83 |
-
return true;
|
84 |
-
}
|
85 |
-
} else{
|
86 |
-
return false;
|
87 |
-
}
|
88 |
-
|
89 |
-
}catch (Exception $e) {
|
90 |
-
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
91 |
-
}
|
92 |
-
}
|
93 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Biztech/All/etc/config.xml
DELETED
@@ -1,147 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* @category Biztech
|
5 |
-
* @package Biztech_All
|
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_All>
|
13 |
-
<version>0.1.0</version>
|
14 |
-
</Biztech_All>
|
15 |
-
</modules>
|
16 |
-
<frontend>
|
17 |
-
<routers>
|
18 |
-
<all>
|
19 |
-
<use>standard</use>
|
20 |
-
<args>
|
21 |
-
<module>Biztech_All</module>
|
22 |
-
<frontName>all</frontName>
|
23 |
-
</args>
|
24 |
-
</all>
|
25 |
-
</routers>
|
26 |
-
<!--<layout>
|
27 |
-
<updates>
|
28 |
-
<all>
|
29 |
-
<file>all.xml</file>
|
30 |
-
</all>
|
31 |
-
</updates>
|
32 |
-
</layout>-->
|
33 |
-
</frontend>
|
34 |
-
<admin>
|
35 |
-
<routers>
|
36 |
-
<all>
|
37 |
-
<use>admin</use>
|
38 |
-
<args>
|
39 |
-
<module>Biztech_All</module>
|
40 |
-
<frontName>all</frontName>
|
41 |
-
</args>
|
42 |
-
</all>
|
43 |
-
</routers>
|
44 |
-
</admin>
|
45 |
-
<adminhtml>
|
46 |
-
<!--<menu>
|
47 |
-
<all module="all">
|
48 |
-
<title>All</title>
|
49 |
-
<sort_order>71</sort_order>
|
50 |
-
<children>
|
51 |
-
<items module="all">
|
52 |
-
<title>Manage Items</title>
|
53 |
-
<sort_order>0</sort_order>
|
54 |
-
<action>all/adminhtml_all</action>
|
55 |
-
</items>
|
56 |
-
</children>
|
57 |
-
</all>
|
58 |
-
</menu> -->
|
59 |
-
<acl>
|
60 |
-
<resources>
|
61 |
-
<all>
|
62 |
-
<title>Allow Everything</title>
|
63 |
-
</all>
|
64 |
-
<admin>
|
65 |
-
<children>
|
66 |
-
<Biztech_All>
|
67 |
-
<title>All Module</title>
|
68 |
-
<sort_order>10</sort_order>
|
69 |
-
</Biztech_All>
|
70 |
-
</children>
|
71 |
-
</admin>
|
72 |
-
</resources>
|
73 |
-
</acl>
|
74 |
-
<events>
|
75 |
-
<controller_action_predispatch>
|
76 |
-
<observers>
|
77 |
-
|
78 |
-
<bzall_upds>
|
79 |
-
<type>singleton</type>
|
80 |
-
<class>all/update</class>
|
81 |
-
<method>check</method>
|
82 |
-
</bzall_upds>
|
83 |
-
</observers>
|
84 |
-
</controller_action_predispatch>
|
85 |
-
</events>
|
86 |
-
<!--<layout>
|
87 |
-
<updates>
|
88 |
-
<all>
|
89 |
-
<file>all.xml</file>
|
90 |
-
</all>
|
91 |
-
</updates>
|
92 |
-
</layout> -->
|
93 |
-
</adminhtml>
|
94 |
-
<global>
|
95 |
-
<models>
|
96 |
-
<all>
|
97 |
-
<class>Biztech_All_Model</class>
|
98 |
-
<resourceModel>all_mysql4</resourceModel>
|
99 |
-
</all>
|
100 |
-
<all_mysql4>
|
101 |
-
<class>Biztech_All_Model_Mysql4</class>
|
102 |
-
<entities>
|
103 |
-
<all>
|
104 |
-
<table>all</table>
|
105 |
-
</all>
|
106 |
-
</entities>
|
107 |
-
</all_mysql4>
|
108 |
-
</models>
|
109 |
-
<resources>
|
110 |
-
<all_setup>
|
111 |
-
<setup>
|
112 |
-
<module>Biztech_All</module>
|
113 |
-
</setup>
|
114 |
-
<connection>
|
115 |
-
<use>core_setup</use>
|
116 |
-
</connection>
|
117 |
-
</all_setup>
|
118 |
-
<all_write>
|
119 |
-
<connection>
|
120 |
-
<use>core_write</use>
|
121 |
-
</connection>
|
122 |
-
</all_write>
|
123 |
-
<all_read>
|
124 |
-
<connection>
|
125 |
-
<use>core_read</use>
|
126 |
-
</connection>
|
127 |
-
</all_read>
|
128 |
-
</resources>
|
129 |
-
<blocks>
|
130 |
-
<all>
|
131 |
-
<class>Biztech_All_Block</class>
|
132 |
-
</all>
|
133 |
-
</blocks>
|
134 |
-
<helpers>
|
135 |
-
<all>
|
136 |
-
<class>Biztech_All_Helper</class>
|
137 |
-
</all>
|
138 |
-
</helpers>
|
139 |
-
</global>
|
140 |
-
<default>
|
141 |
-
<all>
|
142 |
-
<all_general>
|
143 |
-
<check_frequency>86400</check_frequency>
|
144 |
-
</all_general>
|
145 |
-
</all>
|
146 |
-
</default>
|
147 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Biztech/All/etc/system.xml
DELETED
@@ -1,46 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8" ?>
|
2 |
-
<config>
|
3 |
-
<tabs>
|
4 |
-
<biztech translate="label" module="all">
|
5 |
-
<label>Biztech Extensions</label>
|
6 |
-
<sort_order>400</sort_order>
|
7 |
-
</biztech>
|
8 |
-
</tabs>
|
9 |
-
<sections>
|
10 |
-
<all translate="label" module="all">
|
11 |
-
<label>Info</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 |
-
|
20 |
-
<all_general translate="label">
|
21 |
-
<label>General</label>
|
22 |
-
<frontend_type>text</frontend_type>
|
23 |
-
<sort_order>10</sort_order>
|
24 |
-
<show_in_default>1</show_in_default>
|
25 |
-
<show_in_website>1</show_in_website>
|
26 |
-
<show_in_store>1</show_in_store>
|
27 |
-
<fields>
|
28 |
-
|
29 |
-
<interests translate="label">
|
30 |
-
<label>I'd like to be informed by Biztech about:</label>
|
31 |
-
<comment></comment>
|
32 |
-
<frontend_type>multiselect</frontend_type>
|
33 |
-
<sort_order>100</sort_order>
|
34 |
-
<show_in_default>1</show_in_default>
|
35 |
-
<show_in_website>1</show_in_website>
|
36 |
-
<show_in_store>1</show_in_store>
|
37 |
-
<can_be_empty>1</can_be_empty>
|
38 |
-
<source_model>all/source_updates_type</source_model>
|
39 |
-
</interests>
|
40 |
-
|
41 |
-
</fields>
|
42 |
-
</all_general>
|
43 |
-
</groups>
|
44 |
-
</all>
|
45 |
-
</sections>
|
46 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Biztech/Trackorder/Model/Observer.php
CHANGED
@@ -64,13 +64,13 @@ class Biztech_Trackorder_Model_Observer {
|
|
64 |
}
|
65 |
|
66 |
$order = $observer->getEvent()->getOrder();
|
67 |
-
|
68 |
-
|
69 |
$trackLink = substr(md5(microtime()), rand(0, 26), 6);
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
}
|
75 |
|
76 |
public function addlinkFront(Varien_Event_Observer $observer) {
|
@@ -80,13 +80,13 @@ class Biztech_Trackorder_Model_Observer {
|
|
80 |
return $this;
|
81 |
}
|
82 |
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
$trackLink = substr(md5(microtime()), rand(0, 26), 6);
|
87 |
$order->setTrackLink($trackLink);
|
88 |
}
|
89 |
-
|
90 |
}
|
91 |
|
92 |
|
@@ -94,12 +94,12 @@ class Biztech_Trackorder_Model_Observer {
|
|
94 |
|
95 |
if (Mage::app()->getRequest()->getControllerName() == 'multishipping') {
|
96 |
$order = $observer->getEvent()->getOrder();
|
97 |
-
|
98 |
-
|
99 |
$trackLink = substr(md5(microtime()), rand(0, 26), 6);
|
100 |
$order->setTrackLink($trackLink);
|
101 |
}
|
102 |
-
|
103 |
}
|
104 |
|
105 |
}
|
64 |
}
|
65 |
|
66 |
$order = $observer->getEvent()->getOrder();
|
67 |
+
self::$_handleTrackLinkCounter++;
|
68 |
+
if ($order->getTrackLink() == NULL) {
|
69 |
$trackLink = substr(md5(microtime()), rand(0, 26), 6);
|
70 |
+
|
71 |
+
$order->setTrackLink($trackLink);
|
72 |
+
}
|
73 |
+
}
|
74 |
}
|
75 |
|
76 |
public function addlinkFront(Varien_Event_Observer $observer) {
|
80 |
return $this;
|
81 |
}
|
82 |
|
83 |
+
$order = $observer->getEvent()->getOrder();
|
84 |
+
self::$_handleTrackLinkCounter++;
|
85 |
+
if ($order->getTrackLink() == NULL) {
|
86 |
$trackLink = substr(md5(microtime()), rand(0, 26), 6);
|
87 |
$order->setTrackLink($trackLink);
|
88 |
}
|
89 |
+
}
|
90 |
}
|
91 |
|
92 |
|
94 |
|
95 |
if (Mage::app()->getRequest()->getControllerName() == 'multishipping') {
|
96 |
$order = $observer->getEvent()->getOrder();
|
97 |
+
|
98 |
+
if ($order->getTrackLink() == NULL) {
|
99 |
$trackLink = substr(md5(microtime()), rand(0, 26), 6);
|
100 |
$order->setTrackLink($trackLink);
|
101 |
}
|
102 |
+
}
|
103 |
}
|
104 |
|
105 |
}
|
app/code/local/Biztech/Trackorder/etc/config.xml
CHANGED
@@ -1,169 +1,168 @@
|
|
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.
|
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 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
<
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
</
|
50 |
-
</
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
</global>
|
169 |
</config>
|
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.5</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 |
+
<adminhtml>
|
37 |
+
<args>
|
38 |
+
<modules>
|
39 |
+
<trackorder after="Mage_Adminhtml">Biztech_Trackorder_Adminhtml</trackorder>
|
40 |
+
</modules>
|
41 |
+
</args>
|
42 |
+
</adminhtml>
|
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 |
+
<events>
|
80 |
+
<admin_system_config_changed_section_trackorder>
|
81 |
+
<observers>
|
82 |
+
<trackorder_status>
|
83 |
+
<type>model</type>
|
84 |
+
<class>trackorder/observer</class>
|
85 |
+
<method>checkstatus</method>
|
86 |
+
</trackorder_status>
|
87 |
+
</observers>
|
88 |
+
</admin_system_config_changed_section_trackorder>
|
89 |
+
<sales_order_save_after>
|
90 |
+
<observers>
|
91 |
+
<trackorder_link>
|
92 |
+
<type>singleton</type>
|
93 |
+
<class>trackorder/observer</class>
|
94 |
+
<method>addlinkAdmin</method>
|
95 |
+
</trackorder_link>
|
96 |
+
</observers>
|
97 |
+
</sales_order_save_after>
|
98 |
+
</events>
|
99 |
+
</adminhtml>
|
100 |
+
<global>
|
101 |
+
<models>
|
102 |
+
<trackorder>
|
103 |
+
<class>Biztech_Trackorder_Model</class>
|
104 |
+
<resourceModel>trackorder_mysql4</resourceModel>
|
105 |
+
</trackorder>
|
106 |
+
<trackorder_mysql4>
|
107 |
+
<class>Biztech_Trackorder_Model_Mysql4</class>
|
108 |
+
<entities>
|
109 |
+
<trackorder>
|
110 |
+
<table>trackorder</table>
|
111 |
+
</trackorder>
|
112 |
+
</entities>
|
113 |
+
</trackorder_mysql4>
|
114 |
+
</models>
|
115 |
+
<events>
|
116 |
+
<sales_order_save_after>
|
117 |
+
<observers>
|
118 |
+
<trackorder_link>
|
119 |
+
<type>singleton</type>
|
120 |
+
<class>trackorder/observer</class>
|
121 |
+
<method>addlinkFront</method>
|
122 |
+
</trackorder_link>
|
123 |
+
</observers>
|
124 |
+
</sales_order_save_after>
|
125 |
+
<checkout_type_multishipping_create_orders_single>
|
126 |
+
<observers>
|
127 |
+
<trackorder_multishiplink>
|
128 |
+
<type>singleton</type>
|
129 |
+
<class>trackorder/observer</class>
|
130 |
+
<method>addmultishipLink</method>
|
131 |
+
</trackorder_multishiplink>
|
132 |
+
</observers>
|
133 |
+
</checkout_type_multishipping_create_orders_single>
|
134 |
+
</events>
|
135 |
+
<resources>
|
136 |
+
<trackorder_setup>
|
137 |
+
<setup>
|
138 |
+
<module>Biztech_Trackorder</module>
|
139 |
+
</setup>
|
140 |
+
<connection>
|
141 |
+
<use>core_setup</use>
|
142 |
+
</connection>
|
143 |
+
</trackorder_setup>
|
144 |
+
<trackorder_write>
|
145 |
+
<connection>
|
146 |
+
<use>core_write</use>
|
147 |
+
</connection>
|
148 |
+
</trackorder_write>
|
149 |
+
<trackorder_read>
|
150 |
+
<connection>
|
151 |
+
<use>core_read</use>
|
152 |
+
</connection>
|
153 |
+
</trackorder_read>
|
154 |
+
</resources>
|
155 |
+
|
156 |
+
|
157 |
+
<blocks>
|
158 |
+
<trackorder>
|
159 |
+
<class>Biztech_Trackorder_Block</class>
|
160 |
+
</trackorder>
|
161 |
+
</blocks>
|
162 |
+
<helpers>
|
163 |
+
<trackorder>
|
164 |
+
<class>Biztech_Trackorder_Helper</class>
|
165 |
+
</trackorder>
|
166 |
+
</helpers>
|
167 |
+
</global>
|
|
|
168 |
</config>
|
app/etc/modules/Biztech_All.xml
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* @category Biztech
|
5 |
-
* @package Biztech_All
|
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_All>
|
13 |
-
<active>true</active>
|
14 |
-
<codePool>local</codePool>
|
15 |
-
</Biztech_All>
|
16 |
-
</modules>
|
17 |
-
<adminhtml>
|
18 |
-
<acl>
|
19 |
-
<resources>
|
20 |
-
<all>
|
21 |
-
<title>Allow Everything</title>
|
22 |
-
</all>
|
23 |
-
<admin>
|
24 |
-
<children>
|
25 |
-
<Biztech_All>
|
26 |
-
<title>All</title>
|
27 |
-
<sort_order>10</sort_order>
|
28 |
-
</Biztech_All>
|
29 |
-
<system>
|
30 |
-
<children>
|
31 |
-
<config>
|
32 |
-
<children>
|
33 |
-
<all>
|
34 |
-
<title>All</title>
|
35 |
-
</all>
|
36 |
-
</children>
|
37 |
-
</config>
|
38 |
-
</children>
|
39 |
-
</system>
|
40 |
-
</children>
|
41 |
-
</admin>
|
42 |
-
</resources>
|
43 |
-
</acl>
|
44 |
-
<layout>
|
45 |
-
<updates>
|
46 |
-
<all>
|
47 |
-
<file>all.xml</file>
|
48 |
-
</all>
|
49 |
-
</updates>
|
50 |
-
</layout>
|
51 |
-
</adminhtml>
|
52 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,63 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>trackorder_module</name>
|
4 |
-
<version>0.1.
|
5 |
-
<stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>
|
11 |
-
|
12 |
-
Make your customers least worried about the shipment of products as a real-time access is available to track their order now! They can sit back and relax, as tracking shipment is now possible with the extension. 
|
13 |
-
Core Features for Customers
|
14 |
-
➢ Track Order Without Login
|
15 |
-
No need to log in to account for tracking order status
|
16 |
-

|
17 |
-
➢ View Order Status
|
18 |
-
Complete order status can be viewed now 
|
19 |
-

|
20 |
-
➢ Link to Shipment Tracking Order
|
21 |
-
Link to order shipment tracking with the website is also visible
|
22 |
-

|
23 |
-
➢ Link Available in Main Menu
|
24 |
-
Tracking order link will be available in main-menu or top link for the customers for easy accessibility
|
25 |
-

|
26 |
-
➢ Widget for Tracking Order
|
27 |
-
Tracking order widget can be visible at right side or left side of webpage, as defined by the admin
|
28 |
-

|
29 |
-
➢ Real Time Tracking
|
30 |
-
Customers can have real-time access to track orders and shipments of their products
|
31 |
-

|
32 |
-

|
33 |
-
Core Features for Admin
|
34 |
-

|
35 |
-

|
36 |
-
➢ Admin Places Link to Track Order
|
37 |
-
Admin can place the separate link to ‘track order’ in the top link or the top menu
|
38 |
-

|
39 |
-
➢ Admin Decides the Placement of Widget 
|
40 |
-
Admin can place the track order widget to either left or right side of the webpage
|
41 |
-

|
42 |
-
➢ Link to Track Order in Email 
|
43 |
-
A track order link can be sent in the order confirmation and shipment notification
|
44 |
-

|
45 |
-
➢ Easily Install Extension
|
46 |
-
Admin can easily install the extension and it is simple to be configured
|
47 |
-

|
48 |
-

|
49 |
-
Your Gain
|
50 |
-

|
51 |
-
● Happy Customer 
|
52 |
-
● More Feature-equipped e-store
|
53 |
-
● Increased Customer Satisfaction
|
54 |
-
● More Loyal Customers
|
55 |
-
</description>
|
56 |
-
<notes>-Bug Fixing</notes>
|
57 |
<authors><author><name>Biztech</name><user>biztechcon</user><email>sales@biztechconsultancy.com</email></author></authors>
|
58 |
-
<date>
|
59 |
-
<time>
|
60 |
-
<contents><target name="
|
61 |
<compatible/>
|
62 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
63 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>trackorder_module</name>
|
4 |
+
<version>0.1.5</version>
|
5 |
+
<stability>devel</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>trackorder</summary>
|
10 |
+
<description>trackorder</description>
|
11 |
+
<notes>supee patch 6788</notes>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
<authors><author><name>Biztech</name><user>biztechcon</user><email>sales@biztechconsultancy.com</email></author></authors>
|
13 |
+
<date>2016-03-15</date>
|
14 |
+
<time>06:34:09</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Biztech"><dir name="Trackorder"><dir name="Block"><file name="Trackorder.php" hash="e50a5a3be035ac2c55cf50e76af03601"/><file name="Trackwidget.php" hash="2c0acfa5b09c216ef4907a88afba4050"/><file name="View.php" hash="0c65f7bd839db3f2588f05466c61f279"/></dir><dir name="Helper"><file name="Data.php" hash="ca4d65b28c67e74f8bdf05bb58a47a73"/></dir><dir name="Model"><file name="Observer.php" hash="75b9f3f4d6480c27e1872c180b979e3a"/><dir name="System"><dir name="Config"><dir name="Frontend"><file name="Widgetsettings.php" hash="30f5a6e8fc3a8856e289890fa11247c1"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="81f8391c0c6aeab5789ae002b9803e4b"/></dir><dir name="etc"><file name="config.xml" hash="44446a11535997933f8c1afbc5a73804"/><file name="system.xml" hash="4d6c933b47575ed0ff7ffed6c6bd7608"/><file name="widget.xml" hash="ff61595a908d0ce4c846f5b330ce5dd7"/></dir><dir name="sql"><dir name="trackorder_setup"><file name="mysql4-install-0.1.0.php" hash="47c62d342c96c4628c2da5c2e3dafacf"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="4f08e9d298368363dcf13fd0a9cc9eb8"/><file name="mysql4-upgrade-0.1.3-0.1.4.php" hash="3b08d40b8e1ae6a359334bd162d087ba"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="trackorder.xml" hash="7d81b1e199c97dff44d9502917d49514"/></dir><dir name="template"><dir name="trackorder"><file name="info.phtml" hash="592dd505f0bb03cb19017d55120b51a2"/><dir name="order"><file name="items.phtml" hash="1953cc2fb3cad9c24af8f2238c1454fb"/></dir><dir name="shipment"><file name="items.phtml" hash="bf1301921046e9416adc8968c6a0609e"/></dir><file name="trackdetail.phtml" hash="6f515a0db9ad081b71b9297a743b0ff8"/><file name="trackorder.phtml" hash="2939541a8537a23c78cbe5f1ed49f824"/><file name="trackorderlink.phtml" hash="55338259c837d10814a56ed3d6cc1d02"/><file name="trackwidget.phtml" hash="78d940b9765d109236c24ed6d95fdb22"/><file name="view.phtml" hash="71f72f80ecf948a65cba97cbd7ce7e26"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Biztech_Trackorder.xml" hash="b81eefbec619714c203ea48b08569cf9"/></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="9bfecdaa1cf87a42f67f642dc865bea6"/></dir><dir name="images"><file name="ajax-loader-tr.gif" hash="1ae32bc8232ff2527c627e5b38eb319a"/><file name="ajax-loader.gif" hash="57ca1a2085d82f0574e3ef740b9a5ead"/><file name="i-trackorder.png" hash="65f5d4dbeafa21878e487859e29b0453"/><file name="main-bg.png" hash="615e539beac7fc4ad7b6aa7e519ca2ee"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|