Themekit: Custom build collection wont show out of stock

Hi all,

We’ve got a custom build and when we put a product out of stock, it still shows as ‘add to basket’ in the collection feed- and shows this https://livias.co.uk/cart/add

https://livias.co.uk/collections/all

Does anyone know a solution?

Thanks

Hi @Astre123 ,

Please change code here:

code:

{%- if product.available -%}
        {%- assign text_button = 'ADD TO BAG'-%}
      {%- else -%}
        {%- assign text_button = 'SOLD OUT'-%}
      {%- endif -%}
      

Thank you so much!