> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lunarphp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Extending Order Management

> How to extend the order management view in the Lunar admin panel.

The order management page supports the same customization as [Pages](/1.x/admin/extending/pages), along with additional methods specific to the order view screen.

## Registration

Register an order management extension in a service provider:

```php theme={null}
use Lunar\Admin\Support\Facades\LunarPanel;

LunarPanel::extensions([
    \Lunar\Admin\Filament\Resources\OrderResource\Pages\ManageOrder::class => MyManageOrderExtension::class,
]);
```

## Available Methods

The following methods can be overridden in the extension class to customize sections of the order view.

### Main Infolist

* `extendInfolistSchema(): array`

### Aside Panel

* `extendInfolistAsideSchema(): array`
  * `extendCustomerEntry(): Infolists\Components\Component`
  * `extendTagsSection(): Infolists\Components\Component`
  * `extendAdditionalInfoSection(): Infolists\Components\Component`
  * `extendShippingAddressInfolist(): Infolists\Components\Component`
  * `extendBillingAddressInfolist(): Infolists\Components\Component`
  * `extendAddressEditSchema(): array`

### Order Summary

* `extendOrderSummaryInfolist(): Infolists\Components\Section`
* `extendOrderSummarySchema(): array`
  * `extendOrderSummaryNewCustomerEntry(): Infolists\Components\Entry`
  * `extendOrderSummaryStatusEntry(): Infolists\Components\Entry`
  * `extendOrderSummaryReferenceEntry(): Infolists\Components\Entry`
  * `extendOrderSummaryCustomerReferenceEntry(): Infolists\Components\Entry`
  * `extendOrderSummaryChannelEntry(): Infolists\Components\Entry`
  * `extendOrderSummaryCreatedAtEntry(): Infolists\Components\Entry`
  * `extendOrderSummaryPlacedAtEntry(): Infolists\Components\Entry`

### Timeline

* `extendTimelineInfolist(): Infolists\Components\Component`

### Order Totals

* `extendOrderTotalsAsideSchema(): array`
  * `extendDeliveryInstructionsEntry(): Infolists\Components\TextEntry`
  * `extendOrderNotesEntry(): Infolists\Components\TextEntry`
* `extendOrderTotalsInfolist(): Infolists\Components\Section`
* `extendOrderTotalsSchema(): array`
  * `extendSubTotalEntry(): Infolists\Components\TextEntry`
  * `extendDiscountTotalEntry(): Infolists\Components\TextEntry`
  * `extendShippingBreakdownGroup(): Infolists\Components\Group`
  * `extendTaxBreakdownGroup(): Infolists\Components\Group`
  * `extendTotalEntry(): Infolists\Components\TextEntry`
  * `extendPaidEntry(): Infolists\Components\TextEntry`
  * `extendRefundEntry(): Infolists\Components\TextEntry`

### Shipping and Transactions

* `extendShippingInfolist(): Infolists\Components\Section`
* `extendTransactionsInfolist(): Infolists\Components\Component`
* `extendTransactionsRepeatableEntry(): Infolists\Components\RepeatableEntry`

## Extending the Order Items Table

The order items table can be extended separately by registering an extension for the `OrderItemsTable` component:

```php theme={null}
use Lunar\Admin\Support\Facades\LunarPanel;

LunarPanel::extensions([
    \Lunar\Admin\Filament\Resources\OrderResource\Pages\Components\OrderItemsTable::class => OrderItemsTableExtension::class,
]);
```

### Available Methods

| Method                                  | Description                                           |
| :-------------------------------------- | :---------------------------------------------------- |
| `extendOrderLinesTableColumns(): array` | Customize the columns displayed for order line items. |
| `extendTable(): Table`                  | Customize the full order items table configuration.   |
