Published on

Say Goodbye to Unwanted Inventory Numbers on Your Shopify Website

Authors
  • avatar
    Name
    Entaice Braintrust
    Twitter

Say Goodbye to Unwanted Inventory Numbers on Your Shopify Website

We’ve all been there, right? One minute you’re setting up your shiny Shopify store with dreams of e-commerce glory, and the next, you’re baffled by strange numbers popping up next to your collections. It’s like waking up to find mysterious crop circles in your backyard. And there I was, about to enjoy my morning cup of coffee, when a frantic call came through from my friend, Sarah, whose burgeoning online store had just sprouted inventory numbers like they were going out of style.

Sarah reminded me of our road trip days, when each pit stop held unexpected surprises. But this twist, my friends, wasn’t as thrilling as roadside ice cream in the middle of nowhere. "Why are there numbers next to my collections," she wondered, "and how do I make them disappear?"

Let’s explore the solution, like you might explore a dusty, secret aisle in a forgotten library – cautiously, with a touch of thrill and an air of adventure.

The Quest for a Cleaner Shopify Store

Ah, Sarah’s predicament got us diving deep into the digital jungle of her Shopify theme—bravely armed with nothing but curiosity and a sprinkle of caffeine. First, we checked whether the numbers were part of a default setting in her theme. Spoiler: they usually are.

Let’s unveil the path to reclaiming control over your website’s aesthetic.

Step 1: Navigate to Your Shopify Admin

Picture us sitting side by side in a cozy café, two laptops open, Sarah’s with a furious blinking cursor waiting for direction.

  1. Log into Shopify Admin. It's like scrolling through a virtual map of your kingdom, seeking the secret passage.

  2. Click on "Online Store" in the left-hand menu. This takes us closer to the heart of the beast (or rather, to where the magic happens).

Step 2: Delve into the Theme Customizer

You know that moment in detective shows where the protagonist finds the crucial piece of evidence? This feels just like that.

  1. Click "Themes". You should see your active theme displayed, like the hero on a stage waiting for applause.

  2. Select "Actions > Edit code". This is your metaphorical magnifying glass, allowing you to peer into the lines of code governing your site.

Step 3: Locate and Modify the Code

This is where we whip out our secret weapon: the ability to read and gently tweak code, like artisans of old chiseling away at a block of marble.

  1. In the list of theme files (on the left), find Sections and then the file that corresponds with your collections list. It's usually something like collection-template.liquid or list-collections.liquid.

  2. Search for Inventory Code. It might feel like finding a needle in a haystack, but here’s where Sarah’s detective instincts took over. Look for lines of code that refer to collection.product_count, or something similar. This is typically where the inventory numbers are called.

  3. Comment Out the Code by placing {% comment %} before and {% endcomment %} after the offending lines. Regal in its simplicity.

{% comment %}
    Item count display code here
{% endcomment %}

Step 4: Preview and Save

Ah, the moment of truth, where Sarah and I leaned back, expectant.

  1. Preview your changes to ensure those inventory numbers have taken a much-needed vacation—because who needs them lounging around on your pristine collection pages?

  2. Click "Save". Don't forget this last crucial step. It’s like sealing a letter with a satisfying wax stamp.


Our little digital adventure came to a joyful close. As Sarah watched her store revert to a clean, uncluttered state, her relief was palpable, much like that feeling when we solved our first escape room.

Wasn’t this a delightful detour in our digital journey? It’s moments like these—in the virtual nooks and crannies of our online spaces—that remind us of the charm and control we can have over technology. Here’s hoping your own Shopify escapade ends with triumph as sweet as Sarah’s! Go forth, fearless navigator, and craft the website of your dreams without those pesky numbers ever cramping your style.

And if another tech mystery crosses your path, remember: we’re just a friendly chat away. Happy designing!