dominicwatts/announce

Magento 2 site-wide customer facing announcements

Installs: 43

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 0

Open Issues: 0

Type:magento2-module

1.1.0 2020-05-27 23:44 UTC

This package is auto-updated.

Last update: 2024-10-28 08:57:38 UTC


README

phpcs

PHPCompatibility

PHPStan

Magento 2 site-wide customer facing announcements

Easily add personalised customer messages to your magento store. Customised annoucements, greetings, discounts, upsells, crossells, testimonials, banners, hero images and more. Find the comment for the placeholder code in markup and go from there. This is framework to allow you to deliver personalised repeating CMS content which meet certain conditions on the frontend.

With marketing section in backend configure message groups with the following:

* Required
  • Name *
  • Position in site
  • CSS class
  • Status *
  • Store View *
  • Only visible on selected category
  • Only visible on selected product
  • Only visible to customer email
  • Only visible to customer group
  • Visible date from
  • Visible date to
  • Sort
  • Limit
  • Message sort by *

Then attach one or more messages to this group with the following:

* Required
  • Name *
  • CSS class
  • Sort
  • Associated Group ID *
  • Status *
  • Content

Messages are rendered on the frontend based on configuration.

I use magento registry to restrict footprint of database queries.

Todo

  • Custom placement logic / help doc
  • Contact Us placement
  • Wysiwyg template filter
  • Admin group message selection grid
  • Use admin group message grid to change selection and/or sort
  • Group visible only on selected category
  • Group visible only on selected product
  • Random message sort
  • Message limit
  • Mass status / mass delete
  • Escape phtml
  • Catch impressions
  • Extension own cache
  • Private content (hole punch cache)
  • Message title, subtitle, link, image
  • Group / Message markup/template builder
  • MySQL constraints
  • Help / ideas docs
  • [Long term] Banner manager
  • [Long term] Product carousels for upsells/cross sells/related

Install Instructions

composer require dominicwatts/announce

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy

Useage Instructions

Admin > Marketing > Announcements

Groups

This section is used to configure message groups. This defines the structure and behaviour of the repeater field.

Group Grid

Group Page

Messages

This section is used to configure messages. The idea is that this is any time of CMS content. These could be banners, hero images, coupon codes, message of the day, widgets and so on. You associate messages to groups. This defines the structure and behaviour of the repeating field.

Message Page

Contact Us

Stats

Message impression stats

Help

Custom template usage

Why call it 'announce'

Adblock