How can I hide items when they're out of stock?

Hi there,

I am wanting to hide out of stock items when they go out of stock and once they’ve been restocked to show them again.

Any help is very appreciated! :slightly_smiling_face:

Hi @MattyCeravolo , can you share your store url?

Of course!

www.scooterbarn.com.au

@MattyCeravolo , go to your theme.liquid file and add this code at before the tag:

{% unless product.available %}
    
{% endunless %}

Hi @MattyCeravolo ,
This is Theodore from PageFly - Shopify Page Builder App.
For solving the problem about Hide Out Of Stock Items, let’s try this solution:
Online Store ->Theme ->Edit code → card-product.liquid

{% unless product.available %}
    
{% endunless %}

I’ll be so happy if my suggestion can help to solve your problem. If you have any further questions, please feel free to tell me.
Best regards,
Theodore | PageFly