Event for order status


#1

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


#2

here’s an example:

http://docs.sylius.com/en/1.1/book/architecture/state_machine.html#callbacks


#3

if i want override for example sylius_payment state machine ?

send email for all transition create, process …


#4

here you have everything described:

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


#5

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?


#6

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


#7

How it disabled? Override service?


#8

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