Asperience_Printorderline - Version 0.1.8

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


Code changes from version 0.1.7 to 0.1.8

app/code/community/Asperience/Printorderline/Model/Order/Pdf/Order.php CHANGED
@@ -49,9 +49,13 @@ class Asperience_Printorderline_Model_Order_Pdf_Order extends Mage_Sales_Model_O
49
  $lgMaxMet = 50;
50
 
51
  //Payment method
52
- $paymentInfo = Mage::helper('payment')->getInfoBlock($order->getPayment())
53
- ->setIsSecureMode(true)
54
- ->toPdf();
 
 
 
 
55
  $payment = str_replace('{{pdf_row_separator}}', ' ', $paymentInfo);
56
  $payment = wordwrap($payment, $lgMaxMet, "|\n", 1);
57
  $payment = explode('|', $payment);
49
  $lgMaxMet = 50;
50
 
51
  //Payment method
52
+ try {
53
+ $paymentInfo = Mage::helper('payment')->getInfoBlock($order->getPayment())
54
+ ->setIsSecureMode(true)
55
+ ->toPdf();
56
+ } catch (Exception $e) {
57
+ $paymentInfo = $order->getPayment()->getMethod();
58
+ }
59
  $payment = str_replace('{{pdf_row_separator}}', ' ', $paymentInfo);
60
  $payment = wordwrap($payment, $lgMaxMet, "|\n", 1);
61
  $payment = explode('|', $payment);
app/locale/fr_FR/Asperience_Printorderline.csv CHANGED
@@ -4,7 +4,7 @@
4
  "Ship to informations","Informations de livraison"
5
  "Shipping and billing methods","Méthodes de livraison et facturation"
6
  "Totals","Totaux"
7
- "Tax: ","TVA: "
8
  "Ship: ","Liv.: "
9
  "SubT: ","HT: "
10
- "GrandT: ","TTC: "
4
  "Ship to informations","Informations de livraison"
5
  "Shipping and billing methods","Méthodes de livraison et facturation"
6
  "Totals","Totaux"
7
+ "Tax: ","Taxes: "
8
  "Ship: ","Liv.: "
9
  "SubT: ","HT: "
10
+ "GrandT: ","TTC: "
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Asperience_Printorderline</name>
4
- <version>0.1.7</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>
@@ -12,9 +12,9 @@
12
  </description>
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>2012-08-14</date>
16
- <time>22:55:41</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="4971941f0279c580f5397a2269006019"/></dir></dir></dir><dir name="controllers"><file name="OrderController.php" hash="129ff200233f74a9ddfdf3537e09059f"/></dir><dir name="etc"><file name="config.xml" hash="b89dafbef379eb619321fb40ec4deb69"/></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><dir name="en_US"><file name="Asperience_Printorderline.csv" hash="3e9fa70b536a43ac59099a7b6f190798"/></dir><dir name="fr_FR"><file name="Asperience_Printorderline.csv" hash="de0221c54a0cc8deb3dce66e147cd81c"/></dir></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.1.8</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>
12
  </description>
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-10</date>
16
+ <time>22:38:44</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="19f0cb10500136f8f985c14160f3a0f7"/></dir></dir></dir><dir name="controllers"><file name="OrderController.php" hash="129ff200233f74a9ddfdf3537e09059f"/></dir><dir name="etc"><file name="config.xml" hash="b89dafbef379eb619321fb40ec4deb69"/></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><dir name="en_US"><file name="Asperience_Printorderline.csv" hash="3e9fa70b536a43ac59099a7b6f190798"/></dir><dir name="fr_FR"><file name="Asperience_Printorderline.csv" hash="13e4b52922b1ac0360b0328de12093da"/></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>