This bundle adds the ability to display a custom Announcement Message on the OroCommerce storefront.
NOTE: Adjust instructions as needed for your local environment
Install via Composer
composer require aligent/orocommerce-announcement-bundle
Once installed, run platform update to perform the installation:
php bin/console oro:platform:update --env=prod
Setting | Description |
---|---|
Block Background Colour | Select the background colour for the Announcement on the storefront (Colour picker) |
Start Date | Date to start displaying the Announcement (Use Default for 'immediately') |
End Date | Date to stop displaying the Announcement (Use Default for 'forever') |
Content Block | Select the Content Block containing the message to display |
Allowed Customer Groups | If enabled, only these Customer Groups will see the announcement message. (NOTE: Ctrl+Click to select multiple Groups) |
This Bundle does not directly modify the database schema in any way
All configuration is stored in System Configuration (oro_config_value
).
Resources/views/layouts/default/page/alert_bar.html.twig
This includes a single _alert_bar_widget
block which can be customized/overridden in OroCommerce themes
if needed.
AnnouncementDataProvider
color
(deprecate colour
)hideAlert
session variable when new Announcements are added