How do i remove 'availability in stock' display from magento category view

How do i remove 'availability in stock' display from magento category view

July 20, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How do i remove 'availability in stock' display from magento category view

Removing ‘Availability In Stock’ Display from Magento Category View

Handling stock management is an essential aspect of running an e-commerce store on Magetno. However, there may be situations where you want to display all products regardless of their stock status, without showing the ‘Availability: In Stock’ message in search results, category views, and brand lists.

Disabling Stock Management

The first step is to disable Magento’s native stock management by navigating to Stores > Configuration > Inventory > Stock Options and setting Enable Stock Management to “No”. This will ensure that all products are displayed even if they are out of stock. However, this change alone won’t remove the ‘Availability: In Stock’ message from the aforementioned views.

Customizing Category View

To customize the category view and remove the ‘Availability: In Stock’ message, you need to modify the following file:

  1. Navigate to your Magento theme directory (e.g., app/design/frontend/theme_name/default/template/catalog/category/view.phtml).

  2. Open the view.phtml file in a text editor.

  3. Locate the line that contains the ‘Availability: In Stock’ message, which should look something like this:

<div class="stock availability">
    <span><?php echo $this->__('Availability') ?>:</span>
    <?php if ($stockStatus == 1): ?>
        <span class="available"><?php echo $this->__('In stock') ?></span>
    <?php endif; ?>
</div>
  1. Comment out or delete the entire <div> section containing the ‘Availability: In Stock’ message.

  2. Save your changes and clear your Magento cache for the modifications to take effect.

This will remove the ‘Availability: In Stock’ message from category views within your theme.

Customizing Search Results

To customize search results and remove the stock availability message, you need to modify the following file:

  1. Navigate to app/design/frontend/theme_name/default/template/catalog/product/list.phtml.

  2. Locate the line that contains the ‘Availability: In Stock’ message for search results.

  3. Follow the same steps as above (steps 3-5) to remove or comment out the relevant section.

  4. Save your changes and clear your Magento cache.

Conclusion

By following these steps, you can successfully remove the ‘Availability: In Stock’ message from category views, search results, and brand lists in Magento. This is especially useful if you want to display all products regardless of their stock status while maintaining a clean and uncluttered user interface.

Remember that customizing the theme files directly may overwrite your changes during updates. To prevent this, consider creating a child theme or using a module to apply these modifications safely.

For more advanced customization options and best practices in Magento development, feel free to explore our resources at Laravel Company.

Catalog Themes Configuration

Our network