Calling Developers!
We are reenergizing our code contribution process! Learn More

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

Options
jsinha
jsinha 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

  • Hidran Arias
    Hidran Arias Senior Technical Trainer Sprykee Posts: 73 🏛 - Council (mod)
    Answer ✓
    Options

    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

  • Hidran Arias
    Hidran Arias Senior Technical Trainer Sprykee Posts: 73 🏛 - Council (mod)
    Answer ✓
    Options

    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

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

    Thanks @Hidran Arias