Cdr_OrderComment - Version 0.0.8

Version Notes

Added a config option for the Order Comment title

Download this release

Release Info

Developer Cdr
Extension Cdr_OrderComment
Version 0.0.8
Comparing to
See all releases


Code changes from version 0.0.7 to 0.0.8

app/code/community/Cdr/OrderComment/Model/Observer.php CHANGED
@@ -11,7 +11,9 @@ 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)
@@ -19,6 +21,7 @@ class Cdr_OrderComment_Model_Observer
19
 
20
  $order = $observer->getEvent()->getOrder();
21
  /* @var $order Mage_Sales_Model_Order */
 
22
  $order->setCdrOrderComment($comment);
23
  $order->setCustomerComment($comment);
24
  $order->setCustomerNoteNotify(true);
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
+
16
+
17
  if (!empty($comment)) {
18
  $limit = (int) Mage::getStoreConfig('ordercomment/settings/limit');
19
  if (is_integer($limit) && $limit > 0 && strlen($comment) > $limit)
21
 
22
  $order = $observer->getEvent()->getOrder();
23
  /* @var $order Mage_Sales_Model_Order */
24
+
25
  $order->setCdrOrderComment($comment);
26
  $order->setCustomerComment($comment);
27
  $order->setCustomerNoteNotify(true);
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Cdr_OrderComment</name>
4
- <version>0.0.7</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>Added a config option for the Order Comment title</notes>
17
  <authors><author><name>Cdr_Software</name><user>PaulKetelle</user><email>paul@ketelle.co.uk</email></author></authors>
18
- <date>2015-02-05</date>
19
- <time>15:04:51</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="5efc3a340dea29e3a516508ec2d1060c"/></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="f12efde779204b556903a0e1426bcc96"/><file name="system.xml" hash="9704077151b1bff42d90a849fbfe0832"/></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="e799d0695245b42574b80f47b9ba3343"/></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.8</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>Added a config option for the Order Comment title</notes>
17
  <authors><author><name>Cdr_Software</name><user>PaulKetelle</user><email>paul@ketelle.co.uk</email></author></authors>
18
+ <date>2015-02-17</date>
19
+ <time>09:34:43</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="5efc3a340dea29e3a516508ec2d1060c"/></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="56e77134b0524cdc4d818c979906254b"/></dir><dir name="etc"><file name="adminhtml.xml" hash="0d103e251b0e2d2216ba4906bd6ab41c"/><file name="config.xml" hash="f12efde779204b556903a0e1426bcc96"/><file name="system.xml" hash="9704077151b1bff42d90a849fbfe0832"/></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="e799d0695245b42574b80f47b9ba3343"/></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>