---
title: "Magento 2: How to Observe the Multi-shipping Order Creation Event"
url: "https://magecomp.com/blog/magento-2-observe-the-multi-shipping-order-creation-event/"
date: "2024-09-13T14:51:58+00:00"
modified: "2025-02-12T10:41:18+00:00"
author:
  name: "Dhiren Vasoya"
  url: "https://magecomp.com/"
categories:
  - "How To"
  - "Magento 2"
word_count: 287
reading_time: "2 min read"
summary: "Hello Magento Friends,"
description: "Learn how to observe the multi-shipping order creation event in Magento 2. Step-by-step guide to create custom actions during multi-shipping checkout."
keywords: "How To, Magento 2"
language: "en"
schema_type: "Article"
related_posts:
  - title: "How to Update Shipping Methods when Street Field Input Change on Checkout Page in Magento 2?"
    url: "https://magecomp.com/blog/update-shipping-methods-when-street-field-change-magento-2/"
  - title: "How to &#8220;Add to Wishlist&#8221; Without Redirecting to Wishlist Page in Magento 2?"
    url: "https://magecomp.com/blog/add-to-wishlist-without-redirecting-to-wishlist-page-in-magento-2/"
  - title: "Magento 2: How to Add Custom Text after Billing Address and Shipping Address in Credit Memo PDF?"
    url: "https://magecomp.com/blog/magento-2-add-custom-text-after-billing-address-and-shipping-address-in-credit-memo-pdf/"
---

# Magento 2: How to Observe the Multi-shipping Order Creation Event

_Published: September 13, 2024_  
_Author: Dhiren Vasoya_  

![Magento 2 How to Observe the Multi-shipping Order Creation Event](https://magecomp.com/blog/wp-content/uploads/2024/09/Magento-2-How-to-Observe-the-Multi-shipping-Order-Creation-Event-1024x512.webp)

**Hello Magento Friends,**

Magento 2 provides a robust event-driven architecture that allows developers to observe and respond to various system activities. One such event is the multi-shipping order creation event, triggered when a customer places an order using the multi-shipping checkout method. This method is ideal for stores with customers who [**ship items to multiple addresses**](https://magecomp.com/blog/configure-multiple-addresses-shipping-magento-2/) in a single checkout process. By observing this event, you can implement custom actions or modifications to the order creation process.
[![hyva theme development](https://magecomp.com/blog/wp-content/uploads/2025/02/hyva-theme-development-CTA-5.webp)](https://magecomp.com/services/hyva-theme-development/)

In this guide, we’ll walk you through observing the multi-shipping order creation event in Magento 2.
## Steps to Observe the Multi-shipping Order Creation Event in Magento 2:
**Step 1:** First, we need to create an **“event.xml”** file inside our extension at the following path:
**app/code/Vendor/Extension/etc/event.xml**

Now add code as follows
```
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="checkout_type_multishipping_create_orders_single">
        <observer name="multishipping_create_ordersdata" instance="VendorExtensionObserverGetOrderData"/>
    </event>
</config>
```

[![Magento version upgrade](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-2-Version-Upgrade-CTA-2-2.webp)](https://magecomp.com/services/magento-upgrade-services/)

**Step 2:** First, we need to create a **“GetOrderData.php”** file inside our extension at the following path.
**app/code/Vendor/Extension/Observer/GetOrderData.php**

Then add the code as below
```
<?php
namespace VendorExtensionObserver;
use MagentoFrameworkEventObserver;
use MagentoFrameworkEventObserverInterface;

class GetOrderData implements ObserverInterface
{
    public function execute(Observer $observer)
    {

        $order = $observer->getOrder();

        $orderData = $order->getData();

        return $this;
    }
}
```

## Conclusion:
Observing the multi-shipping order creation event in Magento 2 provides a powerful way to add custom functionality to your store’s multi-shipping checkout process. By leveraging Magento’s event-driven architecture, you can enhance the customer experience and improve your store’s operational workflows seamlessly.
[![Magento 2 Speed & Performance Optimization Services](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-2-Speed-Performance-Optimization-Services-CTA-2.webp)](https://magecomp.com/magento-performance-optimization.html)

**Happy Coding!**


---

_View the original post at: [https://magecomp.com/blog/magento-2-observe-the-multi-shipping-order-creation-event/](https://magecomp.com/blog/magento-2-observe-the-multi-shipping-order-creation-event/)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-08-20 12:07:31 UTC_  
