Flow for archiving specific products

Flow for archiving specific products

Rileyed
Tourist
7 0 1

Hi! I set up the pictured flow to archive specific products in my shop when

  • the total available inventory is equal to 0
  • [and] the variant is set not to oversell 
  • [and] and the product is not tagged with "RegistryRoom"

The flow is working as it should, however I would like for the archiving action to take place when the total Unavailable, Committed, Available, and On hand inventory numbers are equal to 0. Meaning that all orders for a variant have been fulfilled, the item is sold out, and there are no negative inventory discrepancies. 

 

I would appreciate any insight! Thanks! 

 

Screenshot 2025-01-03 at 10.16.57 AM.png

 

Reply 1 (1)

rajweb
Shopify Partner
827 71 157

Hey @Rileyed ,

It sounds like you want to refine your flow to ensure that the product is archived only when its total inventory numbers across different categories (Unavailable, Committed, Available, and On Hand) all equal zero. Currently, it seems like the flow is working based on a simpler condition, but you need to incorporate these multiple factors to make sure the product is fully out of stock in every sense, without any discrepancies.

Here's what you can do:

1. Custom Inventory Conditions: You need to check all the inventory quantities (Unavailable, Committed, Available, On Hand) together. Shopify flows might not natively expose these exact fields directly for conditions. However, if you're using an app like Shopify Flow (or any other app that can handle inventory management), make sure that it provides a way to access these specific inventory values.

2. Inventory Check: You might need to add multiple conditions to the flow. For example:

- Check if Available Inventory is 0.

- Check if Committed Inventory is 0..

- Check if Unavailable Inventory is 0.

-Check if On Hand Inventory is 0.

3. Remove Negative Inventory: Ensure that your products are not overselling or showing negative inventory. To do this, in Shopify settings, you can disable the Allow customers to purchase when out of stock option and avoid any inventory discrepancies.

4. Using Metafields or Tags for Discrepancy Tracking: If Shopify doesn't allow you to check these specific inventory numbers in the flow, you might want to track this with custom metafields or tags. For example, if all your conditions are met, a metafield can be updated to mark the product as "Ready to Archive" or something similar. You can then trigger the archiving action based on the metafield or tag.

5. Manual or Automated Check: If you cannot access all of these inventory numbers through Flow, you could consider creating a more manual process for inventory management that updates products when discrepancies are resolved or when certain thresholds (like all inventory values being zero) are met.

6. If you're using an app like Shopify Flow, it may not give direct access to all those inventory statuses, so exploring custom development or using a third-party app with deeper inventory management might be required.

Let me know if you need specific help with the app or flow setup!

Please feel free to contact me via email if you need further assistance—I’d be happy to help you! [rajat.shopify@gmail.com]
If I was able to help you, please don't forget to Like and mark it as the Solution!
Thanks. 😊

Rajat | Shopify Expert Developer
Need a reliable Shopify developer for your next project?
Our App: Productify Groups App
Email: rajat.shopify@gmail.com
Portfolio: https://rajatweb.dev