Panel Configuration
Publish the panel configuration file if it has not already been published:config/lunar-panel.php with the following options:
| Option | Type | Default | Description |
|---|---|---|---|
enable_variants | bool | true | Show the variants manager when editing a product. Set to false if the storefront does not support variants. |
pdf_rendering | string | download | How PDFs are handled in the panel. Options are download or stream. |
scout_enabled | bool | false | Use Laravel Scout for searching supported models in panel tables. |
order_count_statuses | array | ['payment-received'] | Order statuses included in the navigation badge count. |
Product Association Types
By default, the admin panel provides three association types in the product associations dropdown: Cross Sell, Up Sell, and Alternate. These come from theLunar\Base\Enums\ProductAssociation enum.
To add custom association types, create a new backed enum that implements the ProvidesProductAssociationType interface:
config/lunar/products.php to point to the custom enum:
The enum must be a backed string enum, and each case must implement a
label() method that returns the human-readable name. See the Associations reference for full details on using custom types in application code.