Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hey @hapq95
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
Hi @hapq95
Are you looking to hide the product inventory for products inside a certain collection?
If so, your theme's code needs to be changed. First, you'll need to look for the code for the product inventory. Then, add a conditional like the one below in order to hide the product inventory of a product belonging to a certain collection.
{% assign collection_to_exclude = collections['collection-name'] %}
{% unless product.collections contains collection_to_exclude %}
code for the product inventory
{% endunless %}
After saving, that should hide the product inventory for products that belong to a certain collection. Be sure to change the code example I gave above as it will vary from theme to theme.
Hope this helps and if you have any questions, feel free to ask here or through my contact email below! 🙂👍
If you're uncomfortable with touching your theme's code because of instances where the theme might break, I'd be happy to do it for a fee. I'll make sure that the change we'll add doesn't break your theme and that the product inventory will hide according to your requirements. Let me know if you're interested via the comments or via my contact email below! 👌
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024