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

jsinha
jsinha 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: 81 πŸ› - 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

  • Hidran Arias
    Hidran Arias Senior Technical Trainer Sprykee Posts: 81 πŸ› - 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

  • jsinha
    jsinha Posts: 16 πŸ§‘πŸ»β€πŸš€ - Cadet

    Thanks @Hidran Arias