vanilophp / framework

The truly Laravel E-commerce Framework
https://vanilo.io
MIT License
816 stars 103 forks source link

OrderProcessingStarted is never triggered #167

Closed csavelief closed 10 months ago

csavelief commented 10 months ago

Hi!

I cloned the demo project and tried to catch the OrderProcessingStarted event.

I modified the EventServiceProvider::$listen variable to reference my listener :

    protected $listen = [
        'App\Events\Event' => [
            'App\Listeners\EventListener',
        ],
        OrderProcessingStarted::class => [
            SendOrderProcessingStartedNotification::class,
        ],
        OrderWasCancelled::class => [
            SendOrderCancelledNotification::class,
        ],
    ];

Moving in the Admin > Orders panel an order from :

Best,

Cyrille

fulopattila122 commented 10 months ago

Thank you for the report. The OrderProcessingStarted event was added in Vanilo 3.7, but the Admin package hasn't been updated to all its features. It will be completed within a couple of days

fulopattila122 commented 10 months ago

Please upgrade the vanilo/admin package with composer to v3.7 and the event will be triggered

csavelief commented 10 months ago

You are right : the issue is fixed on version 3.7

Thank you!