Change Empty Collection Message

Change Empty Collection Message

bluebluedriver
Visitor
3 0 0

I would like to change the message when a collection is empty from the default "No products found." I was able to hide the note about changing filters but can't understand how to alter the actual default text. Ideally, I would like to be able to customize this note for different collections. Current collection in need of help is https://bluebluedriver.com/collections/one-of-a-kind.

 

Screen Shot 2024-07-31 at 11.22.52 AM.png

Replies 2 (2)

hassan1203
Excursionist
28 3 9

Hello @bluebluedriver ,

 

Welcome to the Shopify community. 

 

To customize the "No products found." message for different collections on your Shopify store, you will need to modify the theme’s Liquid templates. Here’s how you can achieve this:

Step-by-Step Guide:

  1. Access Your Theme’s Code:

    • In your Shopify admin, go to Online Store > Themes.
    • Find the theme you are currently using and click on Actions > Edit code.
  2. Locate the Collection Template:

    • Look for the file responsible for displaying collections. This is typically found in the Templates directory and might be named collection.liquid or in the Sections directory, often named collection-template.liquid.
  3. Find the Empty Collection Message:

    • Open the relevant Liquid file and search for the "No products found." message. It might look something like this:

 

<p>{{ 'collections.general.no_matches' | t }}</p>​

 

  • Customize the Message:

    • To customize the message for different collections, you can use conditional statements to display different messages based on the collection handle.
    • Example:

 

{% if collection.products_count == 0 %}
  {% if collection.handle == 'one-of-a-kind' %}
    <p>We currently don't have any one-of-a-kind items available. Please check back later.</p>
  {% else %}
    <p>No products found.</p>
  {% endif %}
{% endif %}​

 

 

  • Save Your Changes:

    • After making the necessary changes, save the file.

      Example Code:

      Here is a more detailed example of how to customize the message for different collections:

 

{% if collection.products_count == 0 %}
  {% case collection.handle %}
    {% when 'one-of-a-kind' %}
      <p>We currently don't have any one-of-a-kind items available. Please check back later.</p>
    {% when 'another-collection' %}
      <p>This collection is empty at the moment. Please explore our other products.</p>
    {% else %}
      <p>No products found.</p>
  {% endcase %}
{% endif %}

 

By following these steps, you can customize the "No products found." message for different collections on your Shopify store. If you need further assistance, feel free to reach out.

 

Best regards

Hassan | Ecommerce SEO Consultant | Digital Marketing Strategist
Let's chat more! Join me on Skype

Dan-From-Ryviu
Shopify Partner
11288 2212 2382

Hi @bluebluedriver 

You can change that text from store admin > Sale channels > Online Store > Themes, click "..." in current theme > Edit default theme content, search for your text and replace it

- Found this helpful? Hit "Like" and "Accept as Solution"! - Feeling generous. Buy me coffee!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify

Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.