Magento: Set items out of stock if not using inventory - how?

Magento: Set items out of stock if not using inventory - how?

October 6, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento: Set items out of stock if not using inventory - how?

Magento: Setting Products Out of Stock Without Inventory Management

As a developer working with Magento, you may find yourself in situations where clients don’t require sophisticated inventory tracking but still want to manage stock levels manually. In this guide, we’ll explore how to set products as out of stock without using the built-in inventory management system.

Understanding the Problem: Disabling Products vs Setting Out Of Stock

By default, Magento provides a simple “Enable/Disable” toggle for products in the admin interface. However, enabling this feature has significant drawbacks:

  • The product disappears from category views and search results.
  • Customers won’t see the product listing, even if it’s normally stocked.
  • There’s no way to indicate that the item is temporarily out of stock.

To address these issues without resorting to complex customizations or third-party extensions, we can leverage Magento’s built-in “Manage Stock” settings along with some strategic configuration.

Setting Up the Solution: Enabling Stock Management

  1. Navigate to the admin interface and select a product you want to manage manually.

  2. In the left sidebar, click on Inventory. Then, choose the first option Manage Stock.

  3. On this page, set the following fields:

    • Use Config Settings > No
    • Backorders > Allow Qty Below 0
    • Enable Qty Increments and specify a value (e.g., 1)
    • Set Minimal Qty Allowed in Stock to 0
  4. Click on the Save Changes button.

This configuration allows you to manually set the stock quantity for each product without enabling automatic inventory updates or low stock alerts.

Manually Setting Products Out Of Stock

With the above settings enabled, you can now set products as out of stock by following these steps:

  1. Go back to the Inventory section and click on Stock Availability.

  2. In the drop-down menu next to Is In Stock, select No.

  3. Save your changes.

Now, even though the product is not using Magento’s inventory management system for reordering or alerts, it will still appear as out of stock in the frontend. The “Add to Cart” button will be disabled, and customers can see that the item is temporarily unavailable while browsing categories or search results—exactly what you’re looking for.

Advanced Configuration: Showing Out Of Stock Products with Disabled Buy Button

If you want to take this a step further and display out of stock products with a disabled “Add to Cart” button in search results, follow these instructions:

  1. In the admin interface, navigate to Stores > Settings > Configuration.

  2. Expand Catalog and click on Inventory.

  3. Find the field called Display Out of Stock Products (under the Products Display section).

  4. Set this option to Yes.

  5. Save your changes.

This setting ensures that out of stock products remain visible in search results, categories, and the layered navigation menu, but with a grayed-out “Add to Cart” button indicating that they’re temporarily unavailable.

Conclusion: Managing Stock Levels Manually in Magento

In this guide, we’ve explored how to set products as out of stock without relying on Magento’s inventory management system. By strategically configuring your product settings and enabling manual stock management, you can provide customers with a clear indication of availability while preserving the visibility of temporarily unavailable items.

Remember that this approach is suitable for small businesses or specific use cases where complex inventory tracking isn’t required. For larger enterprises, it’s recommended to leverage Magento’s built-in features or consider third-party extensions like those offered by Laravel Company.

As a developer, understanding these configurations will help you meet your clients’ needs more effectively while keeping their Magento implementations clean and efficient.

Happy coding!

Catalog Extensions Admin Configuration

Our network