Skip to content

Add Craft Commerce order event support (placed + paid)#33

Open
chasegiunta wants to merge 6 commits intodoublesecretagency:v2-devfrom
chasegiunta:feat/commerce-order-events
Open

Add Craft Commerce order event support (placed + paid)#33
chasegiunta wants to merge 6 commits intodoublesecretagency:v2-devfrom
chasegiunta:feat/commerce-order-events

Conversation

@chasegiunta
Copy link
Copy Markdown

Summary

Adds Craft Commerce order notifications to Notifier with two new trigger events:

  • after-complete-order (order placed/completed)
  • after-order-paid (order fully paid)

What changed

  • Added commerce-orders event type and events in Options
  • Registered Commerce order listeners in Events service, behind class_exists(Order::class) so non-Commerce installs remain safe
  • Added new event handler class CommerceOrderEvents
  • Added CP UI select for Commerce order events
  • Updated Dispatch::filterByEventType() to accept commerce-orders

Notes

  • This keeps Commerce support optional and backward-compatible
  • No new recipient/message behavior changes, only new event sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant