How do I trigger a email in Magento when an order is made?

How do I trigger a email in Magento when an order is made?

July 23, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How do I trigger a email in Magento when an order is made?

Triggering an Email Notification When an Order is Placed in Magento

Email notifications are crucial for keeping store owners informed about new orders. In this guide, we’ll show you how to set up Magento to send an email notification without including price information when a customer places an order.

Understanding the Email Template System

Magento uses XML templates to define the structure of its emails. These templates can be found in the app/locale/en_US/template/email/ directory (or your active locale). For our purpose, we’ll work with the sales_email_order_place_template template, which is located at vendor/magento/module-sales/etc/email_templates.xml.

Editing the Email Template

First, let’s understand what each component of the email template does:

<template id="sales_email_order_place_template" sender="general" module="sales">
    <label>New Order</label>
    <file>order_new.html</file>
    <type>html</type>
    <style>email.css</style>
    <Variables>
        <variable name="order.increment_id">The order ID number.</variable>
        <!-- Other variables here -->
    </Variables>
</template>

In this template, we’re interested in the order_new.html file, which contains the HTML content of the email. To exclude price information (like a packing list), you need to remove or comment out any lines that reference order totals or item prices.

Editing the Email Content

The order_new.html file is quite extensive, but for simplicity, let’s focus on the product items section around line 176:

<tr>
    <td style="padding:3px 9px;">
        <?php echo $this->escapeHtml($_item['name']) ?>
    </td>

    <!-- More columns here -->

    <td align="right" style="padding:3px 9px;">
        <?php echo $this->getPriceHtml($_item, false) ?>
    </td>
</tr>

To remove the price information, simply comment out or delete this line:

<!-- <td align="right" style="padding:3px 9px;"><?php echo $this->getPriceHtml($_item, false) ?></td> -->

This will prevent the product prices from being included in the email.

Sending the Email

Magento automatically sends this email when an order is placed successfully. No additional configuration or file editing is required for this part of the process.

Conclusion

Setting up Magento to send a custom email notification without price information requires understanding the email template system and editing the appropriate files. In our example, we focused on the order_new.html template located at vendor/magento/module-sales/view/frontend/templates/email/order_new.html.

Remember that Magento’s core code is constantly evolving, so it’s always a good idea to refer to the official documentation for the latest information and best practices.

For more advanced customizations in your Magento store, consider working with a professional development team like Laravel Company. Our experts can help you implement complex features while ensuring your store remains secure and performant.

API Extensions Themes Email

Our network