# Show pre-orders by market with Markets & locations When Markets & locations is turned on, XFlow decides whether to show the **Pre-order** button based on the stock in the shopper's market, not the total stock of your store. This lets you take pre-orders only in the markets that have run out, while shoppers in markets that still have stock continue to buy normally. This article explains how market stock affects your pre-order campaigns and how to choose the markets a campaign applies to. To turn on the setting and assign inventory locations, see [Count stock by market with Markets & locations](https://docs.foxecom.com/xflow-app/store-management/count-stock-by-market-with-markets-and-locations). ## How XFlow decides when to show the Pre-order button in each market XFlow identifies the shopper's market from their country, then counts the stock only from the locations assigned to that market. The **Pre-order** button appears when all three conditions are met: * **Track quantity** and **Continue selling when out of stock** are enabled for the variant in Shopify. * An active pre-order campaign includes the variant and the shopper's market. * The stock in the shopper's market matches the campaign's display setting, for example **When out of stock**. The table below compares how the button behaves with the setting off and on. | Markets & locations | How XFlow shows the Pre-order button | | ------------------- | ---------------------------------------------------------------------------------------------------------------- | | **Off** | Based on the stock from all locations that fulfill online orders. Shoppers in every market see the same button. | | **On** | Based on the stock of each market. Shoppers in different markets can see different buttons for the same variant. |
You assign a US warehouse with 10 units to the United States market and a Vietnam warehouse with 0 units to the Asia market, and your campaign includes both markets with **When out of stock**. Shoppers in Asia see **Pre-order**, while shoppers in the United States see **Add to cart**. ## What shoppers see in a market that the campaign does not include If a market is out of stock and is not included in the product's pre-order campaign, XFlow replaces **Add to cart** with a disabled **Out of stock** button for shoppers in that market. This change applies only to the storefront display and does not change your inventory settings in Shopify. ## Choose the markets for a pre-order campaign After you turn on Markets & locations, each pre-order campaign has a **Markets** section where you choose the markets it applies to. 1. Open your pre-order campaign. 2. Go to the **Markets** section, directly below **Products**. 3. Choose **All markets** or **Specific markets**. 4. Select the markets to include, if you chose **Specific markets**. Each market displays the inventory locations XFlow counts for it. 5. Click **Save**. ![Markets section in a pre-order campaign, with the All markets and Specific markets options](https://docs-assets.foxecom.app/xflow-app/66e59654-00fb-4def-bc25-74b937f1582f.png) When Markets & locations is off, every campaign runs in **All markets**, and the **Markets** section shows a link to turn the setting on. To learn about the other campaign settings, see [Create a pre-order campaign](https://docs.foxecom.com/xflow-app/pre-order/create-a-pre-order-campaign). XFlow does not verify which locations ship to a market. Assign only the locations that ship to each market, so that shoppers do not pre-order stock that cannot reach them. ## FAQs about pre-orders and Markets & locations The shopper's market still has stock, or the campaign does not include that market. Check the locations assigned to the market and the **Markets** section of the campaign. None of the locations assigned to that market fulfill online orders. Turn on **Fulfill online orders** for the location in Shopify, or assign another location to the market. ## Related articles Count stock by market with Markets & locations Create a pre-order campaign Pre-order: FAQs