Update Product Status When Variant Goes Out of Stock

Update Product Status When Variant Goes Out of Stock

7 min setup
No coding required
Runs automatically

Effortlessly manage inventory and avoid overselling by automatically updating a product’s status when one of its variants goes out of stock. This MESA workflow template helps keep your product listings accurate, ensuring customers are informed of current availability. Minimize the risk of disappointing customers and streamline inventory management with real-time updates on product availability.

Use this template → Related article
Variant Out of Stock
Retrieve Product
Number of matches
Filter
Update Product
Unpublish Product or Collection

You're in good company

"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."

PetFriendly

"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."

Zailys

"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"

Rothy's

How it works

6 steps to start automatically updating product status when inventory runs out

Variant Out of Stock

App connector: Shopify • Time to complete: 0 minutes (Auto-configured)
Why this matters: This monitors your Shopify store for any product variant that goes out of stock, instantly triggering the workflow to take action.

This trigger automatically detects when any product variant in your store reaches zero inventory. Once activated, it captures the variant details and product information needed to update the product status. The trigger runs continuously in the background, so no manual monitoring is required. It passes the out-of-stock variant data to the next step for product retrieval.

Retrieve Product

App connector: Shopify • Time to complete: 0 minutes (Auto-configured)
Why this matters: This step fetches the complete product information needed to check other variants and make updates to the product listing.

The workflow automatically retrieves the full product details using the product ID from the out-of-stock variant. This includes all variants, inventory levels, product description, and current status information. No configuration is needed as it uses the product ID from the trigger. The retrieved product data gets passed to the counting step to analyze remaining inventory across all variants.

Number of matches

App connector: Loop • Time to complete: 0 minutes (Auto-configured)
Why this matters: This counts how many variants of the product still have inventory available to determine if the entire product should be marked as out of stock.

This loop examines all variants of the product and counts only those with inventory quantity greater than zero. The counting logic filters through each variant's inventory level automatically. If the count reaches zero, it means all variants are out of stock and the product should be updated. The final count number determines whether the workflow continues to the next filtering step.

Filter

App connector: Filter • Time to complete: 0 minutes (Auto-configured)
Why this matters: This acts as a decision point that only allows the workflow to continue updating the product if all variants are truly out of stock.

The filter checks if the variant count from the previous step is less than or equal to zero. Only when this condition is true (meaning no variants have inventory) does the workflow proceed to update the product. This prevents premature updates when some variants are still available for purchase. If variants with inventory exist, the workflow stops here without making changes.

Update Product

App connector: Shopify • Time to complete: 1 minute
Why this matters: This modifies the product description to inform customers about the out-of-stock status while preserving the original content.

The workflow appends an out-of-stock message to the existing product description in your Shopify store. The default message "This product is currently out of stock, please check back soon!" gets added to the end of your current product description. You can customize this message by editing the text in the body_html field. The updated description immediately appears on your storefront to inform customers.

Unpublish Product or Collection

App connector: Shopify • Time to complete: 2 minutes
Why this matters: This removes the out-of-stock product from your chosen sales channel to prevent customers from seeing unavailable items.

This step unpublishes the product from a specific sales channel that you select during setup. You'll need to choose which publication (like your Online Store, Facebook Shop, or other sales channels) to unpublish from by entering the publication ID. The product remains in your Shopify admin but becomes hidden from the selected storefront. You can find publication IDs in your Shopify admin under Sales Channels settings.

Ready to set this up? It only takes 7 minutes.

Our support team will even help you personalize this workflow for free.

Get started →

Make it your own!

Customize this workflow even further:

Set restock notifications
Add email or SMS steps to notify your team when products go out of stock, so you can prioritize restocking popular items.
Create customer waitlists
Connect to email marketing tools to automatically add interested customers to a waitlist and notify them when items are back in stock.
Update multiple sales channels
Expand the unpublishing step to remove products from Facebook, Instagram, Google Shopping, and other connected sales channels simultaneously.
Track inventory patterns
Store out-of-stock events in spreadsheets or databases to analyze which products run out most frequently and optimize your purchasing decisions.

Common questions

Can I customize the out-of-stock message that gets added to product descriptions?

What happens if I want to unpublish from multiple sales channels at once?

Will this workflow trigger if I manually set inventory to zero for testing purposes?

Ready to start automatically updating product status when inventory runs out?

7-day free trial • 7 min setup • Cancel anytime

Start with this template — It's free

Need help? Our automation experts will help you personalize this workflow for free. Contact support