# Understand how XFlow works XFlow helps your Shopify store make sales from products you can't sell right now. Learn the two things it does and the parts that make them work, so setup feels familiar. ## What XFlow does XFlow has two goals. You can use one or both. * **Back in stock:** shoppers sign up on a sold-out product, and XFlow sends them an alert when it is available again. * **Pre-order:** shoppers order a sold-out or upcoming product now, pay in full or a deposit, and you ship when stock arrives. ## How back in stock works Back in stock runs on three parts that work together. | Part | What it does | | ------------------ | ------------------------------------------------------------------------------------------------------------- | | **Campaign** | Decides which products are included, when it runs and which workflow it uses. | | **Workflow** | Decides what happens when a product is restocked, such as sending an email, waiting, then sending a reminder. | | **Email template** | Is the email shoppers receive. A workflow that sends an email uses the template you select. |
Here is what happens in real life: * A product is out of stock. * A shopper signs up with the **Notify me** button. * You restock the product. * The campaign detects the restock and starts its workflow. * XFlow sends the email template to the shopper. Start with one Global restock campaign, then add campaigns only for products that need a different workflow. ## How pre-order works * **You create a campaign** with the products, when it runs, the ship date, how shoppers pay and how orders are fulfilled. * **The campaign goes live.** Your products show a **Pre-order now** button instead of **Add to cart** or **Sold out**, with the ship date under it. * **A shopper pre-orders.** The order lands in Shopify Orders with the `pre-order` tag, and the shopper gets a **Pre-order confirmation** email. * **If the shopper paid a deposit,** the rest is a balance with a due date that you collect later. * **Stock arrives.** You release and fulfill the orders. ## Where to see your results Your Home dashboard shows sign-ups, orders and revenue for back in stock and pre-order in one place. ## Related articles Complete your onboarding checklist Campaigns Workflows Pre-order overview