Cdr_OrderComment - Version 0.0.5

Version Notes

Now Compatible with IWD one page checkout module.

Download this release

Release Info

Developer Cdr
Extension Cdr_OrderComment
Version 0.0.5
Comparing to
See all releases


Code changes from version 0.0.4 to 0.0.5

app/code/community/Cdr/OrderComment/Model/Observer.php CHANGED
@@ -11,7 +11,7 @@ class Cdr_OrderComment_Model_Observer
11
  public function saveOrderComment($observer)
12
  {
13
  if (Mage::getStoreConfigFlag('ordercomment/settings/active')) {
14
- $comment = trim(Mage::app()->getRequest()->getPost('cdr_ordercomment') ?: Mage::app()->getRequest()->getPost('customer_comment')).'cdr';
15
  if (!empty($comment)) {
16
  $limit = (int) Mage::getStoreConfig('ordercomment/settings/limit');
17
  if (is_integer($limit) && $limit > 0 && strlen($comment) > $limit)
11
  public function saveOrderComment($observer)
12
  {
13
  if (Mage::getStoreConfigFlag('ordercomment/settings/active')) {
14
+ $comment = trim(Mage::app()->getRequest()->getPost('cdr_ordercomment') ?: Mage::app()->getRequest()->getPost('customer_comment'));
15
  if (!empty($comment)) {
16
  $limit = (int) Mage::getStoreConfig('ordercomment/settings/limit');
17
  if (is_integer($limit) && $limit > 0 && strlen($comment) > $limit)
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Cdr_OrderComment</name>
4
- <version>0.0.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
@@ -15,9 +15,9 @@ The admin orders grid can display the order comment with full filter and sorting
15
  This means that it will be compatible with any other module that alters the sales order grid</description>
16
  <notes>Now Compatible with IWD one page checkout module.</notes>
17
  <authors><author><name>Cdr_Software</name><user>PaulKetelle</user><email>paul@ketelle.co.uk</email></author></authors>
18
- <date>2014-11-27</date>
19
- <time>14:03:11</time>
20
- <contents><target name="magecommunity"><dir name="Cdr"><dir name="OrderComment"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><dir name="Review"><file name="Commentfield.php" hash="172f5e0b4d62329ebd646a4fce2c03b7"/></dir></dir></dir><dir name="Sales"><dir name="Order"><dir name="View"><file name="Ordercomment.php" hash="4a5b4ca1950038facaacdd78382b22de"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="37da67c151f7da560e7d98084a883821"/></dir><dir name="Model"><file name="Observer.php" hash="2dd782662298d2147f0cee68b28ccb56"/></dir><dir name="etc"><file name="adminhtml.xml" hash="0d103e251b0e2d2216ba4906bd6ab41c"/><file name="config.xml" hash="e54314bbede3afa6cf78f876c3c2d89f"/><file name="system.xml" hash="ab78872ea76a77c4ccf13e63c273051b"/></dir><dir name="sql"><dir name="ordercomment_setup"><file name="install-0.0.1.php" hash="e14626ce4cfb4962c1397792b6e27cb5"/><file name="upgrade-0.0.1-0.0.2.php" hash="cbff0ca491fb00179cc571965adc654e"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="cdr"><file name="cdr_ordercomment.xml" hash="c942565434f12bbeda313239f2ace124"/></dir></dir><dir name="template"><dir name="cdr"><dir name="ordercomment"><dir name="onepage"><dir name="iwd"><file name="comment.phtml" hash="7dff101d4cfca9c883a3edd60c6439d6"/></dir><dir name="review"><file name="commentfield.phtml" hash="c9c8caad19adb5f52679abdb706aa65c"/></dir></dir><dir name="sales"><dir name="order"><dir name="view"><file name="ordercomment.phtml" hash="5ff233b5996ab70d046c5bbf7c93fc5c"/></dir></dir></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="cdr"><file name="cdr_ordercomment.xml" hash="491197634248ec0b6f9c78647259ecc8"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Cdr_OrderComment.xml" hash="9787f0ac2363120a6ed4432833d42428"/></dir></target></contents>
21
  <compatible/>
22
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
23
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Cdr_OrderComment</name>
4
+ <version>0.0.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
15
  This means that it will be compatible with any other module that alters the sales order grid</description>
16
  <notes>Now Compatible with IWD one page checkout module.</notes>
17
  <authors><author><name>Cdr_Software</name><user>PaulKetelle</user><email>paul@ketelle.co.uk</email></author></authors>
18
+ <date>2014-11-29</date>
19
+ <time>22:42:56</time>
20
+ <contents><target name="magecommunity"><dir name="Cdr"><dir name="OrderComment"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><dir name="Review"><file name="Commentfield.php" hash="172f5e0b4d62329ebd646a4fce2c03b7"/></dir></dir></dir><dir name="Sales"><dir name="Order"><dir name="View"><file name="Ordercomment.php" hash="4a5b4ca1950038facaacdd78382b22de"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="37da67c151f7da560e7d98084a883821"/></dir><dir name="Model"><file name="Observer.php" hash="e3f71bd4c7f01046c0bf82a6754469c4"/></dir><dir name="etc"><file name="adminhtml.xml" hash="0d103e251b0e2d2216ba4906bd6ab41c"/><file name="config.xml" hash="e54314bbede3afa6cf78f876c3c2d89f"/><file name="system.xml" hash="ab78872ea76a77c4ccf13e63c273051b"/></dir><dir name="sql"><dir name="ordercomment_setup"><file name="install-0.0.1.php" hash="e14626ce4cfb4962c1397792b6e27cb5"/><file name="upgrade-0.0.1-0.0.2.php" hash="cbff0ca491fb00179cc571965adc654e"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="cdr"><file name="cdr_ordercomment.xml" hash="c942565434f12bbeda313239f2ace124"/></dir></dir><dir name="template"><dir name="cdr"><dir name="ordercomment"><dir name="onepage"><dir name="iwd"><file name="comment.phtml" hash="7dff101d4cfca9c883a3edd60c6439d6"/></dir><dir name="review"><file name="commentfield.phtml" hash="c9c8caad19adb5f52679abdb706aa65c"/></dir></dir><dir name="sales"><dir name="order"><dir name="view"><file name="ordercomment.phtml" hash="5ff233b5996ab70d046c5bbf7c93fc5c"/></dir></dir></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="cdr"><file name="cdr_ordercomment.xml" hash="491197634248ec0b6f9c78647259ecc8"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Cdr_OrderComment.xml" hash="9787f0ac2363120a6ed4432833d42428"/></dir></target></contents>
21
  <compatible/>
22
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
23
  </package>