69 lines
2.5 KiB
PHP
69 lines
2.5 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Auto-create Customer for User
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| When enabled, creating a User automatically creates and attaches a bare
|
|
| Customer record (storefront passwordless-signup convention). Shops that
|
|
| drive the relationship the other way around (creating a Customer first,
|
|
| then a User for portal login) should set this to false.
|
|
|
|
|
*/
|
|
|
|
'auto_create_customer_for_user' => true,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Cart Abandonment Threshold
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| How long a cart (that hasn't converted to a placed order) can go without
|
|
| activity before Modules\Core\Cart\Filament\Resources\CartResource treats
|
|
| it as "Abandoned" rather than "Ongoing". Anything DateInterval::createFromDateString()
|
|
| accepts works, e.g. '1 hour', '30 minutes', '2 days'.
|
|
|
|
|
*/
|
|
|
|
'cart' => [
|
|
'abandoned_after' => '1 hour',
|
|
|
|
/*
|
|
|----------------------------------------------------------------------
|
|
| Unrecoverable Cap
|
|
|----------------------------------------------------------------------
|
|
|
|
|
| Beyond this age, a stale cart stops being treated as an active
|
|
| "Abandoned Cart"/"Abandoned Checkout" (Modules\Core\Cart\Services\
|
|
| CartLifecycleService) — too old to be a realistic recovery target
|
|
| (pricing/stock/tax likely stale by then). This is about the
|
|
| abandoned-cart pipeline only, not data retention — no rows are
|
|
| deleted or pruned based on this value.
|
|
|
|
|
*/
|
|
|
|
'unrecoverable_after' => '90 days',
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Order Return Window
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| How many days after a carrier order is delivered (Order::fulfillment_status
|
|
| becomes 'return_window_open') before Modules\Core\Order\Commands\
|
|
| CloseExpiredReturnWindows auto-completes it, if no return was requested.
|
|
| Store-pickup orders have no return-window step and are unaffected by
|
|
| this value (see Modules\Core\Order\Listeners\CompleteOrderOnPickedUp).
|
|
|
|
|
*/
|
|
|
|
'order' => [
|
|
'return_window_days' => 14,
|
|
],
|
|
|
|
];
|