Missing Event for order cancel

Created on 3 June 2024, 6 months ago
Updated 17 June 2024, 5 months ago

Describe your bug or feature request.

While working on a sub feature for commerce_stock we noticed that in multiple sub-modules there is references to an event (post_transition/order_event cancel). This event does not seem to exist and also doesn't get dispatched.

💬 Support request
Status

Fixed

Version

2.0

Component

Order

Created by

🇳🇱Netherlands gidarai

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @gidarai
  • Status changed to Fixed 6 months ago
  • 🇮🇱Israel jsacksick

    The event to listen to is:
    commerce_order.cancel.pre_transition (fired on order presave) or commerce_order.cancel.post_transition (fired after the order is saved).

    The state machine module is responsible for dispatching events when a state transition is applied.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024