# Price Lists

# How do I resolve custom price lists?

To resolve custom price lists you can create a customer group in the Admin and create price lists that are only available for customers in that group.

First, create a setting for this customer group so that you can easily access it in code:

```php
\Aero\Common\Facades\Settings::group('acme', function (\Aero\Common\Settings\SettingGroup $group) {
    $group->eloquent('customer_group', \Aero\Account\Models\CustomerGroup::class)->dontLoadModel();
});
```

Then add the logic to conditionally resolve price lists from this group for a customer instead of their own:

```php
\Aero\Common\Models\PriceList::addCustomerGroupResolver(function () {
    if (! session()->has('newsletter_subscriber')) {
        return null;
    }

    // The customer group id
    return setting('acme.customer_group');
});
```

<div id="bkmrk-">---

</div>### Parameters

<table border="1" id="bkmrk-parameter-type-descr" style="border-collapse: collapse; width: 100%; height: 135.984px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Parameter**</td><td style="height: 29.7969px;">**Type**</td><td style="height: 29.7969px;">**Description**</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`$customer`</td><td style="height: 29.7969px;">`?\Aero\Account\Models\Customer`</td><td style="height: 29.7969px;">The currently authenticated customer.</td></tr></tbody></table>