X Over 0 review for Shopify Search & Discovery
Aug. 25, 2024
The Availability filter does not work. For whatever reason, it displays the total product count instead of the inventory count AND it's not even recognizing variants, so it's completely useless. Outside of this app, the inventory counter is displaying correctly on the product page so obviously the problem is with this app. This availability filter code is no good. Hand coded filters used to work on Shopify but because of this newfangled junk, they don't anymore. This app has to be enabled for ANY filter to display - so you can get hand coded filters to show up, but they will only display error msgs, because Shopify 2.0 only accepts filter content from apps. I'm not a fan of chunking out useful features into a bunch of add-ons. UPDATE: found a source of incompatibility between this app and Shopify 2.0 free themes V 15.0. In facets.liquid, ALL filters print value.count. Value count = the number of product LISTINGS. This is only relevant to count by category, like qty of products that are t-shirts, qty of products that are hats, etc. This is entirely useless for inventory. I've managed to decouple the Availability filter from this irrelevant nonsense by using {%- if value.label contains "stock" -%}. However I've tried literally THOUSANDS of call combinations, logic, and assigns within this if clause and cannot get it to print the actual in stock inventory. I've been able to get it to print a fixed qty, or a (0), or a total product listings count, or even the total value of products in the cart. Anything but the inventory qty seems to work here. Please reply with the exact code needed for this to function properly. Thanks!!!! UPDATE #2: Thank you for responding but, that's honestly not an adequate solution whatsoever. As you pointed out, IT WILL NOT SUM, which means that will return a string of values that will read for example: "(4)(45)(9)(3)(1)(1)(3)(6)(2)(1)....etc." It could break the screen border with this nonsense. And it looks janky, which will bounce customers off the site instantly. AND your suggestion to do this as another layer of app bloat on the app sandwich is perfectly absurd. Let me know when Shopify is ready to give serious support and tell me how to CODE a reasonable solution into facets.liquid and it's associated .js and .css theme files. It's an embarrassing oversight on the part of Shopify that there is no availability filter that shows in stock goods vs out of stock goods (regardless if the out of stock can still be custom ordered). Site visitors should be able to easily filter products on this basis because it affects how quickly the product will be shipped. Is this really a condition Shopify wants it's sites to perform poorly on? Isn't that kind of contrary to the whole mission of good ui > good seo > good revenue? You have a feature that is not working as advertised. Please fix it or tell me how I can fix it IN THE THEME FILES WITH CODE. Don't come at me with any more apps, alternatives, or substitutes. I assure you I am either already employing them or have tested them and found them inadequate. UPDATE: Wait wait wait wait. So now I'm noticing that this app doesn't even use canonical URLS in the recommended products gallery! Are ya'll joking with this entire thing or what?
The availability filter shows a count of products that have variants available for purchase. As you correctly mention, this is not the inventory count you see in the admin. I assume you are looking for an inventory-based filter because you have your variants set to "continue selling when out of stock", which makes them all purchasable, even with zero inventory. If you're comfortable with coding, a possible solution is to create a custom variant metafield and use an app like Shopify Flow to update it whenever the variant inventory changes. i.e. Create a "In-stock" variant metafield of type boolean (true/false) for each variant, and update it whenever inventory is above 0. The storefront filter won't give you a total inventory count, but will allow shoppers to filter out variants without inventory.
Shopify Search & Discovery: Customize your storefront search