Asperience_Printorderline - Version 0.2.1

Version Notes

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

Download this release

Release Info

Developer Jean-Sébastien Hederer
Extension Asperience_Printorderline
Version 0.2.1
Comparing to
See all releases


Code changes from version 0.2.0 to 0.2.1

app/code/community/Asperience/Printorderline/Model/Order/Pdf/Order.php CHANGED
@@ -56,9 +56,13 @@ class Asperience_Printorderline_Model_Order_Pdf_Order extends Mage_Sales_Model_O
56
  $lgMaxMet = 72;
57
 
58
  //Payment method
59
- $paymentInfo = Mage::helper('payment')->getInfoBlock($order->getPayment())
60
- ->setIsSecureMode(true)
61
- ->toPdf();
 
 
 
 
62
  $payment = explode('{{pdf_row_separator}}', $paymentInfo);
63
  $count = 0;
64
  foreach ($payment as $key=>$value){
56
  $lgMaxMet = 72;
57
 
58
  //Payment method
59
+ try {
60
+ $paymentInfo = Mage::helper('payment')->getInfoBlock($order->getPayment())
61
+ ->setIsSecureMode(true)
62
+ ->toPdf();
63
+ } catch (Exception $e) {
64
+ $paymentInfo = $order->getPayment()->getMethod();
65
+ }
66
  $payment = explode('{{pdf_row_separator}}', $paymentInfo);
67
  $count = 0;
68
  foreach ($payment as $key=>$value){
app/code/community/Asperience/Printorderline/etc/config.xml CHANGED
@@ -10,7 +10,7 @@
10
  <config>
11
  <modules>
12
  <Asperience_Printorderline>
13
- <version>0.2.0</version>
14
  </Asperience_Printorderline>
15
  </modules>
16
 
10
  <config>
11
  <modules>
12
  <Asperience_Printorderline>
13
+ <version>0.2.1</version>
14
  </Asperience_Printorderline>
15
  </modules>
16
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Asperience_Printorderline</name>
4
- <version>0.2.0</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>
@@ -13,8 +13,8 @@
13
  <notes>If you have ideas for improvements or find bugs, please send them to Jean-S&#xE9;bastien Hederer at contact@asperience.fr, with ASPerience PrintOrderLine as part of the subject line.</notes>
14
  <authors><author><name>Jean-S&#xE9;bastien Hederer</name><user>hedererjs</user><email>hedererjs@asperience.fr</email></author></authors>
15
  <date>2014-01-24</date>
16
- <time>00:52:23</time>
17
- <contents><target name="magecommunity"><dir name="Asperience"><dir name="Printorderline"><dir name="Helper"><file name="Data.php" hash="4973f68f8b95618a017857b21fa4d759"/></dir><dir name="Model"><file name="Observer.php" hash="750d022fe91669b990e5e4c1a518218d"/><dir name="Order"><dir name="Pdf"><file name="Order.php" hash="04fde40e483a49f2fe5f02b7f1fcf16e"/></dir></dir></dir><dir name="controllers"><file name="OrderController.php" hash="129ff200233f74a9ddfdf3537e09059f"/></dir><dir name="etc"><file name="config.xml" hash="d36f590657487771e3b77bc83efafa15"/></dir></dir></dir></target><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="magelocale"><dir name="fr_FR"><file name="Asperience_Printorderline.csv" hash="13e4b52922b1ac0360b0328de12093da"/></dir><dir name="en_US"><file name="Asperience_Printorderline.csv" hash="3e9fa70b536a43ac59099a7b6f190798"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Asperience_Printorderline</name>
4
+ <version>0.2.1</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>
13
  <notes>If you have ideas for improvements or find bugs, please send them to Jean-S&#xE9;bastien Hederer at contact@asperience.fr, with ASPerience PrintOrderLine as part of the subject line.</notes>
14
  <authors><author><name>Jean-S&#xE9;bastien Hederer</name><user>hedererjs</user><email>hedererjs@asperience.fr</email></author></authors>
15
  <date>2014-01-24</date>
16
+ <time>01:42:09</time>
17
+ <contents><target name="magecommunity"><dir name="Asperience"><dir name="Printorderline"><dir name="Helper"><file name="Data.php" hash="4973f68f8b95618a017857b21fa4d759"/></dir><dir name="Model"><file name="Observer.php" hash="750d022fe91669b990e5e4c1a518218d"/><dir name="Order"><dir name="Pdf"><file name="Order.php" hash="cf0a4cfb43c1e4a7d5096386c577a7a8"/></dir></dir></dir><dir name="controllers"><file name="OrderController.php" hash="129ff200233f74a9ddfdf3537e09059f"/></dir><dir name="etc"><file name="config.xml" hash="227cbfefbdc023c876de151018754922"/></dir></dir></dir></target><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="magelocale"><dir name="fr_FR"><file name="Asperience_Printorderline.csv" hash="13e4b52922b1ac0360b0328de12093da"/></dir><dir name="en_US"><file name="Asperience_Printorderline.csv" hash="3e9fa70b536a43ac59099a7b6f190798"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>