lunar icon indicating copy to clipboard operation
lunar copied to clipboard

HUB: Available notifications not appearing in order change status

Open SebastianBotez opened this issue 1 year ago • 1 comments

  • Lunar version: 0.8.0
  • Laravel Version: 10.43.0
  • PHP Version: 8.2.5

Expected Behaviour:

Display available notifications when changing the order status in HUB area.

Actual Behaviour:

Even if there are notifications added in config file, they are not appearing in the list.

Steps To Reproduce:

Add in config/lunar/order.php a new generated notification, for example OrderDispatched.

........
'notifications' => [
    App\Notifications\Order\OrderDispatched::class
],

Place a order and then enter in hub and access the order detail page. Press the change status and select the desires status that you registered in the config file. The error is not present that states that there are no notifications available for that status but there are no notifications available. I digged in vendor and I found that if there are notifications available, no action is made. vendor/lunarphp/lunar/packages/admin/resources/views/livewire/components/orders/status.blade.php, line 70 Screenshot 2024-02-20 at 14 08 07

For example, if we scroll up a little, we see the availableMailers logic and we have this: Screenshot 2024-02-20 at 14 16 19

SebastianBotez avatar Feb 20 '24 12:02 SebastianBotez

So can you confirm that you have put the notification under the correct order status in the config and it's not appearing when you select that status?

alecritson avatar Mar 04 '24 13:03 alecritson

Closing due to inactivity

alecritson avatar Mar 28 '24 13:03 alecritson