Order_Comment_Checkout - Version 1.0.2

Version Notes

Third Release

Download this release

Release Info

Developer Chandan Kumar Singh
Extension Order_Comment_Checkout
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/community/Chandan/Comment/Model/Observer.php CHANGED
@@ -12,6 +12,7 @@ class Chandan_Comment_Model_Observer extends Varien_Object
12
  "comment",
13
  array("ordernumber" => $orderid, "customeremail" => $customeremail, "comment" => $orderComment)
14
  );
 
15
  Mage::getSingleton('core/session')->unstextval();
16
  }
17
  }
12
  "comment",
13
  array("ordernumber" => $orderid, "customeremail" => $customeremail, "comment" => $orderComment)
14
  );
15
+ Mage::getSingleton('core/session')->setnewcomment($orderComment);
16
  Mage::getSingleton('core/session')->unstextval();
17
  }
18
  }
app/code/community/Chandan/Comment/etc/config.xml CHANGED
@@ -95,6 +95,18 @@
95
  </layout>
96
  </adminhtml>
97
  <global>
 
 
 
 
 
 
 
 
 
 
 
 
98
  <models>
99
  <comment>
100
  <class>Chandan_Comment_Model</class>
95
  </layout>
96
  </adminhtml>
97
  <global>
98
+
99
+ <template>
100
+ <email>
101
+ <sales_email_order_template translate="label" module="comment">
102
+ <label>New Order</label>
103
+ <file>commentbox/sales/email/order_new.html</file>
104
+ <type>html</type>
105
+ </sales_email_order_template >
106
+ </email>
107
+ </template>
108
+
109
+
110
  <models>
111
  <comment>
112
  <class>Chandan_Comment_Model</class>
app/design/frontend/base/default/template/comment/email.phtml ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+ echo Mage::getSingleton('core/session')->getnewcomment();
3
+ Mage::getSingleton('core/session')->unsnewcomment();
app/locale/en_US/template/email/commentbox/sales/email/order_new.html ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}: New Order # {{var order.increment_id}} @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "var logo_url":"Email Logo Image Url",
5
+ "var logo_alt":"Email Logo Image Alt",
6
+ "htmlescape var=$order.getCustomerName()":"Customer Name",
7
+ "var store.getFrontendName()":"Store Name",
8
+ "store url=\"customer/account/\"":"Customer Account Url",
9
+ "var order.increment_id":"Order Id",
10
+ "var order.getCreatedAtFormated('long')":"Order Created At (datetime)",
11
+ "var order.getBillingAddress().format('html')":"Billing Address",
12
+ "var payment_html":"Payment Details",
13
+ "var order.getShippingAddress().format('html')":"Shipping Address",
14
+ "var order.getShippingDescription()":"Shipping Description",
15
+ "layout handle=\"sales_email_order_items\" order=$order":"Order Items Grid",
16
+ "var order.getEmailCustomerNote()":"Email Order Note"}
17
+ @-->
18
+ <!--@styles
19
+ @-->
20
+
21
+ {{template config_path="design/email/header"}}
22
+ {{inlinecss file="email-inline.css"}}
23
+
24
+ <table cellpadding="0" cellspacing="0" border="0">
25
+ <tr>
26
+ <td>
27
+ <table cellpadding="0" cellspacing="0" border="0">
28
+ <tr>
29
+ <td class="email-heading">
30
+ <h1>Thank you for your order from {{var store.getFrontendName()}}.</h1>
31
+ <p>Once your package ships we will send an email with a link to track your order. Your order summary is below. Thank you again for your business.</p>
32
+ </td>
33
+ <td class="store-info">
34
+ <h4>Order Questions?</h4>
35
+ <p>
36
+ {{depend store_phone}}
37
+ <b>Call Us:</b>
38
+ <a href="tel:{{var phone}}">{{var store_phone}}</a><br>
39
+ {{/depend}}
40
+ {{depend store_hours}}
41
+ <span class="no-link">{{var store_hours}}</span><br>
42
+ {{/depend}}
43
+ {{depend store_email}}
44
+ <b>Email:</b> <a href="mailto:{{var store_email}}">{{var store_email}}</a>
45
+ {{/depend}}
46
+ </p>
47
+ </td>
48
+ </tr>
49
+ </table>
50
+ </td>
51
+ </tr>
52
+ <tr>
53
+ <td class="order-details">
54
+ <h3>Your order <span class="no-link">#{{var order.increment_id}}</span></h3>
55
+ <p>Placed on {{var order.getCreatedAtFormated('long')}}</p>
56
+ </td>
57
+ </tr>
58
+ <tr class="order-information">
59
+ <td>
60
+ {{if order.getEmailCustomerNote()}}
61
+ <table cellspacing="0" cellpadding="0" class="message-container">
62
+ <tr>
63
+ <td>{{var order.getEmailCustomerNote()}}</td>
64
+ </tr>
65
+ </table>
66
+ {{/if}}
67
+ {{layout handle="sales_email_order_items" order=$order}}
68
+ <table cellpadding="0" cellspacing="0" border="0">
69
+ <tr>
70
+ <td class="address-details">
71
+ <h6>Bill to:</h6>
72
+ <p><span class="no-link">{{var order.getBillingAddress().format('html')}}</span></p>
73
+ </td>
74
+ {{depend order.getIsNotVirtual()}}
75
+ <td class="address-details">
76
+ <h6>Ship to:</h6>
77
+ <p><span class="no-link">{{var order.getShippingAddress().format('html')}}</span></p>
78
+ </td>
79
+ {{/depend}}
80
+ </tr>
81
+ <tr>
82
+ {{depend order.getIsNotVirtual()}}
83
+ <td class="method-info">
84
+ <h6>Shipping method:</h6>
85
+ <p>{{var order.shipping_description}}</p>
86
+ </td>
87
+ {{/depend}}
88
+ <td class="method-info">
89
+ <h6>Payment method:</h6>
90
+ {{var payment_html}}
91
+ </td>
92
+ </tr>
93
+ </table>
94
+ </td>
95
+ </tr>
96
+ </table>
97
+ <p>comment: {{block type="core/template" area="frontend" template="comment/email.phtml"}}</p>
98
+
99
+ {{template config_path="design/email/footer"}}
package.xml CHANGED
@@ -1,18 +1,47 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Order_Comment_Checkout</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
- <license uri="https://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This extension allows customers to add their comments while placing an order. Requires no manual configuration.</summary>
10
- <description>This extension allows customers to add their comments while placing orders. The admin can view comments left by customer and this is also added to the invoice. Order Comments for Magento enables you to provide better service to your customers by letting them write an order-specific comment about the order at time of checkout. The admin can view order comments in the form of grid listing or in the order detail page as a customer order request. Implement a comment box for customer to input details about their order or shipment on checkout</description>
11
- <notes>Second Release</notes>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  <authors><author><name>Chandan Kumar Singh</name><user>chandan8050</user><email>chandankumar8050@gmail.com</email></author></authors>
13
- <date>2016-12-19</date>
14
- <time>05:34:06</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Chandan_Comment.xml" hash="be24a312e7f826e1ec76c9237e13def7"/></dir></target><target name="magecommunity"><dir name="Chandan"><dir name="Comment"><dir><dir name="Block"><dir name="Adminhtml"><dir name="Comment"><dir name="Edit"><file name="Form.php" hash="ab0afb8dc4bbad079c9436e07e85f037"/><dir name="Tab"><file name="Form.php" hash="b0fdce9bdfa2de014e6842ea8022e9b0"/></dir><file name="Tabs.php" hash="39c4033e2011d26d401624e54881fabf"/></dir><file name="Edit.php" hash="d10532220e205f2737a990deee05ffc9"/><file name="Grid.php" hash="878e4450edebf04683074d79071c8208"/></dir><file name="Comment.php" hash="b76c581f4f905a9bd6d59940ecc4bb7c"/></dir><file name="Comment.php" hash="9578753e0cefe528dddb2e8462c4706e"/><file name="Commentpage.php" hash="017873d9a74b2263e7c9676d3875e4cb"/></dir><dir name="Helper"><file name="Data.php" hash="42b14ff7e4612065b495a3ba0f2b000b"/></dir><dir name="Model"><file name="Comment.php" hash="bb3cb15bc8722da60e8d7231de6e46c8"/><dir name="Mysql4"><dir name="Comment"><file name="Collection.php" hash="06221951a850a05857dd5e93bb720e1a"/></dir><file name="Comment.php" hash="d8b78a16252ead6f88509f6a2ac1f39c"/></dir><file name="Observer.php" hash="69731d9aa5d91870a7da29652dc95a14"/><dir name="Order"><file name="Default.php" hash="4ae725f16df3a040138ce25da1d749d9"/><file name="Invoice.php" hash="58c1a57c7ff972df7565ae7a1548f2f8"/></dir><file name="Status.php" hash="f695106908c082c549df094fffcba503"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="CommentController.php" hash="acbb83c7eea7af093989d6d99f70f599"/></dir><file name="IndexController.php" hash="ed4433047859c47f8b9f74a4ab07cad5"/></dir><dir name="etc"><file name="config.xml" hash="5f163e586d106a7b03fc3dab0ce4dd33"/><file name="system.xml" hash="f479a1ef76c4a7a68ff7dd84ba45d72c"/></dir><dir name="sql"><dir name="comment_setup"><file name="mysql4-install-1.0.0.php" hash="472b202b1a1befc9077f25f6d5471d1d"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="comment.xml" hash="c4bd2d5ef635163d3c6eb6d1922975f0"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="comment.xml" hash="e001f21d8c498a1fd8a09ae966796647"/></dir><dir name="template"><dir name="comment"><file name="comment.phtml" hash="7ccd71fda2d05929f8058481c05b08ed"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
- <dependencies><required><php><min>5.2.0</min><max>7.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Order_Comment_Checkout</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This extension allows customers to add their comments while placing an order. Requires no manual configuration.</summary>
10
+ <description>&lt;p&gt;This extension allows customers to add their comments while placing orders. The admin can view comments left by customer and this is also added to the invoice. Order Comments for Magento enables you to provide better service to your customers by letting them write an order-specific comment about the order at time of checkout. The admin can view order comments in the form of grid listing or in the order detail page as a customer order request. Implement a comment box for customer to input details about their order or shipment on checkout.&lt;/p&gt;&#xD;
11
+ &#xD;
12
+ &lt;p&gt;The extension is easy to install and use. The Order Comment Extension is lightweight, completes the task with minimum obstruction, and is in line with the Magento Order Management Workflow.&lt;/p&gt;&#xD;
13
+ &#xD;
14
+ &lt;h3&gt;Let the customers write a comment about their order at checkout&lt;/h3&gt;&lt;p&gt; During the last step of checkout (Order Review), the customer can write a comment to provide any special handling or order specific information.&lt;/p&gt;&lt;h3&gt;The order comment appears in the comment Menu history&lt;/h3&gt;&lt;p&gt; The customer order comment will appear as part of the order history listing on the Comment page in the admin panel. &lt;/p&gt;&lt;h3&gt;Order Comment&lt;/h3&gt;&lt;p&gt; This extension allow customers to post a comment at the order review step. The admin can view the comment on the order comment Menu. Similarly, the customer can view their comment on the generated invoice as well. &lt;/p&gt;&#xD;
15
+ &#xD;
16
+ &lt;h3&gt;&lt;strong&gt;&lt;u&gt;Outstanding Features:&lt;/u&gt;&lt;/strong&gt;&lt;/h3&gt;&#xD;
17
+ &lt;ol&gt;&#xD;
18
+ &lt;li&gt; Allows customers to write comments or instructions on the checkout page.&lt;/li&gt;&#xD;
19
+ &lt;li&gt; Requires no manual configuration.&lt;/li&gt;&#xD;
20
+ &lt;li&gt; Easy installation.&lt;/li&gt;&#xD;
21
+ &lt;li&gt; Meets Magento programming guidelines.&lt;/li&gt;&#xD;
22
+ &lt;li&gt; 100% open source.&lt;/li&gt;&#xD;
23
+ &lt;li&gt; User can add comments on the checkout Page for specific product or for all products.&lt;/li&gt;&#xD;
24
+ &lt;li&gt; The comments can be viewed by admin during Order comment tab&lt;/li&gt;&#xD;
25
+ &lt;li&gt; Customer can view their comment on generated invoice page&lt;/li&gt;&#xD;
26
+ &lt;/ol&gt;&#xD;
27
+ &#xD;
28
+ &lt;h3&gt;&lt;strong&gt;&lt;u&gt;Demo Detail Below&lt;/u&gt;&lt;/strong&gt;&lt;/h3&gt;&#xD;
29
+ &lt;h3&gt;Frontend Demo&lt;/h3&gt;&lt;p&gt; Link: &lt;a href="http://www.bazaarbihar.com/chandan/index.php/"&gt;http://www.bazaarbihar.com/chandan/index.php/&lt;/a&gt;&lt;/p&gt;&#xD;
30
+ &lt;h3&gt;Backend Demo&lt;/h3&gt;&#xD;
31
+ &lt;span&gt;Link: &lt;a href="http://www.bazaarbihar.com/chandan/index.php/admin"&gt;http://www.bazaarbihar.com/chandan/index.php/admin&lt;/a&gt;&lt;/span&gt;&#xD;
32
+ &lt;div&gt;&lt;/div&gt;&#xD;
33
+ &lt;span&gt;&lt;strong&gt;user:&lt;/strong&gt; demo&lt;/span&gt;&#xD;
34
+ &lt;p&gt;&lt;strong&gt;password:&lt;/strong&gt; demo123&lt;/p&gt;&#xD;
35
+ &lt;h3&gt;&lt;strong&gt;Support:&lt;/strong&gt; &lt;/h3&gt;&#xD;
36
+ &lt;ul&gt;&#xD;
37
+ &lt;li&gt; - If you have any question on our extension(s), please contact us below:&lt;/li&gt;&#xD;
38
+ &lt;li&gt; - &lt;strong&gt;Email:&lt;/strong&gt; &lt;a href="mailto:chandankumar8050@gmail.com"&gt;chandankumar8050@gmail.com&lt;/a&gt;&lt;/li&gt;&#xD;
39
+ &lt;/ul&gt;</description>
40
+ <notes>Third Release</notes>
41
  <authors><author><name>Chandan Kumar Singh</name><user>chandan8050</user><email>chandankumar8050@gmail.com</email></author></authors>
42
+ <date>2017-01-03</date>
43
+ <time>11:10:12</time>
44
+ <contents><target name="magecommunity"><dir name="Chandan"><dir name="Comment"><dir name="Block"><dir name="Adminhtml"><dir name="Comment"><dir name="Edit"><file name="Form.php" hash="ab0afb8dc4bbad079c9436e07e85f037"/><dir name="Tab"><file name="Form.php" hash="b0fdce9bdfa2de014e6842ea8022e9b0"/></dir><file name="Tabs.php" hash="39c4033e2011d26d401624e54881fabf"/></dir><file name="Edit.php" hash="d10532220e205f2737a990deee05ffc9"/><file name="Grid.php" hash="878e4450edebf04683074d79071c8208"/></dir><file name="Comment.php" hash="b76c581f4f905a9bd6d59940ecc4bb7c"/></dir><file name="Comment.php" hash="9578753e0cefe528dddb2e8462c4706e"/><file name="Commentpage.php" hash="017873d9a74b2263e7c9676d3875e4cb"/></dir><dir name="Helper"><file name="Data.php" hash="42b14ff7e4612065b495a3ba0f2b000b"/></dir><dir name="Model"><file name="Comment.php" hash="bb3cb15bc8722da60e8d7231de6e46c8"/><dir name="Mysql4"><dir name="Comment"><file name="Collection.php" hash="06221951a850a05857dd5e93bb720e1a"/></dir><file name="Comment.php" hash="d8b78a16252ead6f88509f6a2ac1f39c"/></dir><file name="Observer.php" hash="7e5b57a2fe290865384142ca2ec19361"/><dir name="Order"><file name="Default.php" hash="4ae725f16df3a040138ce25da1d749d9"/><file name="Invoice.php" hash="58c1a57c7ff972df7565ae7a1548f2f8"/></dir><file name="Status.php" hash="f695106908c082c549df094fffcba503"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="CommentController.php" hash="acbb83c7eea7af093989d6d99f70f599"/></dir><file name="IndexController.php" hash="ed4433047859c47f8b9f74a4ab07cad5"/></dir><dir name="etc"><file name="config.xml" hash="e07ad4c7e3324153218c3f87c6904208"/><file name="system.xml" hash="f479a1ef76c4a7a68ff7dd84ba45d72c"/></dir><dir name="sql"><dir name="comment_setup"><file name="mysql4-install-1.0.0.php" hash="472b202b1a1befc9077f25f6d5471d1d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="comment.xml" hash="c4bd2d5ef635163d3c6eb6d1922975f0"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="comment.xml" hash="e001f21d8c498a1fd8a09ae966796647"/></dir><dir name="template"><dir name="comment"><file name="comment.phtml" hash="7ccd71fda2d05929f8058481c05b08ed"/><file name="email.phtml" hash="542d007140f8a96c6560a0db451c8063"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Chandan_Comment.xml" hash="be24a312e7f826e1ec76c9237e13def7"/></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="commentbox"><dir name="sales"><dir name="email"><file name="order_new.html" hash="efca73179d7d0ea9bb0aff8fe29599ba"/></dir></dir></dir></dir></dir></dir></target></contents>
45
  <compatible/>
46
+ <dependencies><required><php><min>5.0.0</min><max>7.1.0</max></php></required></dependencies>
47
  </package>