GithubHelp home page GithubHelp logo

vallic / commerce_promo_bar Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 39 KB

Drupal Commerce 2 Promo Bar

Home Page: https://www.drupal.org/project/commerce_promo_bar

CSS 2.62% JavaScript 6.47% PHP 87.56% Twig 3.35%
drupal drupalcommerce ecommerce promo-banner promo-bar

commerce_promo_bar's Introduction

CONTENTS OF THIS FILE

  • Introduction
  • Requirements
  • Installation
  • Configuration
  • Usage
  • Customization
  • Maintainers

INTRODUCTION

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

REQUIREMENTS

This module requires Drupal Commerce 2, and it's submodule promotion and Color field module.

INSTALLATION

Install the Commerce Promo Bar module as you would normally install any Drupal contrib module. Visit https://www.drupal.org/node/1897420 for further information.

CONFIGURATION

1. Navigate to Administration > Extend and enable the Commerce Promo Bar
   module.
2. Navigate to Home > Administration > Structure > Block layout and
   place Commerce Promo Bar block onto region where you want to show promo bars.
   (if you want to show only one promo bar always - uncheck Stack promo bars)
3. Navigate to Home > Administration > Commerce > Configuration > Promo Bar.
   if you want to add fields, or change display & form view modes.

USAGE

1. Navigate to Home > Administration > Commerce > Promo Bars
   where you can create new promo bar.
2. Promo bar should be visible on region where you placed block from
   2nd step from Configuration.

Drag Racing

FEATURES

  • adjust background color
  • adjust text color
  • use tokens inside promo bar body
  • WYSIWYG editor to style promo bar message
  • set start and end date
  • set countdown date and display countdown timer
  • restrict visibility per store
  • restrict visibility per customer role
  • restrict visibility per any path

CUSTOMIZATION

  • If you want to use Twig, use commerce-promo-bar.html.twig for any changes.
  • If you want to use UI for changes, it is possible trough WYSIWYG editor and/or view mode / field formatters to achieve some customizations.
  • Promo Bar entity is field-able, so you can add any field to the entity. To use it within Promo Bar body, insert them with tokens

NOTES:

Javascript which provides functionality for countdown timer expects existence of class promo-bar-countdown-1 where number 1 from example represents promo bar entity ID.

Color fields which are used for customization of color for background and text expects existence of class article.promo-bar-wrapper-1 where number 1 from example represents promo bar entity ID.

MAINTAINERS

The 1.0.x branch was created by:

Project page: https://www.drupal.org/project/commerce_promo_bar

commerce_promo_bar's People

Contributors

valicm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.