Advanced Newsletter Suite for Magento 2
€75.00 €75.00
Add a clear promotion countdown timer to your Magento 2 store that shows customers how much time is left before the special price ends.
The Kowal_CountdownPromotion module displays a countdown on category listings and product pages. The timer works for products with an active special price and a configured Special Price To Date.
Increase promotion visibility and shorten the customer’s path to a purchase decision. The module shows a countdown timer next to the product price and displays the promotion end date without modifying the product’s base SEO content.
countdown_promotion product attribute,special_price, special_from_date, special_to_date,i18n mechanism.The module is designed for Magento 2 stores that regularly run time-limited promotions and want to communicate their limited duration more effectively without rebuilding price templates.
The module is prepared as a Composer package of the magento2-module type. After installation, simply enable the module, run setup:upgrade, clear the cache, and configure the appearance in the admin panel.
The Kowal_CountdownPromotion module adds a promotion end countdown timer to Magento 2. The timer can be visible on category listings and product pages when a product has an active special price and a configured promotion end date.
The visible timer is created by JavaScript after the page loads. The backend passes only technical data to the frontend, including the product ID and the promotion end timestamp.
Before installation, make sure your store meets the following requirements:
magento2-module type,Go to the Magento project root directory.
For a Git repository, add the module repository to the Composer configuration:
composer config --global --auth github-oauth.github.com composer config repositories.kowal-countdown-promotion vcs https://github.com/kowalco/countdown-promotioncomposer require kowal/module-countdown-promotion After installation, Composer will place the module in the following directory:
vendor/kowal/module-countdown-promotionRun the Magento commands from the store root directory:
bin/magento module:enable Kowal_CountdownPromotionbin/magento setup:upgradebin/magento cache:flushIn a production environment, you usually also need to run the deployment commands used in the project:
bin/magento setup:di:compilebin/magento setup:static-content:deploy -fbin/magento indexer:reindexbin/magento cache:flushFor each product where the timer should appear:
Countdown Promotion to Yes.Special Price.Special Price To Date.Special Price From Date.The timer will appear only when all conditions are met:
countdown_promotion attribute is enabled,special_price is set,special_from_date is empty or the promotion has already started,special_to_date is set to a future date.For configurable products, enable Countdown Promotion on the parent product. The module can use the promotion date from the parent product or active promotion dates from associated simple products when the promotion is set on variants.
The module options are available in the Magento admin panel:
Stores > Configuration > Catalog > Countdown Promotion > AppearanceAfter changing the configuration, clear the cache:
bin/magento cache:flushThe Category Placement field defines the timer position on the category listing.
Available options:
Below price - timer below the price,Bottom of product image - timer at the bottom of the product image,Top of product image - timer at the top of the product image,Custom CSS selector - timer next to the element indicated by a custom CSS selector.When you choose Custom CSS selector, complete the Category Custom CSS Selector field. The selected element should have data-product-id or be located inside the product tile that contains .price-box[data-product-id].
Example selectors:
.price-box[data-product-id].product-item-info .price-box[data-product-id].product-item-details .price-box[data-product-id]The Product Page Custom CSS Selector field applies only to the product page. Enter the selector of the element after which the timer should be added.
Examples:
.product-info-main .product-info-price#custom-price-targetIf the field is empty, the module uses the default selector:
.product-info-main .price-boxThe Text Before Countdown field sets the text before the timer, for example:
Promocja kończy się za:If the field is empty, the label before the timer is not displayed, and the countdown value itself is centered.
The Text Before End Date field sets the text before the promotion end date, for example:
Promocja do:If the field is empty, only the date is displayed below the timer.
The Displayed Time Template field lets you choose the range of time units shown in the timer.
Available templates:
00d 00g 00m 00s,00d 00g 00m,00d 00g,00d,00g 00m 00s,00m 00s.Time unit symbols can be changed using separate fields:
Days Symbol, default d,Hours Symbol, default g,Minutes Symbol, default m,Seconds Symbol, default s.Example: if you set Hours Symbol to h, the timer may display 02d 05h 30m 10s instead of 02d 05g 30m 10s.
The Show Countdown Days Before End field defines how many days before the promotion ends the timer should become visible.
Examples:
1 - the timer will appear on the last day of the promotion,3 - the timer will appear during the last 3 days of the promotion,7 - the timer will appear during the last 7 days of the promotion.The field accepts integers. An empty value means no restriction.
The module lets you configure the timer appearance without code changes.
Available fields:
Background Color - background color,Text Color - base text color,Label Color - color of the label before the timer,Timer Color - color of the countdown value,Border Color - border color,Font Size - font size.Color fields use a color picker and save hex values, for example:
#ffffff#333333#d32f2fThe font size is selected from a list:
12px,14px,16px,18px.After installation and configuration, check:
Special Price To Date in the past.Special Price To Date.Show Countdown Days Before End configuration.Displayed Time Template templates..countdown-promotion element.The module uses promotions based on standard Magento fields:
special_price,special_from_date,special_to_date.Catalog rules, Adobe Commerce Scheduled Updates, and configurable product variants with completely independent promotion dates may require separate integration.
Themes that significantly change price rendering or the product tile structure may require custom CSS selectors to be configured.
Check whether:
Countdown Promotion = Yes,Special Price set,Special Price To Date is set to a future date,Special Price From Date does not point to a future date,Change Category Placement or set a custom Category Custom CSS Selector. On the product page, use Product Page Custom CSS Selector.
Clear the Magento cache:
bin/magento cache:flushIn production, refreshing static assets according to the store’s deployment process may also be required.