Stop Empty Collection from going to 404

New Member
1 0 0

I have an empty collection that's seasonal.  Currently, it just goes to a 404. I'd like to actually have an if statement on the product.type and put a message but I don't know where this needs to happen.  Is that on the collection template? or on the 404 template? Is this the appropriate code?


{% if product.type == "Lamb" and collection.products_count < 1 %}

Our Lamb is seasonal from August through October, please subscribe and we\'ll let you know when we have it in stock. 

{% else %}
There are products on this page.

{% endif %}

Hi @douglaskarr 


Shoot me a message below and I'll fix this for you



Clayton Bates 

P.S If you want a awesome , extremely detailed , Free website review check out the below link

P.P.S If you want to view VIDEO TESTIMONIALS from our awesome clients check out the above link.