Posted on

How to use 2 observer in same event in Magento 2?

I want to use 2 observer on ‘sales_order_place_after’ this observer as i have checked if i place one observer it works fine but how can i run 2 observer with one event.

<event name=”sales_order_place_after”>
<observer name=”sales_order_place_after”
instance=”HlSendEmailObserverCustomerNewOrderObserver”/>
<observer name=”hl_sales_order_place_after” instance=”HlSendEmailObserverAfterOrderObserver” />
</event>

here oage got stuck on checkout and nothing happens.

Any idea how to do that?

Leave a Reply

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