Skip to main content

Model

The model used is Shopper\Core\Models\Zone.
NameTypeRequiredNotes
idautoincauto
namestringyes
slugstringnoUnique, default value is auto generated using zone name
codestringnoUnique, Nullable
is_enabledbooleannoDefault false
metadataarraynoNullable
currency_idintyesInt (Currency object via the currency relation)

Components

The components used to manage zones are found in the component configuration file config/shopper/components/setting.php. This configuration file is not available by default. But if you want to update or change the settings components, you can publish them with the command
php artisan shopper:component:publish setting
This file contains all Livewire components for settings. Here is only the list of zone components
use Shopper\Livewire\Components;
use Shopper\Livewire\Pages;

return [

    'pages' => [
        // ...
        'zones' => Pages\Settings\Zones::class,
        // ...
    ];

    'components' => [
        // ...
        'settings.zones.detail' => Components\Settings\Zones\Detail::class,
        'settings.zones.shipping-options' => Components\Settings\Zones\ZoneShippingOptions::class,
        // ...
    ],

];
You can expand each of its components to customize this section or replace the entire section if your system requires it. You can also change the views too and return your own views.