# Shopify Multi Locations Setup

## <mark style="color:$primary;">**What are Shopify Locations?**</mark>

A location is any physical place or in-app digital space where you do any or all of the following activities:

* Sell products.&#x20;
* Ship or fulfill orders.
* Stock inventory.

You can set up multiple locations in your Shopify store for managing stock at different levels, tracking inventory, and fulfilling orders from each location. For example, you can have one location in the US and one location in the UK, with two different stock numbers available.

Refer to [this article](https://help.shopify.com/en/manual/fulfillment/setup/locations/setup) to set up your Shopify locations.

## <mark style="color:$primary;">**Syncing data from Shopify Locations to Sales Channels**</mark>

\
You can choose a specific location in the Channel Settings to sync its data to your Sales Channel. Once selected, data will flow directly from that location to your channel accordingly.

<figure><img src="/files/SOJm34jw9spgrncBxlqY" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**If `Import Orders to Main Store` is enabled, channel orders will be imported and created on the Shopify Location specified in the Channel Settings.**
{% endhint %}

## <mark style="color:$primary;">**Creating products on the Shopify Main Store**</mark>

Since marketplaces do not support multi-locations, when creating listings from the Sales Channel to the Shopify Main Store using LitCommerce, you will need to specify a location where you want to create the product.

<figure><img src="/files/OjMvfvfaYiKgYkGlq6EN" alt=""><figcaption></figcaption></figure>

## <mark style="color:$primary;">**Processing Quantity for Orders from Channels on Shopify Location**</mark>

### <mark style="color:$info;">**On Shopify**</mark>

When orders are generated from a Sales Channel and imported into Shopify, Shopify prioritizes the processing of quantities in the following order:

* Based on the priority level of the location (set in Shopify admin → Settings → Shipping and Delivery → Order Routing)

<figure><img src="/files/4NU6lbN4VcAHnPDiogEm" alt=""><figcaption></figcaption></figure>

* Based on the remaining quantity in each location. If none of the locations have sufficient quantity, then the location with the highest priority level will be selected.

For example, let's consider a scenario where Shopify has three locations set up, with the following quantities and priority level:&#x20;

* Location Default: 10 in stock
* Location 1: 15 in stock
* Location 2: 3 in stock.

**Case 1:** If the quantity in the order is less than or equal to 10, the order will be picked up from Location Default.

**Case 2:** If the quantity in the order is greater than 10 but less than or equal to 15, the order will be picked up from Location 1.

**Case 3:** If the quantity in the order is greater than 15, the order will be picked up from the Location Default. However, after the order is processed, the quantity in the default location will be negative. This is Shopify's default order processing method.

Additionally, after importing orders to Shopify, you can change the Location that you would like to sync the order to.

<figure><img src="/files/HRFZT5JyQ3SFjVjripkA" alt=""><figcaption></figcaption></figure>

### <mark style="color:$info;">**On LitCommerce**</mark>

If no Shopify location is selected in the Channel Settings during [setup](https://litcommerce.gitbook.io/litcommerce-helpdesk/marketplace-integration/marketplace-integration/supported-platforms/shopify/shopify-multi-locations-setup#syncing-data-from-shopify-locations-to-sales-channels) and an order is placed, LitCommerce will automatically sync the order to the locations according to the priority order set on Shopify.

* Based on the priority level of the location.
* Based on the remaining quantity in each location.

Applying to the example above, when an order occurs, Shopify would typically select the Location Default for syncing.&#x20;

However, if this location is excluded from the `Sync from Shopify Location` option and only Location 1 and Location 2 are selected, LitCommerce will not process the quantity from Location Default and use inventory from Location 1 instead, following the priority rules defined in your Shopify settings.

In case the order has 17 in quantity, LitCommerce will handle this in order to avoid negative quantities. The tool will take 15 from Location 1 and 2 from Location 2 (if available).&#x20;

If the order has 19 in quantity and taking inventory from all locations is not enough, LitCommerce will deduct from Location 1 due to the priority rule, resulting in a negative quantity of -4 in Location 1.

If you have any questions, let us know via the Chat Box in the bottom-right corner of our Help Center.


---

# 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://help.litcommerce.com/marketplace-integration/supported-platforms/shopify/shopify-multi-locations-setup.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.
