I tried to follow it but the code on my product file looks different. I found it under Sections>main-product.liquid. And the code for the quantity part looks like this:
{%- when 'quantity_selector' -%}
It’s different from the thread I linked above so I tried it and it didn’t work. How can I make this happen? I want the quantity box gone only when there is just one item in stock to make the navigation make more sense. I am using the Studio theme, it’s a 2.0 store if that helps resolve this.
Hi there, thank you for replying! None of my products have variants at the moment. But I just tried adding these two lines where you instructed and it didn’t work unfortunately. The quantity box still shows on the product pages of all products (including the ones that only have one item in stock). Any other suggestions?