Version Notes
v4.0.6
Download this release
Release Info
Developer | Wyomind |
Extension | Wyomind_OrdersEraser |
Version | 4.0.6 |
Comparing to | |
See all releases |
Code changes from version 4.0.5 to 4.0.6
- app/code/community/Wyomind/Orderseraser/etc/config.xml +1 -1
- app/code/local/Wyomind/Notificationmanager/Helper/Data.php +7 -0
- app/code/local/Wyomind/Notificationmanager/Model/Adminhtml/System/Config/Form/Field/Extensions.php +70 -0
- app/code/local/Wyomind/Notificationmanager/Model/Adminhtml/System/Config/Form/Field/Link.php +12 -0
- app/code/local/Wyomind/Notificationmanager/Model/Observer.php +134 -0
- app/code/local/Wyomind/Notificationmanager/Model/Resource/Setup.php +41 -0
- app/code/local/Wyomind/Notificationmanager/etc/adminhtml.xml +50 -0
- app/code/local/Wyomind/Notificationmanager/etc/config.xml +79 -0
- app/code/local/Wyomind/Notificationmanager/etc/system.xml +55 -0
- app/etc/modules/Wyomind_Notificationmanager.xml +15 -0
- package.xml +4 -4
app/code/community/Wyomind/Orderseraser/etc/config.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<config>
|
5 |
<modules>
|
6 |
<Wyomind_Orderseraser>
|
7 |
-
<version>4.0.
|
8 |
</Wyomind_Orderseraser>
|
9 |
</modules>
|
10 |
<default>
|
4 |
<config>
|
5 |
<modules>
|
6 |
<Wyomind_Orderseraser>
|
7 |
+
<version>4.0.6</version>
|
8 |
</Wyomind_Orderseraser>
|
9 |
</modules>
|
10 |
<default>
|
app/code/local/Wyomind/Notificationmanager/Helper/Data.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Wyomind_Notificationmanager_Helper_Data extends Mage_Core_Helper_Data
|
4 |
+
{
|
5 |
+
|
6 |
+
|
7 |
+
}
|
app/code/local/Wyomind/Notificationmanager/Model/Adminhtml/System/Config/Form/Field/Extensions.php
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Wyomind_Notificationmanager_Model_Adminhtml_System_Config_Form_Field_Extensions {
|
4 |
+
|
5 |
+
public function XML2Array($xml) {
|
6 |
+
$newArray = array();
|
7 |
+
$array = (array) $xml;
|
8 |
+
foreach ($array as $key => $value) {
|
9 |
+
$value = (array) $value;
|
10 |
+
if (isset($value [0])) {
|
11 |
+
$newArray [$key] = trim($value [0]);
|
12 |
+
} else {
|
13 |
+
$newArray [$key] = $this->XML2Array($value, true);
|
14 |
+
}
|
15 |
+
}
|
16 |
+
return $newArray;
|
17 |
+
}
|
18 |
+
|
19 |
+
public function toOptionArray() {
|
20 |
+
$dir = "app/code/local/Wyomind/";
|
21 |
+
$ret = array();
|
22 |
+
if (is_dir($dir)) {
|
23 |
+
if (($dh = opendir($dir)) != false) {
|
24 |
+
while (($file = readdir($dh)) !== false) {
|
25 |
+
if (is_dir($dir . $file) && $file != "." && $file != ".." && $file != "Notificationmanager") {
|
26 |
+
if (is_file($dir . $file . '/etc/system.xml')) {
|
27 |
+
$xml = simplexml_load_file($dir . $file . '/etc/system.xml');
|
28 |
+
$namespace = strtolower($file);
|
29 |
+
$label = $this->XML2Array($xml);
|
30 |
+
$label = $label['sections'][$namespace]['label'];
|
31 |
+
|
32 |
+
$enabled = Mage::getConfig()->getModuleConfig('Wyomind_' . ucfirst($namespace))->is('active', 'true');
|
33 |
+
|
34 |
+
if ($enabled)
|
35 |
+
$ret[] = array('label' => $label, 'value' => $file);
|
36 |
+
}
|
37 |
+
}
|
38 |
+
}
|
39 |
+
closedir($dh);
|
40 |
+
}
|
41 |
+
}
|
42 |
+
|
43 |
+
$dir = "app/code/community/Wyomind/";
|
44 |
+
if (is_dir($dir)) {
|
45 |
+
if (($dh = opendir($dir)) != false) {
|
46 |
+
while (($file = readdir($dh)) !== false) {
|
47 |
+
if (is_dir($dir . $file) && $file != "." && $file != "..") {
|
48 |
+
if (is_file($dir . $file . '/etc/system.xml')) {
|
49 |
+
$xml = simplexml_load_file($dir . $file . '/etc/system.xml');
|
50 |
+
$namespace = strtolower($file);
|
51 |
+
$label = $this->XML2Array($xml);
|
52 |
+
if (isset($label['sections'][$namespace])) {
|
53 |
+
$label = $label['sections'][$namespace]['label'];
|
54 |
+
|
55 |
+
$enabled = Mage::getConfig()->getModuleConfig('Wyomind_' . ucfirst($namespace))->is('active', 'true');
|
56 |
+
if ($label == null)
|
57 |
+
$label = ucfirst($namespace);
|
58 |
+
if ($enabled)
|
59 |
+
$ret[] = array('label' => $label, 'value' => $file);
|
60 |
+
}
|
61 |
+
}
|
62 |
+
}
|
63 |
+
}
|
64 |
+
closedir($dh);
|
65 |
+
}
|
66 |
+
}
|
67 |
+
return $ret;
|
68 |
+
}
|
69 |
+
|
70 |
+
}
|
app/code/local/Wyomind/Notificationmanager/Model/Adminhtml/System/Config/Form/Field/Link.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Wyomind_Notificationmanager_Model_Adminhtml_System_Config_Form_Field_Link extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
4 |
+
|
5 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {
|
6 |
+
|
7 |
+
$html = '<a id="' . $element->getHtmlId() . '" ' . $element->serialize($element->getHtmlAttributes()) . '>' . $element->getEscapedValue() . "</a>\n";
|
8 |
+
$html.= $element->getAfterElementHtml();
|
9 |
+
return $html;
|
10 |
+
}
|
11 |
+
|
12 |
+
}
|
app/code/local/Wyomind/Notificationmanager/Model/Observer.php
ADDED
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Wyomind_Notificationmanager_FeedReader extends Mage_AdminNotification_Model_Feed {
|
4 |
+
|
5 |
+
public function getFeedUrl() {
|
6 |
+
|
7 |
+
Mage::getSingleton('admin/session')->getData();
|
8 |
+
$url = Mage::getStoreConfig("web/secure/base_url");
|
9 |
+
$version = Mage::getConfig()->getNode("modules/Wyomind_Notificationmanager")->version;
|
10 |
+
|
11 |
+
$lastcheck = $this->getLastUpdate();
|
12 |
+
|
13 |
+
$rss_url = 'rss.wyomind.com';
|
14 |
+
|
15 |
+
return "http://$rss_url/?domain=$url&version=$version&lastcheck=$lastcheck&now=" . time();
|
16 |
+
}
|
17 |
+
|
18 |
+
public function getLastUpdate() {
|
19 |
+
return Mage::getStoreConfig("notificationmanager/notificationmanager/lastcheck");
|
20 |
+
}
|
21 |
+
|
22 |
+
public function setLastUpdate() {
|
23 |
+
Mage::getConfig()->saveConfig("notificationmanager/notificationmanager/lastcheck", time(), "default", "0");
|
24 |
+
Mage::getConfig()->cleanCache();
|
25 |
+
return $this;
|
26 |
+
}
|
27 |
+
|
28 |
+
}
|
29 |
+
|
30 |
+
class Wyomind_Notificationmanager_Item {
|
31 |
+
|
32 |
+
const SEVERITY_CRITICAL = 1;
|
33 |
+
const SEVERITY_MAJOR = 2;
|
34 |
+
const SEVERITY_MINOR = 3;
|
35 |
+
const SEVERITY_NOTICE = 4;
|
36 |
+
|
37 |
+
var $pubDate = 0;
|
38 |
+
var $title = "";
|
39 |
+
var $description = "";
|
40 |
+
var $severity = Wyomind_Notificationmanager_Item::SEVERITY_NOTICE;
|
41 |
+
var $link = "";
|
42 |
+
|
43 |
+
|
44 |
+
public function setPubDate($date) {
|
45 |
+
$this->pubDate = $date;
|
46 |
+
}
|
47 |
+
|
48 |
+
public function setTitle($title) {
|
49 |
+
$this->title = $title;
|
50 |
+
}
|
51 |
+
|
52 |
+
public function setDescription($desc) {
|
53 |
+
$this->description = $desc;
|
54 |
+
}
|
55 |
+
|
56 |
+
public function setSeverity($sev) {
|
57 |
+
$this->severity = $sev;
|
58 |
+
}
|
59 |
+
|
60 |
+
public function setLink($link) {
|
61 |
+
$this->link = $link;
|
62 |
+
}
|
63 |
+
|
64 |
+
public function getPubDate() {
|
65 |
+
return $this->pubDate;
|
66 |
+
}
|
67 |
+
|
68 |
+
public function getDescription() {
|
69 |
+
return $this->description;
|
70 |
+
}
|
71 |
+
|
72 |
+
public function getTitle() {
|
73 |
+
return $this->title;
|
74 |
+
}
|
75 |
+
|
76 |
+
public function getSeverity() {
|
77 |
+
return $this->severity;
|
78 |
+
}
|
79 |
+
|
80 |
+
public function getLink() {
|
81 |
+
return $this->link;
|
82 |
+
}
|
83 |
+
|
84 |
+
public function toNotifier() {
|
85 |
+
$notify = Mage::getModel('adminnotification/inbox');
|
86 |
+
$notify->setUrl($this->getLink());
|
87 |
+
$notify->setDescription($this->getDescription());
|
88 |
+
$notify->setTitle($this->getTitle());
|
89 |
+
$notify->setSeverity($this->getSeverity());
|
90 |
+
$notify->setDateAdded($this->getPubDate());
|
91 |
+
$notify->save();
|
92 |
+
}
|
93 |
+
|
94 |
+
}
|
95 |
+
|
96 |
+
class Wyomind_Notificationmanager_Model_Observer {
|
97 |
+
|
98 |
+
public function observe($user) {
|
99 |
+
|
100 |
+
$model = new Wyomind_Notificationmanager_FeedReader();
|
101 |
+
|
102 |
+
$date = $model->getLastUpdate();
|
103 |
+
|
104 |
+
if (time() - $date > 24 * 60 * 60 || Mage::getStoreConfig("notificationmanager/notificationmanager/action_required") == 1) {
|
105 |
+
Mage::getConfig()->saveConfig("notificationmanager/notificationmanager/action_required", "0", "default", "0");
|
106 |
+
$exts = Mage::getStoreConfig("notificationmanager/notificationmanager/extensions");
|
107 |
+
$exts = $exts != null ? explode(',', $exts) : array();
|
108 |
+
if ($date != "") {
|
109 |
+
//$model->checkUpdate();
|
110 |
+
$rss = $model->getFeedData();
|
111 |
+
if ($rss != NULL) {
|
112 |
+
$items = $rss->xpath('/rss/channel/item');
|
113 |
+
if ($items) {
|
114 |
+
foreach ($items as $item) {
|
115 |
+
$infos = $item->children();
|
116 |
+
$notification = new Wyomind_Notificationmanager_Item();
|
117 |
+
$notification->setTitle($infos->title);
|
118 |
+
$notification->setLink($infos->link);
|
119 |
+
$notification->setSeverity($infos->severity);
|
120 |
+
$notification->setDescription($infos->description);
|
121 |
+
$notification->setPubDate(date('Y-m-d H:i:s', (int) $infos->pubDate));
|
122 |
+
|
123 |
+
if ($infos->identifier == "Global" || (in_array($infos->identifier, $exts) && Mage::getConfig()->getModuleConfig('Wyomind_' . $infos->identifier)->is('active', 'true'))) {
|
124 |
+
$notification->toNotifier();
|
125 |
+
}
|
126 |
+
}
|
127 |
+
}
|
128 |
+
}
|
129 |
+
}
|
130 |
+
$model->setLastUpdate();
|
131 |
+
}
|
132 |
+
}
|
133 |
+
|
134 |
+
}
|
app/code/local/Wyomind/Notificationmanager/Model/Resource/Setup.php
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Wyomind_Notificationmanager_Model_Resource_Setup extends Mage_Core_Model_Resource_Setup
|
4 |
+
{
|
5 |
+
public function applyUpdates()
|
6 |
+
{
|
7 |
+
if (!Mage::isInstalled()) {
|
8 |
+
$dir = "app/code/local/Wyomind/";
|
9 |
+
$ret = array();
|
10 |
+
if (is_dir($dir)) {
|
11 |
+
if (($dh = opendir($dir)) != false) {
|
12 |
+
while (($file = readdir($dh)) !== false) {
|
13 |
+
if (is_dir($dir.$file) && $file != "." && $file != "..") {
|
14 |
+
$enabled = Mage::getConfig()->getModuleConfig('Wyomind_'.ucfirst($namespace = strtolower($file)))->is('active', 'true');
|
15 |
+
if ($enabled)
|
16 |
+
$ret[] = $file;
|
17 |
+
}
|
18 |
+
}
|
19 |
+
closedir($dh);
|
20 |
+
}
|
21 |
+
}
|
22 |
+
$dir = "app/code/community/Wyomind/";
|
23 |
+
if (is_dir($dir)) {
|
24 |
+
if (($dh = opendir($dir)) != false) {
|
25 |
+
while (($file = readdir($dh)) !== false) {
|
26 |
+
if (is_dir($dir.$file) && $file != "." && $file != "..") {
|
27 |
+
$enabled = Mage::getConfig()->getModuleConfig('Wyomind_'.ucfirst($namespace = strtolower($file)))->is('active', 'true');
|
28 |
+
if ($enabled)
|
29 |
+
$ret[] = $file;
|
30 |
+
}
|
31 |
+
}
|
32 |
+
closedir($dh);
|
33 |
+
}
|
34 |
+
}
|
35 |
+
Mage::getConfig()->saveConfig("notificationmanager/notificationmanager/extensions",implode(',',$ret), "default", "0");
|
36 |
+
Mage::getConfig()->cleanCache();
|
37 |
+
}
|
38 |
+
|
39 |
+
return parent::applyUpdates();
|
40 |
+
}
|
41 |
+
}
|
app/code/local/Wyomind/Notificationmanager/etc/adminhtml.xml
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
|
4 |
+
<acl>
|
5 |
+
<resources>
|
6 |
+
<admin>
|
7 |
+
<children>
|
8 |
+
<catalog>
|
9 |
+
<children>
|
10 |
+
<notificationmanager translate="title" module="notificationmanager">
|
11 |
+
<title>Notification manager</title>
|
12 |
+
</notificationmanager>
|
13 |
+
</children>
|
14 |
+
</catalog>
|
15 |
+
<system>
|
16 |
+
<children>
|
17 |
+
<config>
|
18 |
+
<children>
|
19 |
+
<notificationmanager>
|
20 |
+
<title>Notification manager</title>
|
21 |
+
</notificationmanager>
|
22 |
+
</children>
|
23 |
+
</config>
|
24 |
+
</children>
|
25 |
+
</system>
|
26 |
+
</children>
|
27 |
+
</admin>
|
28 |
+
</resources>
|
29 |
+
</acl>
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
+
<translate>
|
34 |
+
<modules>
|
35 |
+
<Wyomind_Notificationmanager>
|
36 |
+
<files>
|
37 |
+
<default>Wyomind_Notificationmanager.csv</default>
|
38 |
+
</files>
|
39 |
+
</Wyomind_Notificationmanager>
|
40 |
+
</modules>
|
41 |
+
</translate>
|
42 |
+
<layout>
|
43 |
+
<updates>
|
44 |
+
<notificationmanager>
|
45 |
+
<file>notificationmanager.xml</file>
|
46 |
+
</notificationmanager>
|
47 |
+
</updates>
|
48 |
+
</layout>
|
49 |
+
|
50 |
+
</config>
|
app/code/local/Wyomind/Notificationmanager/etc/config.xml
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @category Wyomind
|
5 |
+
* @package Wyomind_Notificationmanager
|
6 |
+
* @license http://Wyomind.com
|
7 |
+
*/
|
8 |
+
-->
|
9 |
+
<config>
|
10 |
+
<modules>
|
11 |
+
<Wyomind_Notificationmanager>
|
12 |
+
<version>2.0.1</version>
|
13 |
+
</Wyomind_Notificationmanager>
|
14 |
+
</modules>
|
15 |
+
<default>
|
16 |
+
<notificationmanager>
|
17 |
+
<notificationmanager>
|
18 |
+
<version>2.0.1</version>
|
19 |
+
<action_required>1</action_required>
|
20 |
+
</notificationmanager>
|
21 |
+
</notificationmanager>
|
22 |
+
</default>
|
23 |
+
<frontend>
|
24 |
+
<routers>
|
25 |
+
<notificationmanager>
|
26 |
+
<use>standard</use>
|
27 |
+
<args>
|
28 |
+
<module>Wyomind_Notificationmanager</module>
|
29 |
+
<frontName>notificationmanager</frontName>
|
30 |
+
</args>
|
31 |
+
</notificationmanager>
|
32 |
+
</routers>
|
33 |
+
</frontend>
|
34 |
+
|
35 |
+
<global>
|
36 |
+
<resources>
|
37 |
+
<notificationmanager_setup>
|
38 |
+
<setup>
|
39 |
+
<module>Wyomind_Notificationmanager</module>
|
40 |
+
<class>Wyomind_Notificationmanager_Model_Resource_Setup</class>
|
41 |
+
</setup>
|
42 |
+
<connection>
|
43 |
+
<use>core_setup</use>
|
44 |
+
</connection>
|
45 |
+
</notificationmanager_setup>
|
46 |
+
<notificationmanager_write>
|
47 |
+
<connection>
|
48 |
+
<use>core_write</use>
|
49 |
+
</connection>
|
50 |
+
</notificationmanager_write>
|
51 |
+
<notificationmanager_read>
|
52 |
+
<connection>
|
53 |
+
<use>core_read</use>
|
54 |
+
</connection>
|
55 |
+
</notificationmanager_read>
|
56 |
+
</resources>
|
57 |
+
<helpers>
|
58 |
+
<notificationmanager>
|
59 |
+
<class>Wyomind_Notificationmanager_Helper</class>
|
60 |
+
</notificationmanager>
|
61 |
+
</helpers>
|
62 |
+
<models>
|
63 |
+
<notificationmanager>
|
64 |
+
<class>Wyomind_Notificationmanager_Model</class>
|
65 |
+
</notificationmanager>
|
66 |
+
</models>
|
67 |
+
<events>
|
68 |
+
<admin_session_user_login_success>
|
69 |
+
<observers>
|
70 |
+
<wyomind_notificationmanager_observer>
|
71 |
+
<type>singleton</type>
|
72 |
+
<class>notificationmanager/observer</class>
|
73 |
+
<method>observe</method>
|
74 |
+
</wyomind_notificationmanager_observer>
|
75 |
+
</observers>
|
76 |
+
</admin_session_user_login_success>
|
77 |
+
</events>
|
78 |
+
</global>
|
79 |
+
</config>
|
app/code/local/Wyomind/Notificationmanager/etc/system.xml
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<WYOMIND translate="label">
|
5 |
+
<label>WYOMIND</label>
|
6 |
+
<sort_order>1000000</sort_order>
|
7 |
+
</WYOMIND>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<notificationmanager translate="label">
|
11 |
+
<label>Notification Manager</label>
|
12 |
+
<tab>WYOMIND</tab>
|
13 |
+
<frontend_type>text</frontend_type>
|
14 |
+
<sort_order>999</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 |
+
<notificationmanager translate="label">
|
20 |
+
<label>Notification Manager</label>
|
21 |
+
<frontend_type>text</frontend_type>
|
22 |
+
<sort_order>100</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 |
+
<version translate="label comment">
|
28 |
+
<label>Version</label>
|
29 |
+
<frontend_type>text</frontend_type>
|
30 |
+
<frontend_model>Wyomind_Notificationmanager_Model_Adminhtml_System_Config_Form_Field_Link</frontend_model>
|
31 |
+
<sort_order>2</sort_order>
|
32 |
+
<show_in_default>1</show_in_default>
|
33 |
+
<show_in_website>0</show_in_website>
|
34 |
+
<show_in_store>0</show_in_store>
|
35 |
+
</version>
|
36 |
+
<extensions translate="label comment">
|
37 |
+
<label>Receive notifications for</label>
|
38 |
+
<frontend_type>multiselect</frontend_type>
|
39 |
+
<source_model>notificationmanager/adminhtml_system_config_form_field_extensions</source_model>
|
40 |
+
<sort_order>3</sort_order>
|
41 |
+
<show_in_default>1</show_in_default>
|
42 |
+
<show_in_website>0</show_in_website>
|
43 |
+
<show_in_store>0</show_in_store>
|
44 |
+
</extensions>
|
45 |
+
|
46 |
+
</fields>
|
47 |
+
</notificationmanager>
|
48 |
+
</groups>
|
49 |
+
</notificationmanager>
|
50 |
+
</sections>
|
51 |
+
</config>
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
|
app/etc/modules/Wyomind_Notificationmanager.xml
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @package
|
5 |
+
*/
|
6 |
+
-->
|
7 |
+
<config>
|
8 |
+
<modules>
|
9 |
+
<Wyomind_Notificationmanager>
|
10 |
+
<active>true</active>
|
11 |
+
<codePool>local</codePool>
|
12 |
+
<version>2.0.0</version>
|
13 |
+
</Wyomind_Notificationmanager>
|
14 |
+
</modules>
|
15 |
+
</config>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Wyomind_OrdersEraser</name>
|
4 |
-
<version>4.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>commercial</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>order eraser</summary>
|
10 |
<description>order eraser</description>
|
11 |
-
<notes>v4.0.
|
12 |
<authors><author><name>Wyomind</name><user>Wyomind</user><email>contact@wyomind.com</email></author></authors>
|
13 |
<date>2016-09-01</date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir><dir name="Wyomind"><dir name="Orderseraser"><dir><dir name="Model"><file name="Observer.php" hash="405a56fa978457a9a67f95c4f97cbe16"/><file name="Orderseraser.php" hash="e526e08d4b600653aa72e37000ff13e3"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="OrderseraserController.php" hash="fb9ec155f7e795700d43a43548ebfc77"/></dir></dir><dir name="etc"><file name="config.xml" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>8.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Wyomind_OrdersEraser</name>
|
4 |
+
<version>4.0.6</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>commercial</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>order eraser</summary>
|
10 |
<description>order eraser</description>
|
11 |
+
<notes>v4.0.6</notes>
|
12 |
<authors><author><name>Wyomind</name><user>Wyomind</user><email>contact@wyomind.com</email></author></authors>
|
13 |
<date>2016-09-01</date>
|
14 |
+
<time>15:21:26</time>
|
15 |
+
<contents><target name="magecommunity"><dir><dir name="Wyomind"><dir name="Orderseraser"><dir><dir name="Model"><file name="Observer.php" hash="405a56fa978457a9a67f95c4f97cbe16"/><file name="Orderseraser.php" hash="e526e08d4b600653aa72e37000ff13e3"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="OrderseraserController.php" hash="fb9ec155f7e795700d43a43548ebfc77"/></dir></dir><dir name="etc"><file name="config.xml" hash="4832e3958230c234b024cc9a28ea2ca9"/><file name="system.xml" hash="8d37d12b5d8c5673eff53db06569ae8d"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Wyomind_Orderseraser.xml" hash="21f24202ef69e71be030f0ebd62ab7f2"/><file name="Wyomind_Notificationmanager.xml" hash="562e9f7c8f9fc875900ff406bba42049"/></dir></dir></target><target name="magelocal"><dir><dir name="Wyomind"><dir name="Notificationmanager"><dir><dir name="Helper"><file name="Data.php" hash="9be4e11e5846c9f474889294a2704250"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Extensions.php" hash="832f4dcab50c90ff800f925264a68ea4"/><file name="Link.php" hash="d02183b09a366aa6a1e59dd2306bfd5f"/></dir></dir></dir></dir></dir><file name="Observer.php" hash="609d14691a4f4498b07a6bf4e32cc634"/><dir name="Resource"><file name="Setup.php" hash="cc3e8d7e65e5d165a71c5aa6fccd55a0"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="8429eb822b4560b46f2b4eaf42059ff1"/><file name="config.xml" hash="23e883c1454ed15ae4c8087c3ebb7717"/><file name="system.xml" hash="e374db94d23a8157772f4f4b8948f4f7"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>8.0.0</max></php></required></dependencies>
|
18 |
</package>
|