https://github.com/magesuite/widget-salebar
This creates a widget called Salebar
. This widget adds a small info bar at the top of the page/.
Installation
This module is optional
composer require "creativestyle/magesuite-salebar-widget" ^1.0.0
Admin settings
In Content -> Widgets
add a new widget and select Salebar
type and desired theme.
Display widget on all pages or on specific kind of pages
Choose the proper container: Header - Salebar Widget
Provide widget content: add texts, optionally add background and text color, optionally add a timer.
Add %TIMER%
string to texts and set expiration zone: use format YYYY-MM-DD HH:MM:SS in CET timezone.
Frontend
Example 1:
<p>Sale of our limited edition ends soon! Only %TIMER% left!</p>
Example 2:
<p><span class="hide-mobile">Wir strukturieren unser Lager um!</span> <span class="hide-mobile"> | </span>Offizieller Rieker Onlineshop</p>