Hey,
I am sorry to not reply to your question, to be honest I am new to Shopware6…
I am just here to ask you how you did you do to make your first event (OrderEvents::ORDER_WRITTEN_EVENT) work?
Because I have this code and it’s not working, nothing happens when I create a test order in the frontend.
<?php namespace Emakers\TransmissionPlugin\Subscriber; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpKernel\Event\ExceptionEvent; use Symfony\Component\HttpKernel\KernelEvents; use Enlight\_Hook\_HookArgs; class OrderSubscriber implements EventSubscriberInterface { public static function getSubscribedEvents() { // return the subscribed events, their methods and priorities return [ ['OrderEvents::ORDER\_WRITTEN\_EVENT' =\> 'onOrderCheckout'], ]; } public function onOrderCheckout(Enlight\_Hook\_HookArgs $args) { die('TEST OK'); } }