# B2B Features

Company aggregation combines draft orders from the logged-in customer, other contacts in the same company, contacts in specific company locations, or the entire company.

### Requirements

* Shopify Plus subscription
* B2B on Shopify features enabled
* Companies configured in Shopify admin
* Customers assigned to companies/locations
* Draft Order Magic customer account extensions installed

{% hint style="info" %}
B2B features are only available on Shopify Plus.
{% endhint %}

### Aggregation modes

**1. Personal only**

Shows only draft orders assigned to logged-in customer.

**2. Location-based**

Shows draft orders for all contacts in customer's location.

**3. Company-wide**

Shows draft orders for entire company (all locations).

### Configuration

1. Open Draft Order Magic
2. Go to **Customer Account Settings**
3. Select aggregation mode: Personal only, By location, or Company-wide
4. Save settings

You can set different modes for block extension and full page extension.

### Customer view

Draft order list shows:

* All draft orders per aggregation mode
* Draft order number
* Date created
* Assigned customer name
* Total amount
* Status

Customers can filter by contact, location, and sort by date, amount, or assigned contact.

### Permissions

Configure in Shopify B2B settings:

* **Admin** - Full access, can pay
* **Ordering** - Can view and order
* **Restricted** - View only

Customers can see draft order totals, line items, quantities, assigned customer name, and order status.

### Troubleshooting

#### Customer sees no company orders

* Verify customer is assigned to a company in Shopify
* Ensure aggregation mode is not "Personal only"
* Check draft orders are assigned to company contacts

#### Seeing orders from wrong locations

* Verify aggregation mode setting
* Check customer's assigned location is correct

#### Payment not working

* Verify customer has payment permission (B2B role)
* Check draft order is in "open" status


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://responsive-media.gitbook.io/draft-order-magic/customer-accounts/b2b-features.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
