Event for order status


Hi all, maybe somebody can show example, for order state change order when order created run service function ( " callback" ) ?


here’s an example:



if i want override for example sylius_payment state machine ?

send email for all transition create, process …


here you have everything described:

http://docs.sylius.com/en/1.1/customization/state_machine.html#how-to-add-a-new-callback :slight_smile:


maybe you know how sylius state machine send email after create order from shop, in checkout/complete step run submit ? client get email about order?


sending a message after placing the order works on the event listener sylius.order.post_complete


How it disabled? Override service?


yes, you can overwrite the service sylius.listener.order_complete