xonu_PayPalInvoiceSender - Version 1.0.3

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.3
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.3

app/code/community/Xonu/PayPalInvoiceSender/Block/Adminhtml/Notification/Window.php DELETED
@@ -1,31 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * @copyright Copyright (c) 2012 Pawel Kazakow (http://xonu.de)
5
- */
6
-
7
- ?>
8
-
9
- <?php
10
-
11
- require_once ('Mage/Adminhtml/Block/Notification/Window.php');
12
- class Xonu_PayPalInvoiceSender_Block_Adminhtml_Notification_Window extends Mage_Adminhtml_Block_Notification_Window
13
- {
14
- public function __construct()
15
- {
16
- parent::__construct();
17
-
18
- $type = $this->getLastNotice()->getType();
19
-
20
- if ( isset ( $type ) && $type == "paypalinvoice" )
21
- {
22
- $this->setNoticeMessageText(addslashes($this->getLastNotice()->getDescription()));
23
- $this->messageID = $this->getLastNotice()->getId();
24
- $this->setTemplate("paypalinvoicesender/notification/window.phtml");
25
- }
26
- else
27
- {
28
- $this->setTemplate("notification/window.phtml");
29
- }
30
- }
31
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Xonu/PayPalInvoiceSender/Helper/Data.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /**
4
- * @copyright Copyright (c) 2012 Pawel Kazakow (http://xonu.de)
5
  */
6
 
7
  ?>
1
  <?php
2
 
3
  /**
4
+ * @copyright Copyright (c) 2013 Pawel Kazakow (http://xonu.de)
5
  */
6
 
7
  ?>
app/code/community/Xonu/PayPalInvoiceSender/Model/Ipn.php CHANGED
@@ -1,14 +1,13 @@
1
  <?php
2
 
3
  /**
4
- * @copyright Copyright (c) 2012 Pawel Kazakow (http://xonu.de)
5
  */
6
 
7
  ?>
8
 
9
  <?php
10
 
11
- require_once ('Mage/Paypal/Model/Ipn.php');
12
  class Xonu_PayPalInvoiceSender_Model_Ipn extends Mage_Paypal_Model_Ipn
13
  {
14
 
1
  <?php
2
 
3
  /**
4
+ * @copyright Copyright (c) 2013 Pawel Kazakow (http://xonu.de)
5
  */
6
 
7
  ?>
8
 
9
  <?php
10
 
 
11
  class Xonu_PayPalInvoiceSender_Model_Ipn extends Mage_Paypal_Model_Ipn
12
  {
13
 
app/code/community/Xonu/PayPalInvoiceSender/etc/config.xml CHANGED
@@ -1,13 +1,13 @@
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
- * @copyright Copyright (c) 2012 Pawel Kazakow (http://xonu.de)
5
  */
6
  -->
7
  <config>
8
  <modules>
9
  <Xonu_PayPalInvoiceSender>
10
- <version>1.0.1</version>
11
  </Xonu_PayPalInvoiceSender>
12
  </modules>
13
 
@@ -22,17 +22,6 @@
22
  </paypalinvoicesender>
23
  </routers>
24
  </admin>
25
-
26
- <adminhtml>
27
- <layout>
28
- <updates>
29
- <paypalinvoicesender>
30
- <file>paypalinvoicesender.xml</file>
31
- </paypalinvoicesender>
32
- </updates>
33
- </layout>
34
- </adminhtml>
35
-
36
  <global>
37
  <models>
38
 
@@ -66,19 +55,6 @@
66
  </paypalinvoicesender_read>
67
  </resources>
68
 
69
- <blocks>
70
-
71
- <paypalinvoicesender>
72
- <class>Xonu_PayPalInvoiceSender_Block</class>
73
- </paypalinvoicesender>
74
-
75
- <adminhtml>
76
- <rewrite>
77
- <notification_window>Xonu_PayPalInvoiceSender_Block_Adminhtml_Notification_Window</notification_window>
78
- </rewrite>
79
- </adminhtml>
80
- </blocks>
81
-
82
  <helpers>
83
  <paypalinvoicesender>
84
  <class>Xonu_PayPalInvoiceSender_Helper</class>
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
+ * @copyright Copyright (c) 2013 Pawel Kazakow (http://xonu.de)
5
  */
6
  -->
7
  <config>
8
  <modules>
9
  <Xonu_PayPalInvoiceSender>
10
+ <version>1.0.3</version>
11
  </Xonu_PayPalInvoiceSender>
12
  </modules>
13
 
22
  </paypalinvoicesender>
23
  </routers>
24
  </admin>
 
 
 
 
 
 
 
 
 
 
 
25
  <global>
26
  <models>
27
 
55
  </paypalinvoicesender_read>
56
  </resources>
57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  <helpers>
59
  <paypalinvoicesender>
60
  <class>Xonu_PayPalInvoiceSender_Helper</class>
app/code/community/Xonu/PayPalInvoiceSender/etc/system.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
- * @copyright Copyright (c) 2012 Pawel Kazakow (http://xonu.de)
5
  */
6
  -->
7
  <config>
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
+ * @copyright Copyright (c) 2013 Pawel Kazakow (http://xonu.de)
5
  */
6
  -->
7
  <config>
app/code/community/Xonu/PayPalInvoiceSender/sql/paypalinvoicesender_setup/mysql4-install-1.0.0.php DELETED
@@ -1,45 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * @copyright Copyright (c) 2012 Pawel Kazakow (http://xonu.de)
5
- */
6
-
7
- ?>
8
-
9
- <?php
10
-
11
- //set config
12
- Mage::getModel('core/config')->saveConfig('paypalinvoicesender/general/send_invoice', 1 );
13
-
14
- /* *
15
- * Notification Data
16
- * */
17
- $title = 'PayPal Invoice Sender extension have been successfully installed.';
18
- $description = 'PayPal Invoice Sender extension have been successfully installed. To disable/enable this extension, please go to System > Configuration > Sales: Payment Methods > PayPal Additional Settings.';
19
- $website = "http://xonu.de/magento-extensions/paypal-invoice-sender.html";
20
- $time = date("Y-m-d H:i:s");
21
-
22
- //update feed
23
- $feed = new Mage_AdminNotification_Model_Feed();
24
- $feed->setLastUpdate();
25
-
26
- $installer = $this;
27
-
28
- $installer->startSetup();
29
-
30
- //add notification message
31
- try {
32
- $installer->run('ALTER TABLE `adminnotification_inbox` DROP `type`;');
33
- } catch ( Exception $e ) {}
34
-
35
-
36
- $installer->run('
37
- ALTER TABLE `adminnotification_inbox` ADD COLUMN `type` ENUM("normal","paypalinvoice") NOT NULL DEFAULT "normal" AFTER `is_remove`;
38
-
39
- DELETE FROM `adminnotification_inbox` WHERE `type` = "paypalinvoice";
40
- INSERT INTO `adminnotification_inbox`
41
- ( `severity`, `date_added`, `title`, `description`, `url`, `is_read`, `is_remove`, `type`)
42
- VALUES ( 3, "' . $time . '", " ' . $title . ' ", "' . $description . '", "' . $website . '", 0, 0, "paypalinvoice")
43
- ');
44
-
45
- $installer->endSetup();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/layout/paypalinvoicesender.xml DELETED
@@ -1,14 +0,0 @@
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 DELETED
@@ -1,73 +0,0 @@
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.2</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>auto-converted</user><email>support@xonu.de</email></author></authors>
13
- <date>2012-10-17</date>
14
- <time>07:46:15</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="d764ea1c251b27c6d5b21fa1b1304a34"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="fee76ed60543ebf1f2357c9c226af113"/></dir><dir name="Model"><file name="Ipn.php" hash="316ed387122651fce4c3b47eaa2ff4cf"/></dir><dir name="etc"><file name="config.xml" hash="ce355f6d26d606061c543a6e1e0b1578"/><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="0e45ae150966e6249d5b9b1887c07910"/></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/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>xonu_PayPalInvoiceSender</name>
4
+ <version>1.0.3</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>2013-04-26</date>
14
+ <time>10:02:14</time>
15
+ <contents><target name="magecommunity"><dir name="Xonu"><dir name="PayPalInvoiceSender"><dir name="Helper"><file name="Data.php" hash="479eb1ba9251284df7fa77b2bc48913b"/></dir><dir name="Model"><file name="Ipn.php" hash="216303893fc5f6779143983232f0c046"/></dir><dir name="etc"><file name="config.xml" hash="1272ce18126c057930d53fa9639a2c00"/><file name="system.xml" hash="4ebf526088aa0c1e06c94fa3f7395a89"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="xonu_PayPalInvoiceSender.xml" hash="0e45ae150966e6249d5b9b1887c07910"/></dir></target></contents>
16
  <compatible/>
17
+ <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
skin/adminhtml/default/default/images/paypalinvoice.png DELETED
Binary file