Countdown Promotion
Composer kowal/module-countdown-promotion · Version 1.0.8
Product page
Countdown Promotion — kowal.co
Description
Show the time remaining on a special price on product listings and product detail pages.
For whom
For merchandisers running time-limited offers who want to highlight selected products.
Features
- Per-product timer switch.
- A display window measured in days before the offer ends.
- Configurable labels, time format and placement.
Installation
From the Magento root, with Composer access to the Kowal package, run
composer require kowal/module-countdown-promotion
bin/magento module:enable Kowal_CountdownPromotion
bin/magento setup:upgrade
bin/magento cache:clean
Configuration
- Set a special price and an end date on the product. Enable its
countdown_promotionattribute. - Under Countdown Promotion → Appearance, set the text and adjust Show Countdown Days Before End so that the display window includes your test date.
- Check placement in your theme. For a custom layout, you can specify separate CSS selectors for product and category pages.
Requirements / notes
The browser receives the end timestamp in UTC. JavaScript creates the visible timer after page load and removes it when the offer expires.
FAQ
Why is there no countdown for a discounted item?
Check the product switch, the special price dates and the display window. The timer reads the product’s special price, so a cart price rule alone cannot start it.
Verify the installation
bin/magento module:status Kowal_CountdownPromotion
Open the category and detail page for a product with an active offer. Compare the end date with the product settings and watch the seconds change. Also check a product with the timer switch off.