charlie_inventory.available metafield instead.
Reference:
charlie_inventory.available (Product, Boolean, public namespace, same key on every store).Generic recipe
Every supported app exposes some form of attribute mapping. Find it and override it.Open the app's product attribute mapping
Look for the rule that sets
availability, stock, or in_stock.Switch the source
Change the source from Shopify’s native
product.available (or inventory_quantity) to the product metafield charlie_inventory.available (Boolean).Product feeds
Use a feed app or feed manager that supports sourcing theavailability attribute from a custom product metafield, then apply the generic recipe with charlie_inventory.available as the source.
Recommended app
Multiple Google Shopping Feeds (Multifeed) supports Google, Meta (Facebook & Instagram), Bing, Pinterest, Bol, and custom feeds, with metafield-based attribute mapping. One app covers most needs.Other feed apps and managers
The same recipe applies to any feed app or external feed manager (Simprosys, Flexify, Lengow, etc.) that exposes a custom product metafield as a source foravailability. If an app doesn’t expose that option, it can’t reflect safety stock. Switch to one that does.
Storefront search and filters
Shopify Search & Discovery
Replace the native Availability filter with a custom metafield filter.Open the Search & Discovery app
Open the Search & Discovery app from the Shopify Admin and go to its Filters section.
Add a metafield filter
Add a new filter sourced from the product metafield
charlie_inventory.available (True or false).charlie_inventory.available is product-level only. If you need variant-level “in stock” filtering, check whether your search app supports variant metafield filters. Search & Discovery currently doesn’t.URL parameter change
The URL parameter changes when you swap filters:| Filter | URL parameter |
|---|---|
| Native Availability | ?filter.v.availability=1 |
charlie_inventory.available | ?filter.p.m.charlie_inventory.available=1 |
Redirect old links (optional)
Add a synchronous script at the very top of<head> in layout/theme.liquid to rewrite old URLs before paint. No flash, no extra back-button entry.
Third-party search apps
For other search/merchandising apps (Boost, Searchanise, etc.), apply the same idea in the app’s filter or facet configuration:- Add a filter sourced from the product metafield
charlie_inventory.available - Label it In stock
- Disable the native availability facet
- Re-index if the app requires it
Smart collections
The same metafield works as a smart collection condition. Create a smart collection and add a condition matching the product metafieldcharlie_inventory.available equal to true.
Verifying
After configuring any of the above, pick at least one product currently held back by safety stock and confirm:- Feed exports show it as out of stock
- Collection filter excludes it when “In stock” is selected
- Smart collection excludes it
Troubleshooting
Metafield doesn't appear in Search & Discovery filter list
Metafield doesn't appear in Search & Discovery filter list
Search & Discovery only surfaces metafields that have been written at least once. Trigger an inventory update on any product, then refresh the Search & Discovery filter screen.
Feed still shows products as in stock after safety stock is applied
Feed still shows products as in stock after safety stock is applied
- Confirm the feed app actually reads
charlie_inventory.available, not Shopify’s nativeproduct.available. Check the attribute mapping. - Trigger a full re-sync in the feed app. Partial syncs may not pick up the new attribute source.
- Spot-check the product in Shopify Admin → Products → [Product] → Metafields and confirm
charlie_inventory.availableisfalsefor products held back.
Related
Metafields reference
All Charlie metafields and access methods
Theme integration
Display sellable inventory in your theme’s Liquid