A well-known problem in Magento is Shipping of Comments to customers through the Administrator from the Order out.
So the problem is less the sending, than Formatting, is lost.
Under Kommentarverlauf and there at Add comment to order kann man Line breaks Embed to any fingers bleed, However, in the Transactional email, as well as in history, as well as comment on the customer's account no line break or other Formatting be present.
This does not work with simple “Enter” Line breaks as well as not “<br>” or other.
So, the solution to the problem:
Dip the order comments into
- there Transactional Email an den Customer (when the hook is set)
- the history of comments in the backend
- the order summary in the customer's account (once again, the hook was set)
Unfortunately, there is no super solution but a solution:
- Im Ordner / app / code / core / Mage / Adminhtml / controllers / Sales / OrderController.php (also leider im Core) after
$comment = trim(strip_tags($data['comment']));
Search and
$comment = nl2br($data['comment']);
replace. This formatting is on the one hand as <br>,<b> etc.. BUT also processes the simple line break by pressing Enter is processed. To write so <br> and then press Enter, There are two line breaks IN THE TRANSACTION EMAIL.
So if you only want to, that the e-mails are beautiful, This amendment extends the. Press enter now this does not work but for the history or the user account. - Im Ordner app/design/adminhtml/default/default/template/sales/order/view/history.phtml nach
<?php echo $this->escapeHtml($_item->getComment(), array('b','Br','strong','i','U')) ?>
Search and
<?php echo $_item->getComment(); ?>
replace.
Unfortunately, this only causes, that formatting such as <br> etc.. are processed in the Admin Comment History, but the enter line breaks but not work. - Im Ordner / app / design / frontend /[base or default]/[IhrTemplate]/template / sales / order / view.phtml after row
<?php echo $this->escapeHtml($_historyItem->getComment()) ?>
Search and
<?php echo $_historyItem->getComment() ?>
replace. Here the same applies as for point 2. Only formatting is applied, Enter no.
As I said,, Unfortunately this is not the best solution but at least one with which one can live.
Used in Magento Version 1.7. Ask, Comments, Proposals? Us directly or as a comment.
Thanks! It works.