Skip to main content
added 87 characters in body
Source Link
Addify
  • 769
  • 3
  • 5

try using the event

sales_order_save_commit_after

Try below code

$orderId = $observer->getEvent()->getOrder()->getEntityId();

try using the event

sales_order_save_commit_after

try using the event

sales_order_save_commit_after

Try below code

$orderId = $observer->getEvent()->getOrder()->getEntityId();
Source Link
Addify
  • 769
  • 3
  • 5

try using the event

sales_order_save_commit_after