Hide sold out products with multiple locations

I really need a solution for this issue:

If I want to hide sold out products within a collection, I use “inventory > 0” as an additional collection condition in settings. So I use for example 2 conditions, product title contains “shirt” AND “inventory > 0”.

This worked totally fine, until I changed my POS store to shopify POS.

Now, if a product is sold out in my online-shop location, but it is still available in my POS location, the product remains inside my collection. That’s a big struggle and sth that I really need to change.

Apps that hide products from collection that I checked either set the product to draft or they disable the sales channel. This means, as long as the product is sold out, the URL does not exist and Google will deliver a 404 error. This is for sure not an option, as it will completely destroy my SEO. The page needs to remain. If a costumer finds the page through google search, the product page should show “sold out” as it is standard now.

I really hope someone has a solution for this.

I solved the issue by using Shopify flow. I delete a certain tag from the product if all variants of this product are sold out in my online location. As an additional condition in my collections, this tag needs to be in the product if it should be listed in the collection. When the product is back in stock in my online location for at least one variant, I add this tag. Works perfectly!