Outlet Sale Automation for Magento 2
- Compatibility
- 2.4.9, 2.4.8, 2.4.7, 2.4.6, 2.4.5, 2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0, 2.3.7, 2.3.6, 2.3.5, 2.3.4
Description / Outlet Sale Automation for Magento 2
MAGENTO 2 · SALE · VARIANTS · AUTOMATION
An up-to-date outlet without manual catalog cleanup.
Kowal Outlet Products
Add products to a sale using an SKU list and keep the OUTLET category aligned with their availability. Manage variants, parent products, and special price copies in one process.
SKU import · Configurable products and variants · Prices and CRON
HOW IT WORKS IN PRACTICE
01 · You add an SKU list
You select the products and outlet categories.
02 · The module organizes the offer
It sets sale, assignments, and special price copies.
03 · CRON updates the outlet
It removes completed items and refreshes indexes and cache.
What does your store gain?
Explore the module features, use cases, and settings.
Discover the module
Kowal Outlet Products is a module for Magento 2 that automates the management of outlet products, sale items, and end-of-line inventory. The solution helps keep the catalog organized, assign products to the OUTLET category, mark them with a dedicated attribute, and remove them from the outlet when they should no longer be visible as a sale offer.
The module was created for stores where outlet products change dynamically: some are individual simple products, some are variants of configurable products, and some require support for multiple stores, multiple websites, and different price configurations.
Key business value
In standard Magento, managing an outlet often requires manually tracking several elements at once: category, product status, special price, stock levels, configurable variants, and cache. With a larger catalog, it is easy to end up with a product still appearing in OUTLET after it sells out, a configurable product parent remaining in the category without active variants, or a special price being restored in a way that does not match the store configuration.
Kowal Outlet Products organizes this process. The administrator can add an SKU list to the outlet, and the module handles assignment to the correct categories, setting the OUTLET attribute, supporting configurable parents, and later automatically detaching products after the sale ends.
Key features
- bulk import of products to OUTLET by SKU list,
- assigning products to one or more outlet categories,
- support for simple products and configurable product variants,
- automatic product marking with the
saleattribute, - assigning configurable parents to OUTLET when their variants are outlet products,
- automatic detachment of products from the OUTLET category after they sell out or their outlet status is disabled,
- detaching the configurable parent when no variant is still an OUTLET product,
- cyclical product checks via cron,
- manual recalculation from the Magento console,
- refreshing product and category indexes and cache,
- stock and backorder handling after the sale ends,
- backup and restoration of special prices,
- support for multistore configuration and website scope for prices,
- OUTLET labels next to variant swatches on the product page.
How the OUTLET process works
The administrator selects outlet categories in the module configuration. Then, from the admin panel, they can paste an SKU list and add products to the sale. The module assigns products to the OUTLET category and sets the sale attribute.
For configurable products, the module works on two levels. If a variant is an outlet item, the configurable parent can also be added to the OUTLET category so the customer can see the product in the listing. When the variant sells out or no longer has OUTLET status, the module checks whether the parent still has any active outlet variants. If not, the parent is detached from OUTLET.
The module cron regularly checks product status. When a product can no longer be sold, the module removes it from outlet categories, changes its outlet status, and refreshes data in indexes and cache. This keeps the OUTLET category listing up to date without manual administrator work.
Special price handling
The module can protect special prices from being lost during the OUTLET cycle. When a product is added to the outlet, the current special price is copied to technical attributes. After the outlet period ends, the price can be restored or cleared, depending on the configuration.
The backup includes:
special_price,special_from_date,special_to_date.
The module respects the Magento price scope. If prices are global, it works at the global level. If prices are set per website, the module saves and restores values according to the default store views of the websites. It does not perform currency conversions because Magento stores prices as base values for a given scope, while store currencies are converted by Magento mechanisms.
Multistore and multi-currency
Kowal Outlet Products can work in Magento installations with multiple store views and websites. During import, the administrator can specify the websites to which the product should be assigned. The module configuration is available at the default, website, and store levels, making it possible to adapt its operation to the store structure.
For special prices, the module does not multiply or convert values between currencies. It preserves the amounts saved in Magento for the appropriate price scope. This helps avoid errors caused by manual exchange rate conversion and leaves currency presentation to the standard Magento mechanisms.
Use case example
A store sells apparel and has an OUTLET category where it displays the last units of products from previous collections. The administrator receives a list of variant SKUs that should be included in the sale, for example:
TSHIRT-BLACK-MTSHIRT-BLACK-LJACKET-NAVY-XLSHOES-WHITE-42
After pasting the list into the import panel, the module:
- sets products as OUTLET,
- assigns them to the
OUTLETcategory, - assigns configurable product parents if their variants are outlet items,
- saves a copy of the current special prices,
- optionally updates stock settings,
- refreshes indexes and cache.
The customer sees products in the OUTLET category and labels next to variants. When the last unit of a variant is sold, the module cron detects that the product is no longer salable, removes it from OUTLET, and refreshes the listing. If it was the last outlet variant of a given configurable product, the parent is also removed from the OUTLET category.
Who this module is for
The module is designed for Magento 2 stores that:
- run a permanent OUTLET or SALE section,
- frequently work with end-of-line products,
- have configurable products with variants that have different sale statuses,
- want to reduce manual work when updating categories,
- need control over special prices in a multistore environment,
- want to avoid outdated products in category listings.
Technical elements
- Composer package name:
kowal/module-outletproducts - Magento module name:
Kowal_OutletProducts - CLI command:
bin/magento kowal_outletproducts:generate - Configuration panel:
Stores > Configuration > kowal > OUTLET Products - Import panel:
kowal > Upload Outlet Products - Main product attributes:
sale,special_price_copy,special_from_date_copy,special_to_date_copy,special_price_copy_active
Implementation result
After the module is implemented, the store receives a consistent outlet management process: products go to the correct categories, variants and parents are maintained logically, special prices are protected, and catalog data is refreshed after changes. This allows administrators to focus on selecting products for the sale instead of manually cleaning categories and cache.
Schedule and outlet end settings
A proven schedule runs the check every 5 minutes (*/5 * * * *). In Stores → Configuration → Kowal → OUTLET Products, you set the module activity, categories, special price behavior, stock management, and backorders after the sale.
The bin/magento kowal_outletproducts:generate command lets you trigger recalculation manually. Adjust the sale end settings to match the product sales rules in your store.
Installation via Composer
Package kowal/module-outletproducts, module Kowal_OutletProducts. After configuring access to the Kowal repository, install the package, enable the module, update Magento, and clear the cache. In production, include compilation and static content deployment according to your store process.
From configuration to results
1. You add an SKU list
You select the products and outlet categories.
2. The module organizes the offer
It sets sale, assignments, and special price copies.
3. CRON updates the outlet
It removes completed items and refreshes indexes and cache.
Sale of last remaining sizes
Selected T-shirt sizes are added to OUTLET. The parent product remains visible in the category when it has outlet variants. After the sale of the last variant ends, the module also organizes the parent assignment.
Organize the sale cycle in Magento
Want to adapt the module to your store? Ask about implementing Kowal Outlet Products and discuss the configuration or any extensions you need.
More Information
| Theme compatibility | Luma / Blank, KOWAL |
|---|
Questions and Answers
Can I set rules according to which products will be marked as “Outlet” (e.g., discount ≥ 50%, older than 90 days)?
Does the installation require modifying Magento core files or the template?
Does it affect store performance if I have a large number of products?
Will I receive technical support and updates after purchasing the module?
Module Installation Instructions
Installation and configuration of the Kowal Outlet Products module
Basic information
- Composer package:
kowal/module-outletproducts - Magento module:
Kowal_OutletProducts - Required application type: Magento 2
- Package dependency:
kowal/base - Module CLI command:
bin/magento kowal_outletproducts:generate
Installation via Composer
Add the module repository:
You will receive access credentials for the Composer repository, the customer email address and license token, by email after purchase. They are also available in the customer panel after logging in at kowal.store. Replace TWOJ_EMAIL_KLIENTA with your account email address and TWOJ_TOKEN with the token you received. Run the commands in the Magento root directory.
composer config repositories.kowal composer https://repo.kowal.storeIf the repository is private, configure the access token:
composer config http-basic.repo.kowal.store 'TWOJ_EMAIL_KLIENTA' 'TWOJ_TOKEN'Install the module:
composer require kowal/module-outletproductsEnable the module:
php bin/magento module:enable Kowal_OutletProductsRun the database update:
php bin/magento setup:upgradeIn a production environment, run DI compilation and static asset deployment according to the store deployment process:
php bin/magento setup:di:compile
php bin/magento setup:static-content:deployClear the cache:
php bin/magento cache:flushUpdating an existing installation
After updating the module, run:
composer update kowal/module-outletproducts
php bin/magento setup:upgrade
php bin/magento cache:flushIf the store runs in production mode, also perform the standard deployment steps:
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploysetup:upgrade is required because the module adds and updates product attributes used for OUTLET handling and special price copies.
Product attributes
The module adds or uses the following attributes:
| Attribute | Meaning |
|---|---|
sale | Marks the product as OUTLET. |
special_price_copy | A copy of the special_price value from before the product entered OUTLET. |
special_from_date_copy | A copy of the special_from_date date. |
special_to_date_copy | A copy of the special_to_date date. |
special_price_copy_active | A marker indicating that the special price copy has been created. |
Configuration in the admin panel
Go to:
Stores > Configuration > kowal > OUTLET ProductsAvailable options:
| Option | Description |
|---|---|
Włącz moduł Outlet | Enables or disables the module. |
Usuń ceny specjalne dla produktów po wyprzedaży | Defines whether the special price should be cleared after OUTLET ends. If the option is disabled, the module will restore the price from the copy. |
Kategorie outletowe | The list of categories to which OUTLET products are assigned and from which they are later automatically removed. |
Wyłącz zarządzanie stanem magazynowym po wyprzedaży | Allows disabling manage_stock after the sale ends. |
Włącz backorder po zakończeniu wyprzedaży outletowej | Allows enabling backorder and marking the product as available after the outlet sale ends. |
The configuration is available at the default, website, and store levels. OUTLET categories used by cron are taken from the default configuration.
OUTLET category configuration
- Create one or more categories in Magento intended for the outlet.
- Make sure the categories are active and visible in the menu or listing if they should be available to customers.
- In the module configuration, select all outlet categories in the
Kategorie outletowefield. - Save the configuration.
- Clear the Magento cache.
php bin/magento cache:flushImporting products to OUTLET
Go to the panel:
kowal > Upload Outlet ProductsIn the form:
- Paste the SKU list, one SKU per line.
- Select the OUTLET categories.
- Optionally select the websites to which the product should be assigned.
- Select whether the module should enable stock management for the imported products.
- Click
Importuj.
Sample SKU list:
TSHIRT-BLACK-MTSHIRT-BLACK-LJACKET-NAVY-XLSHOES-WHITE-42During import, the module:
- assigns products to the OUTLET category,
- sets the
saleattribute, - updates configurable parents,
- creates a copy of the special price and promotion dates,
- updates stock according to the selected option,
- refreshes product and category indexes and cache.
Configurable product handling
If the imported product is a variant of a configurable product, the module finds the parent and assigns it to the OUTLET category. This makes the configurable product appear in the category listing, and the customer can select the outlet variant.
During cyclical recalculation, the module checks whether the parent still has active OUTLET variants. If not, the parent is detached from the OUTLET category.
Special price handling
When importing to OUTLET, the module saves a copy of:
special_price,special_from_date,special_to_date.
The copy is saved according to the scope of the special price attribute in Magento:
- for global prices: at the global level,
- for prices per website: at the level of the default store view of each website,
- for prices per store: at the store view level.
The module does not convert currencies. Magento stores prices as base values for the appropriate scope, while currency presentation on the frontend remains handled by standard Magento mechanisms.
The behavior after OUTLET ends depends on the Usuń ceny specjalne dla produktów po wyprzedaży option:
Tak: the module clears the special price and removes the technical copy,Nie: the module restores the special price and dates from the copy, then removes the technical copy.
Cron
The module has a cron job:
kowal_outletproducts_outletThe job runs the OUTLET helper and periodically checks outlet products. Cron removes products from the OUTLET category when they should no longer be visible there and refreshes indexes and cache.
After installation, make sure Magento cron works correctly:
php bin/magento cron:runIn a production environment, cron should be run from the system crontab of the Magento application user.
Manual recalculation run
Recalculation can be run manually from the CLI:
php bin/magento kowal_outletproducts:generateThe command performs the same process that is run by cron.
Indexes and cache
After changes, the module refreshes the most important product and catalog indexes:
catalog_product_price,catalog_product_category,catalogsearch_fulltext,inventory,cataloginventory_stock.
The module also clears cache for OUTLET product and category tags, so the category listing should update after a status change or product detachment.
If needed, you can force a full reindex:
php bin/magento indexer:reindex
php bin/magento cache:flushPost-deployment test
Recommended functional test:
- Select a simple product with stock.
- Set a special price and promotion dates for it.
- Add the product to OUTLET through the import panel.
- Check whether the product appeared in the OUTLET category.
- Check whether the
saleattribute has the valueTak. - For a configurable product, check whether the parent appeared in OUTLET.
- Change the product stock so that it is not salable.
- Run cron or the CLI command.
- Check whether the product was removed from the OUTLET category.
- Check whether the special price was restored or removed according to the configuration.
Most common issues
The product is still visible in OUTLET
Check:
- whether Magento cron is running,
- whether the product still has
sale = 1, - whether the product is assigned to one of the categories configured as OUTLET,
- whether indexes and cache have been refreshed.
Helpful commands:
php bin/magento cron:run
php bin/magento indexer:reindex
php bin/magento cache:flushThe configurable parent is still in OUTLET
Check whether any product variant still has sale = 1. The parent is kept in OUTLET as long as it has an active outlet variant.
The special price was not restored
Check:
- whether the product was previously added to OUTLET after the copy attributes were installed,
- whether the
special_price_copy_activeattribute was set, - whether the
Usuń ceny specjalne dla produktów po wyprzedażyconfiguration is set toNie, - which price scope is set in Magento.
Prices differ between store views
Check the price scope configuration in Magento. The module does not convert currencies or synchronize prices between store views. It restores values saved for the appropriate price scope.
Uninstallation
If the module should be disabled:
php bin/magento module:disable Kowal_OutletProducts
php bin/magento setup:upgrade
php bin/magento cache:flushRemoving the Composer package:
composer remove kowal/module-outletproducts
php bin/magento setup:upgrade
php bin/magento cache:flushBefore removing the module, it is recommended to check whether products require manual cleanup of the sale attribute or detachment from the OUTLET category.