Magento – ” Gift message for this order ” Remove from Transaction Mail

Picture

Not every shop has a use for gift messages. Unfortunately, by default in the order confirmation e-mail transaction, this part included below automatically.

We have found no easy way, remove this transaction in the email itself. But there are of course possible to make this elsewhere.

The file from the folder items.phtml

app/design/frontend/base/default/template/email/order

Copy and structure themselves in their own template folder store:

app / design / frontend /[base or default]/IhrTemplate/template/email/order

There will range from the line 52 comment out or delete:

<table cellspacing="0" cellpadding="0" border="0" width="100%" style="border:1px solid #bebcb7; background:#f8f7f5;">
<thead>
<tr>
<th align="left" bgcolor="#d9e5ee" style="padding:3px 9px"><strong><?php echo $this->__('Gift Message for this Order') ?></strong></th>
</tr>
</thead>

<tbody>
<?php if($_order->getGiftMessageId() && $<br /><strong><?php echo $this->__(' :'); ?></strong><br /> <?php echo $this->htmlEscape($_giftMessage->getMessage()) ?>>helper('Giftmessage / message')->getGiftMessage($_order->getGiftMessageId())): ?>
<tr>
<td colspan="4" align="left" style="padding:3px 9px">
<strong><?php echo $this->__('From:'); ?></strong> <?php echo $this->htmlEscape($_giftMessage->getSender()) ?>
<br /><strong><?php echo $this->__('To:'); ?></strong> <?php echo $this->htmlEscape($_giftMessage->getRecipient()) ?>
<br /><strong><?php echo $this->__('Message:'); ?></strong><br /> <?php echo $this->htmlEscape($_giftMessage->getMessage()) ?>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>

Saving, evtl. Clear cache and then the gift should be removed from the email message.

Used in 1.4.1.1

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

Leave a Reply

Your email address will not be published. Required fields are marked *