Asperience_Printorderline - Version 0.1.4

Version Notes

If you have ideas for improvements or find bugs, please send them to Ronan Capitaine or Jean-Sébastien Hederer at www.asperience.fr, with ASPerience PrintOrderLine as part of the subject line.

Download this release

Release Info

Developer Magento Core Team
Extension Asperience_Printorderline
Version 0.1.4
Comparing to
See all releases


Code changes from version 0.1.2 to 0.1.4

app/code/{local → community}/Asperience/Printorderline/Helper/Data.php RENAMED
File without changes
app/code/community/Asperience/Printorderline/Model/Observer.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category ASPerience
4
+ * @package Asperience_DeleteAllOrders
5
+ * @author ASPerience - www.asperience.fr
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+
9
+
10
+ class Asperience_Printorderline_Model_Observer
11
+ {
12
+ public function addOptionToSelect($observer)
13
+ {
14
+
15
+ if ($observer->getEvent()->getBlock()->getId() == 'sales_order_grid') {
16
+ $massBlock = $observer->getEvent()->getBlock()->getMassactionBlock();
17
+ if ($massBlock) {
18
+ $massBlock->addItem('pdforders_order', array(
19
+ 'label'=> Mage::helper('printorderline')->__('Print order lines'),
20
+ 'url' => Mage::getUrl('printorderline/order/pdforders'),
21
+ ));
22
+ }
23
+ }
24
+ }
25
+ }
app/code/{local → community}/Asperience/Printorderline/Model/Order/Pdf/Order.php RENAMED
File without changes
app/code/{local → community}/Asperience/Printorderline/controllers/OrderController.php RENAMED
File without changes
app/code/{local → community}/Asperience/Printorderline/etc/config.xml RENAMED
@@ -10,24 +10,11 @@
10
  <config>
11
  <modules>
12
  <Asperience_Printorderline>
13
- <version>0.1.1</version>
14
  </Asperience_Printorderline>
15
  </modules>
16
 
17
  <global>
18
- <blocks>
19
- <adminhtml>
20
- <rewrite>
21
- <sales_order_grid>Asperience_Printorderline_Block_Sales_Order_Grid</sales_order_grid>
22
- </rewrite>
23
- </adminhtml>
24
- </blocks>
25
- <rewrite>
26
- <asperience_printorderline_order>
27
- <from><![CDATA[#/\w+/sales_order/pdforders/#]]></from>
28
- <to>/printorderline/order/pdforders/</to>
29
- </asperience_printorderline_order>
30
- </rewrite>
31
  <models>
32
  <Asperience_Printorderline>
33
  <class>Asperience_Printorderline_Model</class>
@@ -65,5 +52,16 @@
65
  </Asperience_Printorderline>
66
  </modules>
67
  </translate>
 
 
 
 
 
 
 
 
 
 
 
68
  </adminhtml>
69
  </config>
10
  <config>
11
  <modules>
12
  <Asperience_Printorderline>
13
+ <version>0.1.4</version>
14
  </Asperience_Printorderline>
15
  </modules>
16
 
17
  <global>
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  <models>
19
  <Asperience_Printorderline>
20
  <class>Asperience_Printorderline_Model</class>
52
  </Asperience_Printorderline>
53
  </modules>
54
  </translate>
55
+
56
+ <events>
57
+ <adminhtml_block_html_before>
58
+ <observers>
59
+ <asperience_printorderline>
60
+ <class>Asperience_Printorderline_Model_Observer</class>
61
+ <method>addOptionToSelect</method>
62
+ </asperience_printorderline>
63
+ </observers>
64
+ </adminhtml_block_html_before>
65
+ </events>
66
  </adminhtml>
67
  </config>
app/code/local/Asperience/Printorderline/Block/Sales/Order/Grid.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
- /**
3
- * @category ASPerience
4
- * @package Asperience_Printorderline
5
- * @author ASPerience - www.asperience.fr
6
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
- */
8
-
9
- class Asperience_Printorderline_Block_Sales_Order_Grid extends Mage_Adminhtml_Block_Sales_Order_Grid
10
- {
11
-
12
- protected function _prepareMassaction()
13
- {
14
- parent::_prepareMassaction();
15
- $this->getMassactionBlock()->addItem('pdforders_order', array(
16
- 'label'=> Mage::helper('printorderline')->__('Print order lines'),
17
- 'url' => $this->getUrl('*/*/pdforders'),
18
- ));
19
- return $this;
20
- }
21
- }
22
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/Asperience_Printorderline.xml CHANGED
@@ -11,7 +11,7 @@
11
  <modules>
12
  <Asperience_Printorderline>
13
  <active>true</active>
14
- <codePool>local</codePool>
15
  </Asperience_Printorderline>
16
  </modules>
17
  </config>
11
  <modules>
12
  <Asperience_Printorderline>
13
  <active>true</active>
14
+ <codePool>community</codePool>
15
  </Asperience_Printorderline>
16
  </modules>
17
  </config>
app/locale/en_US/Asperience_Printorderline.csv ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ "Payment/Shipping Method","Payment/Shipping Method"
2
+ "Print order lines","Print order lines"
3
+ "Tax: ","Tax: "
4
+ "Ship: ","Ship.: "
5
+ "SubT: ","SubT: "
6
+ "GrandT: ","GrandT: "
7
+
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Asperience_Printorderline</name>
4
- <version>0.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>To have a summary of the orders, this module allows, with the back office, to print on pdf all the lines of selected orders.</description>
11
  <notes>If you have ideas for improvements or find bugs, please send them to Ronan Capitaine or Jean-S&#xE9;bastien Hederer at www.asperience.fr, with ASPerience PrintOrderLine as part of the subject line.</notes>
12
  <authors><author><name>Jean-S&#xE9;bastien Hederer</name><user>auto-converted</user><email>hedererjs@asperience.fr</email></author><author><name>Ronan Capitaine</name><user>auto-converted</user><email>capitainer@asperience.fr</email></author></authors>
13
- <date>2010-01-20</date>
14
- <time>16:26:32</time>
15
- <contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Asperience_Printorderline.xml" hash="104bba73c11a049841b39e71bf30026e"/></dir></dir></dir></target><target name="magelocal"><dir name="Asperience"><dir name="Printorderline"><dir name="Block"><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="13e23b20bff1aa9722c3173c0e64715c"/></dir></dir></dir><dir name="controllers"><file name="OrderController.php" hash="ee0e32011e1fd7c4ba368c399bcb8f19"/></dir><dir name="etc"><file name="config.xml" hash="8e5ee51aa98915982134c09038fc5473"/></dir><dir name="Helper"><file name="Data.php" hash="4973f68f8b95618a017857b21fa4d759"/></dir><dir name="Model"><dir name="Order"><dir name="Pdf"><file name="Order.php" hash="a98340711c36eccdc77c8aefd183f59d"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Asperience_Printorderline.csv" hash="14b99d913dca710a46651058f54abb25"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Asperience_Printorderline</name>
4
+ <version>0.1.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
10
  <description>To have a summary of the orders, this module allows, with the back office, to print on pdf all the lines of selected orders.</description>
11
  <notes>If you have ideas for improvements or find bugs, please send them to Ronan Capitaine or Jean-S&#xE9;bastien Hederer at www.asperience.fr, with ASPerience PrintOrderLine as part of the subject line.</notes>
12
  <authors><author><name>Jean-S&#xE9;bastien Hederer</name><user>auto-converted</user><email>hedererjs@asperience.fr</email></author><author><name>Ronan Capitaine</name><user>auto-converted</user><email>capitainer@asperience.fr</email></author></authors>
13
+ <date>2011-05-02</date>
14
+ <time>12:21:24</time>
15
+ <contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Asperience_Printorderline.xml" hash="a9d761fb2d923dfc1adf93541ce19dd8"/></dir></dir></dir></target><target name="magecommunity"><dir name="Asperience"><dir name="Printorderline"><dir name="controllers"><file name="OrderController.php" hash="ee0e32011e1fd7c4ba368c399bcb8f19"/></dir><dir name="etc"><file name="config.xml" hash="f7f61e8d25de3879a2dd08fd6c7a418b"/></dir><dir name="Helper"><file name="Data.php" hash="4973f68f8b95618a017857b21fa4d759"/></dir><dir name="Model"><dir name="Order"><dir name="Pdf"><file name="Order.php" hash="a98340711c36eccdc77c8aefd183f59d"/></dir></dir><file name="Observer.php" hash="48b5aaef5156000adda2dd5bf9bbb930"/></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Asperience_Printorderline.csv" hash="c76da04e855f371065accffd3952c3d8"/></dir><dir name="fr_FR"><file name="Asperience_Printorderline.csv" hash="14b99d913dca710a46651058f54abb25"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>