How to disable the order confirmation email?
✅ You can either:
1. Disabling the Email via Configuration
# config/packages/sylius_mailer.yaml
sylius_mailer:
emails:
order_confirmation:
enabled: falsephp bin/console cache:clear2. Disabling the Listener (Advanced)
Create a compiler pass:
Then register the compiler pass in your Kernel:
Kernel:3. Verify the Listener is Removed
Which Option Should You Choose?
Use Case
Recommended Option
Last updated
Was this helpful?
