Version Notes
#Added possibility hide message during session.
Download this release
Release Info
Developer | Igor Ocheretnyi |
Extension | Magoch__QuickInform |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
app/design/frontend/base/default/layout/magoch/quickinform.xml
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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="content">
|
31 |
+
<block ifconfig="quickinform/default/enabled" type="quickinform/processing" before="-" name="magoch.quickinform" as="quickinform" template="magoch/quickinform/inform.phtml"/>
|
32 |
+
</reference>
|
33 |
+
</default>
|
34 |
+
</layout>
|
app/design/frontend/base/default/template/magoch/quickinform/inform.phtml
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magoch
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-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 |
+
<script type="text/javascript">
|
28 |
+
<!--
|
29 |
+
function hideDivBySess(divId) {
|
30 |
+
if(!document.getElementById(divId)) return;
|
31 |
+
var url = "<?php echo $this->getBaseUrl() . 'quickinform/processing/hidemsg' ?>";
|
32 |
+
|
33 |
+
document.body.style.cursor = "wait";
|
34 |
+
new Ajax.Request(url, {
|
35 |
+
method:'post',
|
36 |
+
parameters: {},
|
37 |
+
onCreate: function() {
|
38 |
+
//document.getElementById(divId).style.display="none";
|
39 |
+
},
|
40 |
+
onSuccess: function(transport) {
|
41 |
+
document.body.style.cursor = "auto";
|
42 |
+
|
43 |
+
//if( transport.readyState == 4){
|
44 |
+
if (transport.status == 200) {
|
45 |
+
//document.getElementById(divId).innerHTML=transport.responseText;
|
46 |
+
document.getElementById(divId).style.display="none";
|
47 |
+
}
|
48 |
+
//}
|
49 |
+
},
|
50 |
+
onFailure: function() {
|
51 |
+
alert('<?php echo $this->__('Connection Error try again later.') ?>');
|
52 |
+
}
|
53 |
+
});
|
54 |
+
return(false);
|
55 |
+
}
|
56 |
+
//-->
|
57 |
+
</script>
|
58 |
+
|
59 |
+
<?php $message = Mage::getStoreConfig('quickinform/default/message'); ?>
|
60 |
+
<?php $message = trim($message); ?>
|
61 |
+
<?php $len = Mage::helper('core/string')->strlen($message); ?>
|
62 |
+
<?php if($len > 0): ?>
|
63 |
+
<div id="quickinform-wrapper" class="quickinform-wrapper">
|
64 |
+
<div id="quickinform-body" class="quickinform-body">
|
65 |
+
<ul class="messages">
|
66 |
+
<li class="notice-msg">
|
67 |
+
<ul><li><?php echo $message; ?></li></ul>
|
68 |
+
<ul style="cursor: pointer;" onclick="hideDivBySess('quickinform-wrapper')"><li>[ <?php echo $this->__('hide') ?> ]</li></ul>
|
69 |
+
</li>
|
70 |
+
</ul>
|
71 |
+
</div>
|
72 |
+
</div>
|
73 |
+
<?php endif?>
|
package.xml
CHANGED
@@ -1,39 +1,49 @@
|
|
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
|
10 |
-
|
|
|
|
|
11 |
<p>
|
12 |
-
|
13 |
-
<
|
14 |
-
<
|
15 |
-
<
|
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>
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
<authors><author><name>Igor Ocheretnyi</name><user>magochdotcom</user><email>magento@magoch.com</email></author></authors>
|
34 |
-
<date>2011-
|
35 |
-
<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="
|
37 |
<compatible/>
|
38 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
39 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magoch__QuickInform</name>
|
4 |
+
<version>1.0.5</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary><p>Extension gives you a possibility to add a message to all pages at once.</p>
|
10 |
+
<p>Extension can be used in case you plan to send a quick message.</p></summary>
|
11 |
+
<description><p><!-- --></p>
|
12 |
+
<p><strong>Quick message example:</strong></p>
|
13 |
<p>
|
14 |
+
"Dear clients! Today we have PROMO SALES. 
|
15 |
+
<div>From 3p.m. till 4p.m. first 10 orders can be made with 50% discount.</div>
|
16 |
+
<div>Please use promotion code 'MAGENTO_2012' to be the first. Enjoy!"</div>
|
17 |
+
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |

|
19 |
+
<p><!-- --></p>
|
20 |
+
<p><strong><span>With the extension you are free to:</span></strong></p>
|
21 |
+
<p>* - Add message to all pages on frontend.</p>
|
22 |
+

|
23 |
+
<p><!-- --></p>
|
24 |
+
<p><strong>Also the extension:</strong></p>
|
25 |
+
<p>• is easy to install (takes just a couple minutes)</p>
|
26 |
+
<p>• is 100% open source</p>
|
27 |
+
<p>• free upgrades</p>
|
28 |
+

|
29 |
+
<p><!-- --></p>
|
30 |
+
<p><strong>To install:</strong></p>
|
31 |
+
<ul>
|
32 |
+
<li>1. Install extension using magento connect.</li>
|
33 |
+
<li>2. Log out from admin and login again.</li>
|
34 |
+
<li>3. Navigation to System -> Configuration -> left tab Magoch.com->Quick Inform ... and enable extension for any store you need.</li>
|
35 |
+
<li>4. Enjoy after adding your message for quick inform.</li>
|
36 |
+
</ul>
|
37 |
+

|
38 |
+
<p><!-- --></p>
|
39 |
+
<p><strong><a target="_blank" href="http://www.magoch.com/">Visit www.magoch.com for more info.</a></strong></p>
|
40 |
+

|
41 |
+
</description>
|
42 |
+
<notes>#Added possibility hide message during session.</notes>
|
43 |
<authors><author><name>Igor Ocheretnyi</name><user>magochdotcom</user><email>magento@magoch.com</email></author></authors>
|
44 |
+
<date>2011-12-02</date>
|
45 |
+
<time>11:54:09</time>
|
46 |
+
<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="magelocale"><dir name="en_US"><file name="Magoch_QuickInform.csv" hash="9f800b70c883f0261e53543849acf33e"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="magoch"><file name="quickinform.xml" hash="1ade1421515429f9bd04d69b190a52a0"/></dir></dir><dir name="template"><dir name="magoch"><dir name="quickinform"><file name="inform.phtml" hash="3522d25fc751ebc4f6a95ee8ea77296b"/></dir></dir></dir></dir></dir></dir></target></contents>
|
47 |
<compatible/>
|
48 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
49 |
</package>
|