Prompt
How do I stop recommendations from showing out-of-stock items?
Latest observation
Oct 16, 2026
OpenAI APIWeb search: off
If you’re talking about a store/recommendation system you control, the fix is usually:
-
Filter recommendations by inventory before display
- Only show items where
in_stock = true - Or where
available_quantity > 0
- Only show items where
-
Exclude variants that are unavailable
- For products with sizes/colors, make sure the specific variant recommended is purchasable
-
Update the recommendation source
- If recommendations are generated from a feed or search index, refresh it with inventory data frequently
- Remove or down-rank items that are out of stock
-
Add a fallback
- If the top recommended items are out of stock, replace them with similar in-stock items rather than showing blanks
-
Hide “backorder” if you don’t want it
- Some systems treat backorder/preorder as available; adjust the rule if you want only immediate availability
If you’re asking about a specific platform, tell me which one, and I can give exact steps.