xonu_PayPalInvoiceSender - Version 1.0.1

Version Notes

Sends invoice automatically after an order is paid using PayPal.

Download this release

Release Info

Developer Pawel Kazakow
Extension xonu_PayPalInvoiceSender
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/xonu/PayPalInvoiceSender/etc/config.xml CHANGED
@@ -7,7 +7,7 @@
7
<config>
8
<modules>
9
<xonu_PayPalInvoiceSender>
10
- <version>1.0.0</version>
11
</xonu_PayPalInvoiceSender>
12
</modules>
13
7
<config>
8
<modules>
9
<xonu_PayPalInvoiceSender>
10
+ <version>1.0.1</version>
11
</xonu_PayPalInvoiceSender>
12
</modules>
13
app/design/adminhtml/default/default/layout/paypalinvoicesender.xml ADDED
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @copyright Copyright (c) 2012 Pawel Kazakow (http://xonu.de)
5
+ */
6
+ -->
7
+
8
+ <layout version="0.1.0">
9
+ <default>
10
+ <reference name="notifications">
11
+ <block type="paypalinvoicesender/adminhtml_notification_window" name="notification_window" as="notification_window" acl="system/adminnotification/show_toolbar" />
12
+ </reference>
13
+ </default>
14
+ </layout>
app/design/adminhtml/default/default/template/paypalinvoicesender/notification/window.phtml ADDED
@@ -0,0 +1,73 @@
1
+ <?php
2
+
3
+ /**
4
+ * @copyright Copyright (c) 2012 Pawel Kazakow (http://xonu.de)
5
+ */
6
+
7
+ ?>
8
+
9
+ <?php if ($this->canShow()): ?>
10
+ <script type="text/javascript">
11
+ //<![CDATA[
12
+ var messagePopupClosed = false;
13
+ function openMessagePopup() {
14
+ var height = $('html-body').getHeight();
15
+ $('message-popup-window-mask').setStyle({'height':height+'px'});
16
+ toggleSelectsUnderBlock($('message-popup-window-mask'), false);
17
+ Element.show('message-popup-window-mask');
18
+ $('message-popup-window').addClassName('show');
19
+ }
20
+
21
+ function closeMessagePopup() {
22
+
23
+ var notShow = $('notShowAgain').getValue();
24
+
25
+ if ( notShow )
26
+ {
27
+ new Ajax.Request("<?php echo $this->getUrl('*/notification/markAsRead/', array('_current'=>true, 'id' => $this->messageID)) ?>",
28
+ {
29
+ method:'get'
30
+ });
31
+ }
32
+
33
+ toggleSelectsUnderBlock($('message-popup-window-mask'), true);
34
+ Element.hide('message-popup-window-mask');
35
+ $('message-popup-window').removeClassName('show');
36
+ messagePopupClosed = true;
37
+
38
+ }
39
+
40
+ Event.observe(window, 'load', openMessagePopup);
41
+ Event.observe(window, 'keyup', function(evt) {
42
+ if(messagePopupClosed) return;
43
+ var code;
44
+ if (evt.keyCode) code = evt.keyCode;
45
+ else if (evt.which) code = evt.which;
46
+ if (code == Event.KEY_ESC) {
47
+ closeMessagePopup();
48
+ }
49
+ });
50
+ //]]>
51
+ </script>
52
+
53
+ <style>
54
+ .message-popup.show { top:50% }
55
+ </style>
56
+
57
+ <div id="message-popup-window-mask" style="display:none;"></div>
58
+ <div id="message-popup-window" style="width:640px; margin-left:-320px; margin-top:-230px;" class="message-popup">
59
+ <div class="message-popup-head">
60
+ <a href="#" onclick="closeMessagePopup(); return false;" title="<?php echo $this->getCloseText(); ?>"><span><?php echo $this->getCloseText(); ?></span></a>
61
+ <h2><?php echo $this->getHeaderText(); ?></h2>
62
+ </div>
63
+ <div class="message-popup-content">
64
+ <div class="message">
65
+ <p style="float:none; text-align: center; width:100%; margin: 6px 0" class="message-text"><?php echo $this->getNoticeMessageText(); ?></p>
66
+ <img src="<?php echo $this->getSkinUrl('images/paypalinvoice.png'); ?>" alt="" />
67
+ </div>
68
+ </div>
69
+ <div style="padding:1px 23px 0"><input type="checkbox" id="notShowAgain" /><label style="color:#644F3B; position: relative; left:5px; top: 1px;" for="notShowAgain">Don't show this message again.</label></div>
70
+ </div>
71
+ <?php endif; ?>
72
+
73
+
package.xml CHANGED
@@ -1,18 +1,18 @@
1
<?xml version="1.0"?>
2
<package>
3
<name>xonu_PayPalInvoiceSender</name>
4
- <version>1.0.0</version>
5
<stability>stable</stability>
6
- <license uri="http://xonu.de/license/">xonu.de EULA</license>
7
<channel>community</channel>
8
<extends/>
9
<summary>Sends invoice automatically after an order is paid using PayPal.</summary>
10
<description>After successful PayPal payment, Magento automatically creates invoice but it is not sent to customer. PayPal Invoice Sender automatically sends the invoice after an order have been paid using PayPal.</description>
11
<notes>Sends invoice automatically after an order is paid using PayPal.</notes>
12
<authors><author><name>Pawel Kazakow</name><user>xonu</user><email>support@xonu.de</email></author></authors>
13
- <date>2012-07-30</date>
14
- <time>10:31:29</time>
15
- <contents><target name="magecommunity"><dir name="xonu"><dir name="PayPalInvoiceSender"><dir name="Block"><dir name="Adminhtml"><dir name="Notification"><file name="Window.php" hash="139e3ee7e6e502c0a484e521afd944ae"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="2cc7f47219bd710fa74601c3f95b1804"/></dir><dir name="Model"><file name="Ipn.php" hash="1da69b8a52d95d450e27752f6b4cddef"/></dir><dir name="etc"><file name="config.xml" hash="4a611609caf4558532132c3fc5f95cf6"/><file name="system.xml" hash="00e6ba0db9aa402a9cd64b1b7847500b"/></dir><dir name="sql"><dir name="paypalinvoicesender_setup"><file name="mysql4-install-1.0.0.php" hash="a3f6f0e131df9d802185e64bcd467809"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="xonu_PayPalInvoiceSender.xml" hash="97703713ae2f3b122a04bb52019ffe83"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="paypalinvoice.png" hash="8d4e360fd375f0e4e22ffdbcf24ac020"/></dir></dir></dir></dir></target></contents>
16
<compatible/>
17
- <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
18
</package>
1
<?xml version="1.0"?>
2
<package>
3
<name>xonu_PayPalInvoiceSender</name>
4
+ <version>1.0.1</version>
5
<stability>stable</stability>
6
+ <license>xonu.de EULA</license>
7
<channel>community</channel>
8
<extends/>
9
<summary>Sends invoice automatically after an order is paid using PayPal.</summary>
10
<description>After successful PayPal payment, Magento automatically creates invoice but it is not sent to customer. PayPal Invoice Sender automatically sends the invoice after an order have been paid using PayPal.</description>
11
<notes>Sends invoice automatically after an order is paid using PayPal.</notes>
12
<authors><author><name>Pawel Kazakow</name><user>xonu</user><email>support@xonu.de</email></author></authors>
13
+ <date>2012-08-06</date>
14
+ <time>07:03:43</time>
15
+ <contents><target name="magecommunity"><dir name="xonu"><dir name="PayPalInvoiceSender"><dir name="Block"><dir name="Adminhtml"><dir name="Notification"><file name="Window.php" hash="139e3ee7e6e502c0a484e521afd944ae"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="2cc7f47219bd710fa74601c3f95b1804"/></dir><dir name="Model"><file name="Ipn.php" hash="1da69b8a52d95d450e27752f6b4cddef"/></dir><dir name="etc"><file name="config.xml" hash="f9094a12e32c3021bc65498e82fef47e"/><file name="system.xml" hash="00e6ba0db9aa402a9cd64b1b7847500b"/></dir><dir name="sql"><dir name="paypalinvoicesender_setup"><file name="mysql4-install-1.0.0.php" hash="a3f6f0e131df9d802185e64bcd467809"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="xonu_PayPalInvoiceSender.xml" hash="97703713ae2f3b122a04bb52019ffe83"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="paypalinvoicesender.xml" hash="6730a005e4d073ee003778a984d5803a"/></dir><dir name="template"><dir name="paypalinvoicesender"><dir name="notification"><file name="window.phtml" hash="c70aee980c939556e8598ff14cfb21d7"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="paypalinvoice.png" hash="8d4e360fd375f0e4e22ffdbcf24ac020"/></dir></dir></dir></dir></target></contents>
16
<compatible/>
17
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
</package>