Version Notes
- Allow to print orders
- Allow to print invoices
- Allow to print packingslips
- Allow to print credit memos
- Allow to attach order pdf in email
- Allow to attach invoice pdf in email
- Compatible with Aschroder_SMTPPro
Download this release
Release Info
Developer | Magento Core Team |
Extension | Easy_PDF_Invoice |
Version | 1.2.0.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.0.2.1 to 1.2.0.2.2
- app/code/community/VES/PdfPro/Block/Adminhtml/Key.php +9 -1
- app/code/community/VES/PdfPro/Block/Adminhtml/Version.php +5 -0
- app/code/community/VES/PdfPro/Model/Observer.php +3 -1
- app/code/community/VES/PdfPro/Model/PdfPro.php +1 -1
- app/code/community/VES/PdfPro/controllers/Adminhtml/KeyController.php +19 -0
- app/design/adminhtml/default/default/template/ves_pdfpro/notifications.phtml +6 -0
- media/ves_pdfpro/version.txt +1 -0
- package.xml +3 -3
app/code/community/VES/PdfPro/Block/Adminhtml/Key.php
CHANGED
@@ -7,10 +7,18 @@ class VES_PdfPro_Block_Adminhtml_Key extends Mage_Adminhtml_Block_Widget_Grid_Co
|
|
7 |
$this->_blockGroup = 'pdfpro';
|
8 |
$this->_headerText = Mage::helper('pdfpro')->__('API Key Manager');
|
9 |
parent::__construct();
|
|
|
|
|
|
|
|
|
|
|
10 |
}
|
11 |
|
12 |
public function setHeaderText($text){
|
13 |
$this->_headerText = $text;
|
14 |
}
|
15 |
-
|
|
|
|
|
|
|
16 |
}
|
7 |
$this->_blockGroup = 'pdfpro';
|
8 |
$this->_headerText = Mage::helper('pdfpro')->__('API Key Manager');
|
9 |
parent::__construct();
|
10 |
+
$this->_addButton('check_for_update', array(
|
11 |
+
'label' => Mage::helper('pdfpro')->__('Check For Upgrades'),
|
12 |
+
'onclick' => 'setLocation(\'' . $this->getCheckUpdateUrl() .'\')',
|
13 |
+
'class' => 'loading',
|
14 |
+
));
|
15 |
}
|
16 |
|
17 |
public function setHeaderText($text){
|
18 |
$this->_headerText = $text;
|
19 |
}
|
20 |
+
|
21 |
+
public function getCheckUpdateUrl(){
|
22 |
+
return $this->getUrl('pdfpro_cp/adminhtml_key/checkforupdate');
|
23 |
+
}
|
24 |
}
|
app/code/community/VES/PdfPro/Block/Adminhtml/Version.php
CHANGED
@@ -88,4 +88,9 @@ class VES_PdfPro_Block_Adminhtml_Version extends Mage_Adminhtml_Block_Template
|
|
88 |
$keyModel = Mage::getModel('pdfpro/key')->load($defaultKey);
|
89 |
return !($keyModel->getApiKey());
|
90 |
}
|
|
|
|
|
|
|
|
|
|
|
91 |
}
|
88 |
$keyModel = Mage::getModel('pdfpro/key')->load($defaultKey);
|
89 |
return !($keyModel->getApiKey());
|
90 |
}
|
91 |
+
|
92 |
+
public function checkLocalPdfProcessor(){
|
93 |
+
$config = Mage::app()->getConfig()->getModuleConfig('VES_PdfProProcessor');
|
94 |
+
return $config->is('active') && (Mage::getStoreConfig('pdfpro/config/processor') != 'pdfpro/processors_easypdf');
|
95 |
+
}
|
96 |
}
|
app/code/community/VES/PdfPro/Model/Observer.php
CHANGED
@@ -171,14 +171,16 @@ class VES_PdfPro_Model_Observer
|
|
171 |
/**
|
172 |
* Get news and notice from easypdfinvoice.com
|
173 |
*/
|
174 |
-
public function dailyCheckNotification(){
|
175 |
try{
|
176 |
$this->_writeVersionFile();
|
177 |
$this->_writeServerMessage();
|
178 |
}catch (Mage_Core_Exception $e){
|
179 |
Mage::log($e->getMessage());
|
|
|
180 |
}catch(Exception $e){
|
181 |
Mage::log($e->getMessage());
|
|
|
182 |
}
|
183 |
}
|
184 |
|
171 |
/**
|
172 |
* Get news and notice from easypdfinvoice.com
|
173 |
*/
|
174 |
+
public function dailyCheckNotification($showingError=false){
|
175 |
try{
|
176 |
$this->_writeVersionFile();
|
177 |
$this->_writeServerMessage();
|
178 |
}catch (Mage_Core_Exception $e){
|
179 |
Mage::log($e->getMessage());
|
180 |
+
if($showingError){throw $e;}
|
181 |
}catch(Exception $e){
|
182 |
Mage::log($e->getMessage());
|
183 |
+
if($showingError){throw $e;}
|
184 |
}
|
185 |
}
|
186 |
|
app/code/community/VES/PdfPro/Model/PdfPro.php
CHANGED
@@ -80,7 +80,7 @@ class PdfPro
|
|
80 |
'minor' => '2',
|
81 |
'revision' => '0',
|
82 |
'patch' => '2',
|
83 |
-
'stability' => '
|
84 |
'number' => '',
|
85 |
);
|
86 |
}
|
80 |
'minor' => '2',
|
81 |
'revision' => '0',
|
82 |
'patch' => '2',
|
83 |
+
'stability' => '2',
|
84 |
'number' => '',
|
85 |
);
|
86 |
}
|
app/code/community/VES/PdfPro/controllers/Adminhtml/KeyController.php
CHANGED
@@ -97,4 +97,23 @@ class VES_PdfPro_Adminhtml_KeyController extends Mage_Adminhtml_Controller_Actio
|
|
97 |
}
|
98 |
$this->_redirect('*/*/');
|
99 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
}
|
97 |
}
|
98 |
$this->_redirect('*/*/');
|
99 |
}
|
100 |
+
|
101 |
+
public function checkforupdateAction(){
|
102 |
+
try{
|
103 |
+
$versionFile = Mage::getBaseDir('media').DS.'ves_pdfpro'.DS.'version.txt';
|
104 |
+
$date = Mage::getModel('core/date')->date('Y-m-d');
|
105 |
+
$serverVersion = Mage::helper('pdfpro')->getServerVersion();
|
106 |
+
try{
|
107 |
+
$fp = fopen($versionFile, 'w');
|
108 |
+
fwrite($fp, base64_encode(json_encode(array('date'=>$date,'version'=>$serverVersion))));
|
109 |
+
fclose($fp);
|
110 |
+
}catch(Exception $e){
|
111 |
+
|
112 |
+
}
|
113 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('pdfpro')->__('Your current version of Easy PDF Invoice is "%s". The latest version from server is "%s".',Mage::helper('pdfpro')->getVersion(),$serverVersion));
|
114 |
+
}catch (Exception $e){
|
115 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('pdfpro')->__($e->getMessage()));
|
116 |
+
}
|
117 |
+
$this->_redirect('*/*/');
|
118 |
+
}
|
119 |
}
|
app/design/adminhtml/default/default/template/ves_pdfpro/notifications.phtml
CHANGED
@@ -63,5 +63,11 @@
|
|
63 |
</div>
|
64 |
<?php endif;?>
|
65 |
<?php endif;?>
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
</div>
|
67 |
<?php endif;?>
|
63 |
</div>
|
64 |
<?php endif;?>
|
65 |
<?php endif;?>
|
66 |
+
<?php if(!$this->checkLocalPdfProcessor()):?>
|
67 |
+
<div class="notification-global notification-global-warning">
|
68 |
+
<strong>Easy PDF Invoice:</strong>
|
69 |
+
<?php echo $this->__('You are using the remote PDF processor from <a href="http://www.easypdfinvoice.com" target="_blank">www.easypdfinvoice.com</a>. We recommend you to use remote PDF processor for testing only. Please <a href="http://www.easypdfinvoice.com/blog/local-pdf-processor/" target="_blank">install Local Pdf Processor</a> before go to live.');?>
|
70 |
+
</div>
|
71 |
+
<?php endif;?>
|
72 |
</div>
|
73 |
<?php endif;?>
|
media/ves_pdfpro/version.txt
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
eyJkYXRlIjoiMjAxMy0wOC0yMCIsInZlcnNpb24iOiIxLjIuMC4xLTI3In0=
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Easy_PDF_Invoice</name>
|
4 |
-
<version>1.2.0.2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL V3.0</license>
|
7 |
<channel>community</channel>
|
@@ -17,8 +17,8 @@
|
|
17 |
- Compatible with Aschroder_SMTPPro</notes>
|
18 |
<authors><author><name>Easy PDF Invoice</name><user>auto-converted</user><email>easypdfinvoice@gmail.com</email></author></authors>
|
19 |
<date>2013-08-20</date>
|
20 |
-
<time>
|
21 |
-
<contents><target name="mageetc"><dir name="modules"><file name="VES_PdfPro.xml" hash="4b43f61fe34d6f90260b6008e52e48bd"/></dir></target><target name="magecommunity"><dir name="VES"><dir name="PdfPro"><dir name="Block"><dir name="Adminhtml"><dir name="Key"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="6ed2ab13f4e2c5c25671aacf00fe9694"/></dir><file name="Form.php" hash="46346f33119419be5ba874fa7ffd85b6"/><file name="Tabs.php" hash="cd9cf71b68f19d9af9a80e8c7898e32f"/></dir><dir name="Grid"><dir name="Renderer"><file name="Group.php" hash="892d50662567d468eb9128034de54f19"/><file name="Store.php" hash="e1f763568b9f84a58798308f83536d7b"/></dir></dir><file name="Edit.php" hash="a8798ad23b9da53d836c6947dff2e49a"/><file name="Grid.php" hash="b46ff3b9fcac57a17eaa90602be61aa0"/></dir><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="View.php" hash="fb2c17f888c8acb5dbe2574e635c77bf"/></dir><dir name="Invoice"><file name="View.php" hash="69fb3ac882ffc657d0879dac143d647e"/></dir><dir name="Shipment"><file name="View.php" hash="633822374d7cc1f9c167af3628069cb5"/></dir><file name="View.php" hash="3a94ef916cf0cc2cb15c02f2e9a3c885"/></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Fieldset.php" hash="b014be284c5d7882800aafda28b4def3"/></dir></dir></dir><file name="Key.php" hash="
|
22 |
<compatible/>
|
23 |
<dependencies/>
|
24 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Easy_PDF_Invoice</name>
|
4 |
+
<version>1.2.0.2.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL V3.0</license>
|
7 |
<channel>community</channel>
|
17 |
- Compatible with Aschroder_SMTPPro</notes>
|
18 |
<authors><author><name>Easy PDF Invoice</name><user>auto-converted</user><email>easypdfinvoice@gmail.com</email></author></authors>
|
19 |
<date>2013-08-20</date>
|
20 |
+
<time>16:27:33</time>
|
21 |
+
<contents><target name="mageetc"><dir name="modules"><file name="VES_PdfPro.xml" hash="4b43f61fe34d6f90260b6008e52e48bd"/></dir></target><target name="magecommunity"><dir name="VES"><dir name="PdfPro"><dir name="Block"><dir name="Adminhtml"><dir name="Key"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="6ed2ab13f4e2c5c25671aacf00fe9694"/></dir><file name="Form.php" hash="46346f33119419be5ba874fa7ffd85b6"/><file name="Tabs.php" hash="cd9cf71b68f19d9af9a80e8c7898e32f"/></dir><dir name="Grid"><dir name="Renderer"><file name="Group.php" hash="892d50662567d468eb9128034de54f19"/><file name="Store.php" hash="e1f763568b9f84a58798308f83536d7b"/></dir></dir><file name="Edit.php" hash="a8798ad23b9da53d836c6947dff2e49a"/><file name="Grid.php" hash="b46ff3b9fcac57a17eaa90602be61aa0"/></dir><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="View.php" hash="fb2c17f888c8acb5dbe2574e635c77bf"/></dir><dir name="Invoice"><file name="View.php" hash="69fb3ac882ffc657d0879dac143d647e"/></dir><dir name="Shipment"><file name="View.php" hash="633822374d7cc1f9c167af3628069cb5"/></dir><file name="View.php" hash="3a94ef916cf0cc2cb15c02f2e9a3c885"/></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Fieldset.php" hash="b014be284c5d7882800aafda28b4def3"/></dir></dir></dir><file name="Key.php" hash="2d74a4aac519acc063d94a48f786fbbf"/><file name="Version.php" hash="b5af00beac56864eb11207952a923191"/></dir><dir name="Checkout"><dir name="Onepage"><file name="Success.php" hash="9f45ac2f4c5643f7c560f64ec6e879b9"/></dir></dir><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="Items.php" hash="188d1bf570876c1ee4eb10b392826969"/></dir><dir name="Info"><file name="Buttons.php" hash="092e23b4ea0532a0b1c30155bb988500"/></dir><dir name="Invoice"><file name="Items.php" hash="af0a2e0530c243f4fc36d2b1ba85a03d"/></dir><dir name="Shipment"><file name="Items.php" hash="05ba7ea0f96dd688e32ac382de3d97aa"/></dir><file name="Info.php" hash="df3add1cad16f992c016f34bc50001da"/></dir></dir></dir><dir name="Controller"><file name="Abstract.php" hash="7c17daa82ff123539534d596084b4e50"/></dir><dir name="Helper"><file name="Data.php" hash="ec0f46d50fb39eaccaa0fc5457b0f5c0"/><file name="Giftmessage.php" hash="fd1f964045ff32824d8adeef45d9f353"/></dir><dir name="Model"><dir name="App"><file name="Emulation.php" hash="04198592d643fee6de163cb4840fd1c5"/></dir><dir name="Communication"><dir name="Method"><file name="Abstract.php" hash="92691ba24ed56500a517a323dc37c783"/><file name="Soap.php" hash="9bebec927cd317828c226af2f84e46a4"/><file name="Xmlrpc.php" hash="9ef324fc87bfb1b2ce7e21dcd061faa4"/></dir></dir><dir name="Email"><dir name="Template"><file name="Mailer.php" hash="1b8809f23af19f9829068e70b50ec004"/><file name="Mailer.php.bk" hash="c0ce04b3c73aeffd55f94e180e379416"/></dir><file name="Info.php" hash="7933a32bf8d938a7fd527a958ceb760f"/><file name="Template.php" hash="9dfdc647e61d2b156d1b1d13760ed91e"/></dir><dir name="Mysql4"><dir name="Key"><file name="Collection.php" hash="2a833ffdea395c507056fed369d3efaa"/></dir><file name="Key.php" hash="ac5b19abb5f8cb75f5d4ae7226432158"/></dir><dir name="Order"><dir name="Creditmemo"><file name="Item.php" hash="1f3e1dd032ba92d819860015cc691ec3"/></dir><dir name="Invoice"><file name="Item.php" hash="24afcd126b0f70593898f014111d638f"/></dir><dir name="Shipment"><file name="Item.php" hash="a034e50d4b48abf33dbe23da8a8ac321"/></dir><file name="Creditmemo.php" hash="9491d108e73004a66545f87f13c5e668"/><file name="Invoice.php" hash="b6c7204bd0f76c04115f14452cd5ba3f"/><file name="Item.php" hash="8ec99b4d4b29ea4e8657dea60471eda4"/><file name="Shipment.php" hash="290f501ec4695ceac86f644fb32250e5"/></dir><dir name="Processors"><file name="Easypdf.php" hash="174f02576f916c281c644933a0f26820"/></dir><dir name="Sales"><dir name="Order"><dir name="Pdf"><dir name="Total"><file name="Default.php" hash="f2734244f770ef8eed2e4895daaa1b4f"/></dir></dir><file name="Creditmemo.php" hash="b898198487940a63b04d22a08aae5579"/><file name="Invoice.php" hash="c9a15b19b60cbed6f1b92a35c8e090b9"/><file name="Shipment.php" hash="90715ec29e12e8c9a1548796924a99e5"/></dir><file name="Order.php" hash="daf58ca77bbcf5cc3f83031096f6ab61"/></dir><dir name="Source"><dir name="Communication"><file name="Method.php" hash="c62491193fdb374fdc74e52c02609194"/></dir><file name="Attach.php" hash="9fc226589336ee965aa0d5208d2dd06e"/><file name="Key.php" hash="c9ee12407a20b4fb07bd51bd0029523c"/><file name="Processor.php" hash="6a1e053c02b8e1736f0bfd942ae71434"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Easypdf.php" hash="503a34f4747cb6387ff7180e4f63b469"/></dir></dir></dir><file name="Abstract.php" hash="ac9255f2de1037adca999b56382a33a7"/><file name="Key.php" hash="8f89ec9497dd0a7ae2cf9ea71af2a910"/><file name="Observer.php" hash="f599c55641e73a0a8944c557d250bb1a"/><file name="Order.php" hash="dbf7d1e63fc1c7149fb43d10df96a6c4"/><file name="PdfPro.php" hash="10aef30ee14d06e847ee1cab85373ba1"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="KeyController.php" hash="b18717edfed8ac38b3dc13791d64f360"/><file name="NotifyController.php" hash="90b9ecb5f8ce655bcdd6f07312a27cba"/><file name="PrintController.php" hash="2b1b02a7e50a686d639f346ed5c92e53"/></dir><file name="GuestController.php" hash="1866cb205ce5eef78babd77850647275"/><file name="PrintController.php" hash="fdd65232341ae18df6ddfc267aece14f"/></dir><dir name="etc"><file name="config.xml" hash="7c3b1bf609067da2abf66e96ecd93f47"/><file name="system.xml" hash="a4087a0f3f0735c32fc65cdf3ff7af96"/></dir><dir name="sql"><dir name="pdfpro_setup"><file name="mysql4-install-0.1.0.php" hash="568fdc14a81905f4e98857691f765ae8"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="ves_pdfpro.xml" hash="4fef100f3a87f396e539ff59fba0d9a6"/></dir><dir name="template"><dir name="ves_pdfpro"><file name="notifications.phtml" hash="029a5b5cd4304791dbe2a1e19b1f4978"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="VES_PdfPro.csv" hash="7443d2a6b55513d5287144307ac41018"/></dir><dir name="vi_VN"><file name="VES_PdfPro.csv" hash="685d513129c86897c9214d67a65f7690"/></dir><dir name="he_IL"><file name="VES_PdfPro.csv" hash="487635adff4c3a8fb47af8048e407c96"/></dir></target><target name="magemedia"><dir name="ves_pdfpro"><dir name="certificate"><dir name="tmp"><file name="nothing.txt" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir><dir name="logos"><file name="logo_1.png" hash="c83d9e047b9079983128a38a1deb994e"/><file name="logo_1_1.png" hash="c83d9e047b9079983128a38a1deb994e"/><file name="logo_vnecoms.png" hash="f01d36ae2e53cacdca77130fa2ac27a8"/></dir><file name="pdf.data" hash="2ff6134488e93efe66ba2b368a8becab"/><file name="version.txt" hash="0450072dfc3db1667b93c3d6400ed18e"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="ves_pdfpro"><file name="easypdf.png" hash="8403ec067302a4bf931862ad56965459"/><file name="favicon.png" hash="55210c2ab24e77a654bec6f51922917f"/><file name="js.js" hash="5ab27f2e16b90409bf4268b9afb7488c"/><file name="styles.css" hash="e25f82a17de40e72d7cd062f9f25588b"/></dir></dir></dir></dir></target></contents>
|
22 |
<compatible/>
|
23 |
<dependencies/>
|
24 |
</package>
|