-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.xml
39 lines (32 loc) · 4.05 KB
/
package.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0"?>
<package>
<name>Biebersdorf_CustomerOrderComment</name>
<version>0.1.3</version>
<stability>beta</stability>
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
<channel>community</channel>
<extends/>
<summary>Enable customers to write comments to their orders.</summary>
<description>This extension adds an EAV-Attribute to the order entity model so the customer can write a comment for the order.
To get this extension work some changes in the template files are required!
In the folder /app/code/community/Biebersdorf/CustomerOrderComment/design/ you will find template files as examples for the magento standard theme. Copy them to the right places of your design theme modification folder or change your existing template files. Please do not overwrite the original template files!
Explaination for the needed changes in templates:
You have to add a HTML textarea field in the file app/design/frontend/default/default/template/checkout/onepage/agreements.phtml. Place the new textarea inside the form (opening and closing form tags) to be sure the comment variable is submitted. Don't forget to “enable Terms and Conditions” in configuration for the template to get shown. You can enable it here: System > Configuration > Sales > Checkout > Checkout Options > Enable Terms and Conditions).
To get the order comments visible you have to customize the templates where you like the comments to be shown (don’t forget to escape the data with something like htmlspecialchars()):
<?php
// If there is an order object:
echo $_order->getBiebersdorfCustomerordercomment();
// If you only have the order-id (e.g. 11), you have to create an instance first:
$_order = Mage::getModel('sales/order')->load(11);
echo $_order->getBiebersdorfCustomerordercomment();
?>
This extension is still in development. To get a clean implementation the textarea for the input of the comment has to be moved out of the agreements-formular.</description>
<notes>- Added Language: nl_NL (thanks to user Wilco)
- Minor template changes</notes>
<authors><author><name>Ottmar Biebersdorf</name><user>auto-converted</user><email>magento@obiebersdorf.de</email></author></authors>
<date>2010-03-25</date>
<time>05:12:56</time>
<contents><target name="magecommunity"><dir name="Biebersdorf"><dir name="CustomerOrderComment"><dir name="design"><dir name="adminhtml"><dir name="template"><dir name="sales"><dir name="order"><dir name="view"><dir name="tab"><file name="info.phtml" hash="6ef134c9ed3b30c50695215bcdb31c38"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="template"><dir name="checkout"><dir name="multishipping"><file name="agreements.phtml" hash="0e2b24897fcf2771c3b8ea670f07cf8c"/></dir><dir name="onepage"><file name="agreements.phtml" hash="0db56bff1744f02b8b70dad2b7c84fbc"/></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="dcfa3c3ebc7d39bd021108fdd0613cbd"/></dir><dir name="Helper"><file name="Data.php" hash="0f8b1f31b55d8dad9343967f0f2d4687"/></dir><dir name="sql"><dir name="customerordercomment_setup"><file name="mysql4-install-0.0.3.php" hash="ee1e8849b5a1aa62c756a8b2cf2d21d4"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="Biebersdorf_CustomerOrderComment.csv" hash="a56fc6041f31200e18250bc691ece733"/></dir><dir name="en_GB"><file name="Biebersdorf_CustomerOrderComment.csv" hash="08cd2d519d47f2383fe495e3afab7232"/></dir><dir name="en_US"><file name="Biebersdorf_CustomerOrderComment.csv" hash="08cd2d519d47f2383fe495e3afab7232"/></dir><dir name="nl_NL"><file name="Biebersdorf_CustomerOrderComment.csv" hash="91ccab84e361e5eb23341e2ad2ead185"/></dir><dir name="th_TH"><file name="Biebersdorf_CustomerOrderComment.csv" hash="0ee6f97b2a801f458a2edb813a353e45"/></dir></target><target name="mageetc"><dir name="modules"><file name="Biebersdorf_CustomerOrderComment.xml" hash="2f5a3324eb920ec6a01ac7fd3901a3f1"/></dir></target></contents>
<compatible/>
<dependencies/>
</package>