Magento: Set a product to not be visible in search or catalog but the url still exist

Magento: Set a product to not be visible in search or catalog but the url still exist

July 17, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento: Set a product to not be visible in search or catalog but the url still exist

Managing Discontinued Products in Magento: A Hidden yet Accessible Solution

In the dynamic world of e-commerce, it’s common for businesses to discontinue certain products while still wanting to maintain their online presence and URLs. This is particularly crucial when these discontinued items have SEO value or are referenced elsewhere on your site. As a seasoned Magento developer at Laravel Company, I’m here to guide you through this common scenario.

Understanding the Visibility Options in Magento

Before we dive into the solution, let’s quickly review the visibility options available for products:

  • Catalog: Product is visible on category pages.
  • Search: Product appears in search results.
  • All: Product is visible everywhere (catalog + search).
  • Not Visible Individually: Product is not visible anywhere.

The Simple yet Effective Approach

You’re right on track with your initial thought - setting the product’s visibility to “blank” can effectively hide it from both the catalog and search results. Here’s how you can implement this:

  1. Navigate to Admin > Catalog > Manage Products.

  2. Select the discontinued product(s).

  3. Click on “Edit” in the top right corner.

  4. In the General tab, scroll down to find the Visibility field.

  5. Set it to “Not Visible Individually”.

  6. Click “Save” or “Save and Continue Edit” to apply the changes.

This approach ensures that while your discontinued product’s URL remains intact (as URLs are not governed by visibility settings), it won’t clutter your catalog or search results. The product will still exist in your Magento system, but customers won’t see it unless they access it directly via the URL.

Configuring Out-of-Stock Products

As Clockwork rightfully pointed out, this behavior is actually a default functionality of Magento when configured properly. To ensure this works seamlessly:

  1. Go to Admin > Stores > Configuration > Catalog.

  2. Scroll down and find the Inventory section.

  3. Under Stock Options, set Display Out of Stock Products to “No”.

  4. Click “Save Config” at the top right corner.

By default, Magento will hide out-of-stock products from both catalog and search results while keeping their URLs intact - a perfect solution for your discontinued items scenario.

The Benefits of This Approach

This method offers several advantages:

  • SEO Preservation: Keeping the URL allows you to maintain any existing backlinks or SEO value.
  • Clean Interface: Your site remains uncluttered, providing a better user experience.
  • Ease of Implementation: It’s straightforward and doesn’t require complex coding.

Conclusion: A Hidden Treasure for Discontinued Products

In summary, setting your discontinued products’ visibility to “Not Visible Individually” in Magento is a clean, efficient way to manage their online presence. By combining this with the out-of-stock product configuration, you can effectively hide them from customers while preserving their URLs.

Remember, at Laravel Company, we specialize in helping businesses like yours maximize their e-commerce platforms’ potential. If you have any questions or need assistance with more complex Magento scenarios, don’t hesitate to reach out!

Catalog Admin Configuration SEO

Our network