How to generate an OMS event on order cancellation from backoffice or customer end?

Sr. Software Engineer Posts: 16 🧑🏻‍🚀 - Cadet

Hello Team!

I am just stuck on an enhancement; I need one event when the order cancelled from back-office or customer end.

Please help me!
Regards,
Jitesh Sinha (@jsinha)

Best Answer

  • Senior Technical Trainer Sprykee Posts: 93 🏛 - Council (mod)
    Answer ✓

    If you have your OMS set up with a transition to handle a transition from previous state to "canceled" then you can add an event in you OMS xml and implement it in php. Then upon clicking the cancel button, that event would be fired. You can also fire it programmatically in your controller.
    Take a look at the OMS course: https://sprykee-safari.spryker.com/learn/course/587

Answers

  • Senior Technical Trainer Sprykee Posts: 93 🏛 - Council (mod)
    Answer ✓

    If you have your OMS set up with a transition to handle a transition from previous state to "canceled" then you can add an event in you OMS xml and implement it in php. Then upon clicking the cancel button, that event would be fired. You can also fire it programmatically in your controller.
    Take a look at the OMS course: https://sprykee-safari.spryker.com/learn/course/587

  • Sr. Software Engineer Posts: 16 🧑🏻‍🚀 - Cadet

    Thanks @Hidran Arias

Welcome!

It looks like you're new here. Sign in or register to get started.