generated from boboko/starter
Feat: Updating config for boboko order updates
This commit is contained in:
+94
-7
@@ -58,11 +58,23 @@
|
|||||||
| make sense for the store you're building.
|
| make sense for the store you're building.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
'draft_status' => 'awaiting-payment',
|
'draft_status' => 'awaiting_payment',
|
||||||
|
|
||||||
|
// Two sequences — carrier and store-pickup — see Modules\Core\Order\
|
||||||
|
// Services\OrderStatusFlow, the single source of truth for which
|
||||||
|
// transitions are actually offered from a given status. Payment
|
||||||
|
// timing (prepaid vs. cash-on-delivery) does not affect this
|
||||||
|
// sequence at all — see Order::paid/paid_at instead, an entirely
|
||||||
|
// independent field with no status value of its own.
|
||||||
|
//
|
||||||
|
// 'favourite' controls whether a status gets its own tab in the order
|
||||||
|
// list topbar (Lunar\Admin\...\ListOrders::getDefaultTabs()) — set
|
||||||
|
// only on the main-journey statuses so the topbar isn't cluttered
|
||||||
|
// with every branch/exception value; every status (favourite or not)
|
||||||
|
// remains reachable via the table's own status filter/search.
|
||||||
'statuses' => [
|
'statuses' => [
|
||||||
|
|
||||||
'awaiting-payment' => [
|
'awaiting_payment' => [
|
||||||
'label' => 'Awaiting Payment',
|
'label' => 'Awaiting Payment',
|
||||||
'color' => '#848a8c',
|
'color' => '#848a8c',
|
||||||
'mailers' => [],
|
'mailers' => [],
|
||||||
@@ -70,17 +82,25 @@
|
|||||||
'favourite' => true,
|
'favourite' => true,
|
||||||
],
|
],
|
||||||
|
|
||||||
'payment-offline' => [
|
'processing' => [
|
||||||
'label' => 'Payment Offline',
|
'label' => 'Processing',
|
||||||
'color' => '#0A81D7',
|
'color' => '#0A81D7',
|
||||||
'mailers' => [],
|
'mailers' => [],
|
||||||
'notifications' => [],
|
'notifications' => [],
|
||||||
'favourite' => true,
|
'favourite' => true,
|
||||||
],
|
],
|
||||||
|
|
||||||
'payment-received' => [
|
'ready_for_dispatch' => [
|
||||||
'label' => 'Payment Received',
|
'label' => 'Ready for Dispatch',
|
||||||
'color' => '#6a67ce',
|
'color' => '#c98a2e',
|
||||||
|
'mailers' => [],
|
||||||
|
'notifications' => [],
|
||||||
|
'favourite' => true,
|
||||||
|
],
|
||||||
|
|
||||||
|
'ready_for_pickup' => [
|
||||||
|
'label' => 'Ready for Pickup',
|
||||||
|
'color' => '#c98a2e',
|
||||||
'mailers' => [],
|
'mailers' => [],
|
||||||
'notifications' => [],
|
'notifications' => [],
|
||||||
'favourite' => true,
|
'favourite' => true,
|
||||||
@@ -88,11 +108,78 @@
|
|||||||
|
|
||||||
'dispatched' => [
|
'dispatched' => [
|
||||||
'label' => 'Dispatched',
|
'label' => 'Dispatched',
|
||||||
|
'color' => '#0A81D7',
|
||||||
'mailers' => [],
|
'mailers' => [],
|
||||||
'notifications' => [],
|
'notifications' => [],
|
||||||
'favourite' => true,
|
'favourite' => true,
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'delivery_failed' => [
|
||||||
|
'label' => 'Delivery Failed',
|
||||||
|
'color' => '#c0392b',
|
||||||
|
'mailers' => [],
|
||||||
|
'notifications' => [],
|
||||||
|
'favourite' => false,
|
||||||
|
],
|
||||||
|
|
||||||
|
'picked_up' => [
|
||||||
|
'label' => 'Picked Up',
|
||||||
|
'color' => '#3f7a5c',
|
||||||
|
'mailers' => [],
|
||||||
|
'notifications' => [],
|
||||||
|
'favourite' => true,
|
||||||
|
],
|
||||||
|
|
||||||
|
// The parcel arriving and the return window opening are the same
|
||||||
|
// moment — one status value covers both.
|
||||||
|
'delivered' => [
|
||||||
|
'label' => 'Delivered',
|
||||||
|
'color' => '#c98a2e',
|
||||||
|
'mailers' => [],
|
||||||
|
'notifications' => [],
|
||||||
|
'favourite' => true,
|
||||||
|
],
|
||||||
|
|
||||||
|
'completed' => [
|
||||||
|
'label' => 'Completed',
|
||||||
|
'color' => '#3f7a5c',
|
||||||
|
'mailers' => [],
|
||||||
|
'notifications' => [],
|
||||||
|
'favourite' => true,
|
||||||
|
],
|
||||||
|
|
||||||
|
'return_requested' => [
|
||||||
|
'label' => 'Return Requested',
|
||||||
|
'color' => '#c98a2e',
|
||||||
|
'mailers' => [],
|
||||||
|
'notifications' => [],
|
||||||
|
'favourite' => false,
|
||||||
|
],
|
||||||
|
|
||||||
|
'returned' => [
|
||||||
|
'label' => 'Returned',
|
||||||
|
'color' => '#c0392b',
|
||||||
|
'mailers' => [],
|
||||||
|
'notifications' => [],
|
||||||
|
'favourite' => false,
|
||||||
|
],
|
||||||
|
|
||||||
|
'partially_refunded' => [
|
||||||
|
'label' => 'Partially Refunded',
|
||||||
|
'color' => '#c98a2e',
|
||||||
|
'mailers' => [],
|
||||||
|
'notifications' => [],
|
||||||
|
'favourite' => false,
|
||||||
|
],
|
||||||
|
|
||||||
|
'refunded' => [
|
||||||
|
'label' => 'Refunded',
|
||||||
|
'color' => '#c0392b',
|
||||||
|
'mailers' => [],
|
||||||
|
'notifications' => [],
|
||||||
|
'favourite' => false,
|
||||||
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -46,6 +46,6 @@
|
|||||||
| to include in the count below.
|
| to include in the count below.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
'order_count_statuses' => ['payment-received'],
|
'order_count_statuses' => ['processing'],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user