<!-- TITLE: Top Bar Timer En -->
<!-- SUBTITLE: A quick summary of Top Bar Timer En -->
# Top Bar Timer for Magento 2
## Introduction:
Add countdown timer as a widget for promotions.
## Installation with Composer:
* connect to your server with SSH,
* navigation to your project and run these commands:
```text
$ composer require aurora/module-top-bar-timer
$ php bin/magento setup:upgrade
$ php bin/magento cache:flush
```
## Update with Composer (if extension was installed by Composer):
```text
$ composer update aurora/module-top-bar-timer
$ php bin/magento setup:upgrade
$ php bin/magento cache:flush
```
## Installation without Composer:
* buy extension,
* unzip archive,
* upload extension files on your server to: {Magento root}/app/code
* in Magento root folder run commands:
```text
$ php bin/magento setup:upgrade
$ php bin/magento cache:flush
```
## Features
### Front office features:
* display countdown timer block as a widget:
![Top Bar Timer Storefront](/uploads/top-bar-timer/top-bar-timer-storefront.png "Top Bar Timer Storefront")
### Back office options:
* general widget configuration:
![Top Bar Timer Widget Conf](/uploads/top-bar-timer/top-bar-timer-widget-conf.png "Top Bar Timer Widget Conf")
* widget options:
![Top Bar Timer Widget Options](/uploads/top-bar-timer/top-bar-timer-widget-options.png "Top Bar Timer Widget Options")
### Configuration:
* you can enable module and set expired date in:
Stores >> Configuration >> Aurora >> Top Bar Timer.
![Top Bar Timer Confg](/uploads/top-bar-timer/top-bar-timer-confg.png "Top Bar Timer Confg")
For display timer bar, we must follow this instructions:
1. In panel admin: Content->Widgets->Top Bar Timer
2. In 'Storefront Properties' tab, we must select on which pages we want display timer bar (in 'Layout Updates'), for example: All Pages
3. Then in 'Container' we have to mark where it should be displayed, for example: 'After Page Header Top' (https://upload.cc/i1/2019/08/06/l8ydgQ.png)
4. Next, in tab 'Widget Options' in fields:
- Custom text - text displayed on the bar
- Anchor Custom text, Anchor Custom Title - button text displayed on bar
- CMS Page - select url of the button
5. Clear cache
## Demo
demo3.magecreation.com
## Change log
### v1.0.12
* Adding a link option to bar
* Code refactoring
### v1.0.11
* Fixing a promotion button
* Improved unit tests
### v1.0.8
* Improved dependencies
### v1.0.7
* Code refactoring under PHP8
### v1.0.6
* ReadMe chagnes
### v1.0.5
* Adding of promotion button
### v1.0.4
* Improvement of JS prefix
### v1.0.3
* Code refactoring
### v1.0.2
* Pipeline improvement
### v1.0.1
* Version change
### v1.0.0
* Module creation