Version Notes
#Added functionality to hide message during customer session
Download this release
Release Info
Developer | Igor Ocheretnyi |
Extension | Magoch__QuickInform |
Version | 1.0.4 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 1.0.4
- app/code/community/Magoch/QuickInform/Block/Processing.php +55 -0
- app/{design/frontend/base/default/template/magoch/quickinform/inform.phtml → code/community/Magoch/QuickInform/Helper/Data.php} +38 -35
- app/code/community/Magoch/QuickInform/Model/Mysql4/Setup.php +29 -0
- app/code/community/Magoch/QuickInform/Model/Observer.php +47 -0
- app/code/community/Magoch/QuickInform/controllers/ProcessingController.php +39 -0
- app/code/community/Magoch/QuickInform/etc/config.xml +136 -0
- app/code/community/Magoch/QuickInform/etc/system.xml +91 -0
- app/design/frontend/base/default/layout/magoch/quickinform.xml +0 -37
- app/locale/en_US/Magoch_QuickInform.csv +5 -0
- package.xml +28 -12
app/code/community/Magoch/QuickInform/Block/Processing.php
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magoch
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
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 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
18 |
+
* versions in the future.
|
19 |
+
*
|
20 |
+
* @category Content Management
|
21 |
+
* @package Magoch_QuickInform
|
22 |
+
* @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
|
23 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Igor Ocheretnyi support@magoch.com
|
25 |
+
*/
|
26 |
+
|
27 |
+
class Magoch_QuickInform_Block_Processing extends Mage_Core_Block_Template
|
28 |
+
{
|
29 |
+
public function _prepareLayout(){
|
30 |
+
return parent::_prepareLayout();
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Render block HTML
|
35 |
+
*
|
36 |
+
* @return string
|
37 |
+
*/
|
38 |
+
protected function _toHtml()
|
39 |
+
{
|
40 |
+
if (!$this->getTemplate()) {
|
41 |
+
return '';
|
42 |
+
}
|
43 |
+
if (!Mage::getStoreConfig('quickinform/default/message')){
|
44 |
+
return '';
|
45 |
+
}
|
46 |
+
$sessMsg = Mage::getSingleton('customer/session')->getMessageHidden();
|
47 |
+
if ($sessMsg){
|
48 |
+
return '';
|
49 |
+
}
|
50 |
+
|
51 |
+
$html = $this->renderView();
|
52 |
+
return $html;
|
53 |
+
}
|
54 |
+
|
55 |
+
}
|
app/{design/frontend/base/default/template/magoch/quickinform/inform.phtml → code/community/Magoch/QuickInform/Helper/Data.php}
RENAMED
@@ -1,35 +1,38 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magoch
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is bundled with this package in the file
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade this module to newer
|
18 |
-
* versions in the future.
|
19 |
-
*
|
20 |
-
* @category Content Management
|
21 |
-
* @package Magoch_QuickInform
|
22 |
-
* @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
|
23 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Igor Ocheretnyi <support@magoch.com>
|
25 |
-
*/
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magoch
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
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 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
18 |
+
* versions in the future.
|
19 |
+
*
|
20 |
+
* @category Content Management
|
21 |
+
* @package Magoch_QuickInform
|
22 |
+
* @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
|
23 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Igor Ocheretnyi <support@magoch.com>
|
25 |
+
*/
|
26 |
+
class Magoch_QuickInform_Helper_Data extends Mage_Core_Helper_Abstract
|
27 |
+
{
|
28 |
+
public function getConfigData($namespace, $parentKey, $key) {
|
29 |
+
$config = Mage::getStoreConfig($namespace);
|
30 |
+
if (isset($config[$parentKey]) && isset($config[$parentKey][$key]) && strlen($config[$parentKey][$key]) > 0) {
|
31 |
+
$value = $config[$parentKey][$key];
|
32 |
+
return $value;
|
33 |
+
} else {
|
34 |
+
throw new Exception('Value not set');
|
35 |
+
}
|
36 |
+
}
|
37 |
+
}
|
38 |
+
?>
|
app/code/community/Magoch/QuickInform/Model/Mysql4/Setup.php
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magoch
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
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 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
18 |
+
* versions in the future.
|
19 |
+
*
|
20 |
+
* @category Content Management
|
21 |
+
* @package Magoch_QuickInform
|
22 |
+
* @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
|
23 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Igor Ocheretnyi support@magoch.com
|
25 |
+
*/
|
26 |
+
class Magoch_QuickInform_Model_Mysql4_Setup extends Mage_Sales_Model_Mysql4_Setup
|
27 |
+
{
|
28 |
+
|
29 |
+
}
|
app/code/community/Magoch/QuickInform/Model/Observer.php
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magoch
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
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 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
18 |
+
* versions in the future.
|
19 |
+
*
|
20 |
+
* @category Content Management
|
21 |
+
* @package Magoch_QuickInform
|
22 |
+
* @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
|
23 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Igor Ocheretnyi support@magoch.com
|
25 |
+
*/
|
26 |
+
|
27 |
+
class Magoch_QuickInform_Model_Observer {
|
28 |
+
//# in case onwer changed inform message during customer session
|
29 |
+
//# then new message content should be shown
|
30 |
+
function renderBlock($observer) {
|
31 |
+
$block = $observer->getEvent()->getBlock();
|
32 |
+
$moduleEnabled = Mage::getStoreConfig('qquoteadv/general/enabled', Mage::app()->getStore()->getStoreId());
|
33 |
+
$msgHidden = Mage::getSingleton('customer/session')->getMessageHidden();
|
34 |
+
if($moduleEnabled && $msgHidden) {
|
35 |
+
if('Magoch_QuickInform_Block_Processing' == get_class($block)) {
|
36 |
+
|
37 |
+
$message = Mage::getStoreConfig('quickinform/default/message', Mage::app()->getStore()->getStoreId());
|
38 |
+
$message = trim($message);
|
39 |
+
|
40 |
+
$sessMsg = Mage::getSingleton('customer/session')->getTextMessage();
|
41 |
+
if(!is_null($sessMsg) && $sessMsg != $message) {
|
42 |
+
Mage::getSingleton('customer/session')->setMessageHidden(false);
|
43 |
+
}
|
44 |
+
}
|
45 |
+
}
|
46 |
+
}
|
47 |
+
}
|
app/code/community/Magoch/QuickInform/controllers/ProcessingController.php
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magoch
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
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 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
18 |
+
* versions in the future.
|
19 |
+
*
|
20 |
+
* @category Content Management
|
21 |
+
* @package Magoch_QuickInform
|
22 |
+
* @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
|
23 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Igor Ocheretnyi support@magoch.com
|
25 |
+
*/
|
26 |
+
class Magoch_QuickInform_ProcessingController extends Mage_Core_Controller_Front_Action
|
27 |
+
{
|
28 |
+
function hidemsgAction(){
|
29 |
+
Mage::getSingleton('customer/session')->setMessageHidden(true);
|
30 |
+
|
31 |
+
$message = Mage::getStoreConfig('quickinform/default/message');
|
32 |
+
$message = trim($message);
|
33 |
+
$len = Mage::helper('core/string')->strlen($message);
|
34 |
+
if($len > 0) {
|
35 |
+
Mage::getSingleton('customer/session')->setTextMessage($message);
|
36 |
+
}
|
37 |
+
return;
|
38 |
+
}
|
39 |
+
}
|
app/code/community/Magoch/QuickInform/etc/config.xml
ADDED
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magoch
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category Content Management
|
22 |
+
* @package Magoch_QuickInform
|
23 |
+
* @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Igor Ocheretnyi support@magoch.com
|
26 |
+
*/
|
27 |
+
-->
|
28 |
+
<config>
|
29 |
+
<modules>
|
30 |
+
<Magoch_QuickInform>
|
31 |
+
<version>1.0.4</version>
|
32 |
+
</Magoch_QuickInform>
|
33 |
+
</modules>
|
34 |
+
<frontend>
|
35 |
+
<routers>
|
36 |
+
<quickinform>
|
37 |
+
<use>standard</use>
|
38 |
+
<args>
|
39 |
+
<module>Magoch_QuickInform</module>
|
40 |
+
<frontName>quickinform</frontName>
|
41 |
+
</args>
|
42 |
+
</quickinform>
|
43 |
+
</routers>
|
44 |
+
<layout>
|
45 |
+
<updates>
|
46 |
+
<quickinform>
|
47 |
+
<file>magoch/quickinform.xml</file>
|
48 |
+
</quickinform>
|
49 |
+
</updates>
|
50 |
+
</layout>
|
51 |
+
<events>
|
52 |
+
<core_block_abstract_to_html_before>
|
53 |
+
<observers>
|
54 |
+
<quickinform>
|
55 |
+
<class>quickinform/observer</class>
|
56 |
+
<method>renderBlock</method>
|
57 |
+
</quickinform>
|
58 |
+
</observers>
|
59 |
+
</core_block_abstract_to_html_before>
|
60 |
+
</events>
|
61 |
+
</frontend>
|
62 |
+
<global>
|
63 |
+
<models>
|
64 |
+
<quickinform>
|
65 |
+
<class>Magoch_QuickInform_Model</class>
|
66 |
+
</quickinform>
|
67 |
+
</models>
|
68 |
+
<resources>
|
69 |
+
<quickinform_setup>
|
70 |
+
<setup>
|
71 |
+
<module>Magoch_QuickInform</module>
|
72 |
+
</setup>
|
73 |
+
<connection>
|
74 |
+
<use>core_setup</use>
|
75 |
+
</connection>
|
76 |
+
</quickinform_setup>
|
77 |
+
<quickinform_write>
|
78 |
+
<connection>
|
79 |
+
<use>core_write</use>
|
80 |
+
</connection>
|
81 |
+
</quickinform_write>
|
82 |
+
<quickinform_read>
|
83 |
+
<connection>
|
84 |
+
<use>core_read</use>
|
85 |
+
</connection>
|
86 |
+
</quickinform_read>
|
87 |
+
</resources>
|
88 |
+
<blocks>
|
89 |
+
<quickinform>
|
90 |
+
<class>Magoch_QuickInform_Block</class>
|
91 |
+
</quickinform>
|
92 |
+
</blocks>
|
93 |
+
<helpers>
|
94 |
+
<quickinform>
|
95 |
+
<class>Magoch_QuickInform_Helper</class>
|
96 |
+
</quickinform>
|
97 |
+
</helpers>
|
98 |
+
</global>
|
99 |
+
<adminhtml>
|
100 |
+
<acl>
|
101 |
+
<resources>
|
102 |
+
<admin>
|
103 |
+
<children>
|
104 |
+
<system>
|
105 |
+
<children>
|
106 |
+
<config>
|
107 |
+
<children>
|
108 |
+
<quickinform>
|
109 |
+
<title>Quick Inform</title>
|
110 |
+
<sort_order>100</sort_order>
|
111 |
+
</quickinform>
|
112 |
+
</children>
|
113 |
+
</config>
|
114 |
+
</children>
|
115 |
+
</system>
|
116 |
+
</children>
|
117 |
+
</admin>
|
118 |
+
</resources>
|
119 |
+
</acl>
|
120 |
+
<translate>
|
121 |
+
<modules>
|
122 |
+
<Magoch_QuickInform>
|
123 |
+
<files>
|
124 |
+
<default>Magoch_QuickInform.csv</default>
|
125 |
+
</files>
|
126 |
+
</Magoch_QuickInform>
|
127 |
+
</modules>
|
128 |
+
</translate>
|
129 |
+
</adminhtml>
|
130 |
+
<default>
|
131 |
+
<quickinform>
|
132 |
+
<default>
|
133 |
+
</default>
|
134 |
+
</quickinform>
|
135 |
+
</default>
|
136 |
+
</config>
|
app/code/community/Magoch/QuickInform/etc/system.xml
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magoch
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category Content Management
|
22 |
+
* @package Magoch_QuickInform
|
23 |
+
* @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Igor Ocheretnyi <support@magoch.com>
|
26 |
+
*/
|
27 |
+
-->
|
28 |
+
<config>
|
29 |
+
<tabs>
|
30 |
+
<magoch module="quickinform">
|
31 |
+
<label>magoch.com</label>
|
32 |
+
<sort_order>310</sort_order>
|
33 |
+
</magoch>
|
34 |
+
</tabs>
|
35 |
+
<sections>
|
36 |
+
<quickinform translate="label" module="quickinform">
|
37 |
+
<tab>magoch</tab>
|
38 |
+
<label>Quick Inform</label>
|
39 |
+
<frontend_type>text</frontend_type>
|
40 |
+
<sort_order>300</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 |
+
<groups>
|
45 |
+
<default translate="label comment" module="quickinform">
|
46 |
+
<label>Defaults</label>
|
47 |
+
<comment><![CDATA[
|
48 |
+
<ul class="messages">
|
49 |
+
<li class="notice-msg">
|
50 |
+
<ul>
|
51 |
+
<li>Quick Inform Module Provided by <a href="http://www.magoch.com">Magoch.com</a><br /></li>
|
52 |
+
<li>If you are having problems with "Quick Inform" module then please contact us: <a href="mailto:support@magoch.com">support@magoch.com</a>
|
53 |
+
</li>
|
54 |
+
</ul>
|
55 |
+
</li>
|
56 |
+
</ul>
|
57 |
+
]]>
|
58 |
+
</comment>
|
59 |
+
<frontend_type>text</frontend_type>
|
60 |
+
<sort_order>1</sort_order>
|
61 |
+
<show_in_default>1</show_in_default>
|
62 |
+
<show_in_website>1</show_in_website>
|
63 |
+
<show_in_store>1</show_in_store>
|
64 |
+
<fields>
|
65 |
+
<enabled translate="label">
|
66 |
+
<label>Enabled</label>
|
67 |
+
<frontend_type>select</frontend_type>
|
68 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
69 |
+
<sort_order>1</sort_order>
|
70 |
+
<show_in_default>1</show_in_default>
|
71 |
+
<show_in_website>1</show_in_website>
|
72 |
+
<show_in_store>1</show_in_store>
|
73 |
+
<comment><![CDATA[Enable / disable extension]]>
|
74 |
+
</comment>
|
75 |
+
</enabled>
|
76 |
+
<message translate="label comment">
|
77 |
+
<label>Message</label>
|
78 |
+
<frontend_type>textarea</frontend_type>
|
79 |
+
<sort_order>2</sort_order>
|
80 |
+
<show_in_default>1</show_in_default>
|
81 |
+
<show_in_website>1</show_in_website>
|
82 |
+
<show_in_store>1</show_in_store>
|
83 |
+
<comment><![CDATA[Your message will be shown at all pages]]>
|
84 |
+
</comment>
|
85 |
+
</message>
|
86 |
+
</fields>
|
87 |
+
</default>
|
88 |
+
</groups>
|
89 |
+
</quickinform>
|
90 |
+
</sections>
|
91 |
+
</config>
|
app/design/frontend/base/default/layout/magoch/quickinform.xml
DELETED
@@ -1,37 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* Magoch
|
5 |
-
*
|
6 |
-
* NOTICE OF LICENSE
|
7 |
-
*
|
8 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
-
* It is also available through the world-wide-web at this URL:
|
11 |
-
* http://opensource.org/licenses/afl-3.0.php
|
12 |
-
* If you did not receive a copy of the license and are unable to
|
13 |
-
* obtain it through the world-wide-web, please send an email
|
14 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
-
*
|
16 |
-
* DISCLAIMER
|
17 |
-
*
|
18 |
-
* Do not edit or add to this file if you wish to upgrade this module to newer
|
19 |
-
* versions in the future.
|
20 |
-
*
|
21 |
-
* @category Content Management
|
22 |
-
* @package Magoch_QuickInform
|
23 |
-
* @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
|
24 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
-
* @author Igor Ocheretnyi <support@magoch.com>
|
26 |
-
*/
|
27 |
-
-->
|
28 |
-
<layout version="0.1.0">
|
29 |
-
<default>
|
30 |
-
<!-- <reference name="before_body_end">
|
31 |
-
<block type="core/template" name="magoch.quickinform" as="Quickinform" template="magoch/quickinform/inform.phtml"/>
|
32 |
-
</reference>-->
|
33 |
-
<reference name="content">
|
34 |
-
<block ifconfig="quickinform/default/enabled" type="core/template" before="-" name="magoch.quickinform" as="quickinform" template="magoch/quickinform/inform.phtml"/>
|
35 |
-
</reference>
|
36 |
-
</default>
|
37 |
-
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/locale/en_US/Magoch_QuickInform.csv
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"Your message will be shown at all pages","Your message will be shown at all pages"
|
2 |
+
"Message","Message"
|
3 |
+
"Enabled","Enabled"
|
4 |
+
"Defaults","Defaults"
|
5 |
+
"Quick Inform","Quick Inform"
|
package.xml
CHANGED
@@ -1,23 +1,39 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magoch__QuickInform</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>Extension gives you a possibility to add a message to all pages at once: inform your clients about any events.</summary>
|
10 |
-
<description><
|
11 |
-
<p>
|
12 |
-
<
|
13 |
-
<
|
14 |
-
<
|
15 |
-
<
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
<authors><author><name>Igor Ocheretnyi</name><user>magochdotcom</user><email>magento@magoch.com</email></author></authors>
|
18 |
-
<date>2011-
|
19 |
-
<time>
|
20 |
-
<contents><target name="
|
21 |
<compatible/>
|
22 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
23 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magoch__QuickInform</name>
|
4 |
+
<version>1.0.4</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Extension gives you a possibility to add a message to all pages at once: inform your clients about any events. Client can read and hide message.</summary>
|
10 |
+
<description><h2 class="prodname">Quick Inform</h2>
|
11 |
+
<p>
|
12 |
+
<span><br>Extension gives you a possibility to add a message to all pages at once.</span>
|
13 |
+
<span><br>This useful magento extension provides an ease of use for your web-shop.</span>
|
14 |
+
<span><br>Extension can be used&nbsp; in case you plan to send a quick message on frontend.</span>
|
15 |
+
<span><br>Quick message example:&nbsp;&nbsp; 
|
16 |
+
<br>"Dear clients! Today we have PROMO SALES. First&nbsp; 10 orders from 3p.m. till 4p.m. can be made with 50% discount.Please use promotion code 'ggeee2222' to be the first.Enjoy!"</span></p>
|
17 |
+
<p><strong><span>With the extension you are free to:</span></strong>
|
18 |
+
<br><span>&nbsp;&nbsp; * - Add message to all pages on frontend.</span></p>
|
19 |
+
<p><strong><span>Also the extension:</span></strong>
|
20 |
+
<br><span>&nbsp;&nbsp; * - is easy to install (takes just a couple minutes)</span>
|
21 |
+
<br><span>&nbsp;&nbsp; * - is 100% open source</span>
|
22 |
+
<br><span>&nbsp;&nbsp; * - free upgrades</span></p>
|
23 |
+
<p><strong><span>Release info:</span></strong>
|
24 |
+
<br><span>No files are replaced and no codding experience needed to install!</span>
|
25 |
+
<br><span>To install:</span>
|
26 |
+
<br><span>&nbsp;&nbsp; 1. Install extension using magento connect.</span>
|
27 |
+
<br><span>&nbsp;&nbsp; 2. Navigation to System &gt; Configuration &gt; .....General&gt;Quick Inform ... and enable extension for any store you need.</span>
|
28 |
+
<br><span>&nbsp;&nbsp; 3. Log out from admin and login again.</span>
|
29 |
+
<br><span>&nbsp;&nbsp; 4. Enjoy after adding your message for quick inform.</span></p>
|
30 |
+

|
31 |
+
<p>Direct link: <a href="http://magoch.com/explore/quick-inform.html">Quick Inform</a></p></description>
|
32 |
+
<notes>#Added functionality to hide message during customer session</notes>
|
33 |
<authors><author><name>Igor Ocheretnyi</name><user>magochdotcom</user><email>magento@magoch.com</email></author></authors>
|
34 |
+
<date>2011-11-29</date>
|
35 |
+
<time>10:11:05</time>
|
36 |
+
<contents><target name="magecommunity"><dir><dir name="Magoch"><dir><dir name="QuickInform"><dir name="Block"><file name="Processing.php" hash="877e2046caf54dd0ade57ea53f65f5a3"/></dir><dir name="Helper"><file name="Data.php" hash="952479c98fd172902f5935bcaee4dec4"/></dir><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="791dd62cd90cc4809d07cf397f5b0c05"/></dir><file name="Observer.php" hash="ee7ec3c04cafd306b84eb10b6a54d9dc"/></dir><dir name="controllers"><file name="ProcessingController.php" hash="aca680260180d753935d330cd90e9819"/></dir><dir name="etc"><file name="config.xml" hash="c651897d860fac1d8463accfc4e940f4"/><file name="system.xml" hash="20a5d079eff1f32a0896550eb530f09b"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magoch_QuickInform.xml" hash="d6fc19783815345ab338b2216e435119"/></dir></target><target name="magedesign"><dir name="magoch"><file name="quickinform.xml" hash=""/><dir name="quickinform"><file name="inform.phtml" hash=""/></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Magoch_QuickInform.csv" hash="9f800b70c883f0261e53543849acf33e"/></dir></target></contents>
|
37 |
<compatible/>
|
38 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
39 |
</package>
|