The "Automatic Product Archiving" module solves a simple yet painful problem for any OpenCart store: what to do with out-of-stock items. Instead of showing customers empty cards and lists, the modification automatically removes products with a quantity of 0 from the storefront and subtly changes the behavior of buttons on the product page. As a result, the catalog looks vibrant, the search results are cleaner, and conversion rates aren't impacted by "dead" results.
Purpose of the module
The module "archives" out-of-stock products at the catalog display level: such items are not included in categories, search, promotions, recommended, and other standard display modules. If a customer does open a product page via a direct link, the module will display a clear status and block the purchase.
What does the modification do: main functions
- Filters products by availability only items with quantity > 0 are displayed in the showcase.
- Disables purchasing on the product page when the balance is zero: the button becomes unavailable.
- Hides options for out-of-stock products to avoid misleading customers.
- Filters related products (Related): only those that are in stock are left.
- Filters showcase modules Bestseller, Featured, Latest, Special - without products "zero".
- Corrects pagination if there are no products left on the page after filtering, the page is correctly reset to 1, without empty results or broken pages.
- Adds status text for out-of-stock items (RU/EN/UA): instead of "Buy," a clear message is displayed.
- Exception for google_sitemap: the module removes the presence condition from the sitemap export so that the sitemap does not become “thinner” due to the remaining content
Important: This module does not delete products or change inventory in the admin panel. It functions as a "smart storefront filter": the product remains in the database but does not interfere with sales until it's out of stock.
Benefits for the store
- A catalogue without junk the buyer sees only what is actually available for purchase.
- Fewer bounces visitors don't waste time on pages where there's nothing to order.
- A neat product card the purchase button changes to the "Discontinued" status (for ru-ru), and the options are hidden.
- Stable navigation Pagination fixes prevent blank pages after filtering.
- Template compatibility there are edits for twig and tpl, uniShop2 is taken into account separately (hiding quick order).
| Characteristics |
| OpenCart | 3.0 |
| PHP | 7.0 – 8.5 |
| XML modification | Yes |
| Localization | English, Ukrainian, Russian |

Leave your review about this product