Contributions
Preset Order Comments Contribution MS2 v. 0.1
------------
This contribution allows you to insert/edit/delete preset comments to be added to the orders from the order edit page in admin area.
You will still be able to add any text you want in the default Comment textarea field.
REASON:
------------
I was tired to write same explanation text for every order status change. So I was needed a change to have a preseted comment everytime I need it.
USAGE:
------------
Inserting/Editing/Deleting the preset comments can be completed from the Localization >> Orders Comment menu.
In the order edit page choose the preset comment you want to add to the order. A dropdown box with all preseted messages is placed right after the default Comment textarea.
You will still be able to add any text you want in the default Comment textarea field.
The text you insert in the default Comment textarea field per order will appear above the preset comment you select.
I use this contribution very successfully at www.osCoders.biz
Expand All / Collapse All
This contrib replaces the orders_comment.php file with one that adds an entry for a language entry when it does not exist.
Previously, it could only update existing languages comments.
Example:
Order comment 1 exists in dutch and english
You define a new language
You try to update Order comment 1 for the new language, that doesn't work.
This enhanced files inserts new comment entry when language entry is empty.
Improvements or comments are welcome.
There was an error in the filename.php file. It is correct in the README, however, if you copy in the included php files it is broken.
The line:
define('TABLE_ORDERS_COMMENT', 'orders_comment');
Should Be:
define('FILENAME_ORDERS_COMMENT', 'orders_comment.php');
I corrected it in the package on this post.
Just forgot to update the read_me file. Sorry.
Please read the v. 0.2 info bellow.
Changes
-------
1. Added one more drop down field so you will be able to insert 2 preset messages in same comment.
This can be usefull if you want to place a preset text (the second) in all comments you send no matter what the first preset text is.
So, this can be usefull to add signatures, special offers announces or anything your creativity place there.
2. Added a checkbox for both preset texts so if you do not want to send a preset message in the comment simply ignore it and don't check the field.
No need for empty messages anymore.
3. Added the name of the customer to the top of comment.
Ex: Dear John Doe
You may edit the address word (Dear) from the languages/english/orders.php file.
4. Fixed a missing insertion in the _install.txt file.
------------
This contribution allows you to insert/edit/delete preset comments to be added to the orders from the order edit page in admin area.
You will still be able to add any text you want in the default Comment textarea field.
REASON:
------------
I was tired to write same explanation text for every order status change. So I was needed a change to have a preseted comment everytime I need it.
USAGE:
------------
Inserting/Editing/Deleting the preset comments can be completed from the Localization >> Orders Comment menu.
In the order edit page choose the preset comment you want to add to the order. A dropdown box with all preseted messages is placed right after the default Comment textarea.
You will still be able to add any text you want in the default Comment textarea field.
The text you insert in the default Comment textarea field per order will appear above the preset comment you select.
I use this contribution very successfully at www.osCoders.biz
Note: Contributions are used at own risk.