A user is seeking to automate the visibility of a page section on their Shopify store’s events page. Currently, they manually toggle a “coming soon” rich text section based on whether their “events” collection contains products.
Desired behavior:
Show “coming soon” section when the events collection is empty (no upcoming events)
Hide the section when 1+ events are available for ticket purchase
Current situation:
Manual hiding/unhiding is required
Looking for an automated solution to handle this dynamically
The user provided their store URL for reference. This appears to be a theme customization question requiring conditional logic based on collection product count.
Summarized with AI on October 29.
AI used: claude-sonnet-4-5-20250929.
Hi, I have a collection page called “events”, with the collection “events”, which allows users to purchase tickets to events if there are upcoming events.
There is a rich text section “coming soon”, which should appear when the event collection is empty (no available future events, old events expired), and disappear when the collection has 1 or more events (new events available for buying tickets for).
for now we are manually hiding/unhiding, is there a way to automate this?
Yes — this can be automated using a small Liquid condition on your “events” collection page template.
You can make Shopify automatically show the “Coming Soon” message only when the collection is empty, and hide it when any product (event) exists.
Here’s how to do it step-by-step
Option 1 — Quick Code (No App Needed)
In your Shopify admin, go to
2.Online Store → Themes → Edit code*.
Open your collection template file — usually:
sections/main-collection-product-grid.liquid
or if you use a custom one for events:
templates/collection.events.liquid
Find where your collection grid or product loop starts. It usually looks like:
{%- if collection.products_count > 0 -%}
Right above or below that, add this code snippet:
{% if collection.handle == 'events' %}
{% if collection.all_products_count == 0 %}
<div class="coming-soon-message" style="text-align:center; padding:40px;">
<h2>Coming Soon</h2>
<p>Stay tuned for upcoming events!</p>
</div>
{% endif %}
{% endif %}
You can replace the text and styling as you like.
This message will only appear if the collection is empty.
Option 2 — Use Your Existing “Rich Text” Section
If your “Coming Soon” message is already a section in Customize, and you don’t want to delete it:
Wrap that section’s include tag inside a condition: