Commerce Promo Bar allows stores to display notifications and promotional information via the bar on top pages or any positions.

Highlight your product promotions, sales, other offers, general notification, and potential delays. Add a countdown timer to any promo bar.

Need help using or extending this module?

    Vallic
  • Hire the project maintainers: Vallic offers Drupal Commerce support and development, and runs Vallic Cloud, Drupal hosting.
  • Community support: Use the issue queue.

Customization:

  1. Multiple promo bars can be stacked
  2. One block to display all promo bars
  3. Configurable background and text color from UI
  4. Configurable countdown from UI
  5. WYSIWYG editor to style promo bar message
  6. Simple Twig template for advanced modifications
  7. Option to use tokens from related Commerce Promotion
  8. Fieldable entity, so you can with tokens insert any added field value to the output of promo bar

Available restrictions are per::

  1. Commerce store
  2. Customer role
  3. Start and end date
  4. Path restrictions

Versions

Branch Drupal Commerce Status
2.x 11 3 Supported, new features
1.0.x 10.3, 11 2, 3 Bug fixes only

Caching

The block varies by store, customer role, country and page, and expires when the next scheduled promo bar starts or ends. Cron clears the cache tag for page caches and reverse proxies that ignore max-age.

Decoupled / headless

The same rules the block uses are available as services (loadVisible(), visibility, body processor). The Commerce Promo Bar JSON:API submodule serves them at GET /jsonapi/promo-bars.

Supporting organizations: 
Development

Project information

Releases