aligent/orocommerce-announcement-bundle
Composer 安装命令:
composer require aligent/orocommerce-announcement-bundle
包简介
OroCommerce Bundle to display Announcement Messages on Storefront
README 文档
README
This bundle adds the ability to display a custom Announcement Message on the OroCommerce storefront.
Example Use Cases
- Shipping Delays
- Public Holiday closures
- Promotional Messages
- Upcoming Website Maintenance
Features
- Select custom Background Colour for Announcement
- Set optional Start/End Date for Announcement
- Restrict Announcement to one or more Customer Groups
Requirements
- OroCommerce 5.0
Installation and Usage
NOTE: Adjust instructions as needed for your local environment
Installation
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
Configuration Settings
| 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) |
Database Modifications
This Bundle does not directly modify the database schema in any way
All configuration is stored in System Configuration (oro_config_value).
Templates
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.
Roadmap / Remaining Tasks
- Ability to restrict Announcement to one or more Customer Groups
- OroCommerce 5.0 Support
- Implement Unit Tests
- Refactor
AnnouncementDataProvider - Consistent naming of
color(deprecatecolour) - Reset
hideAlertsession variable when new Announcements are added - Ability to block dismissal of Announcement Message (hides the 'X' button)
- Ability to only display on Homepage
- Ability to configure multiple messages for different scenarios
- (TBC) Move away from Content Blocks to WYSIWYG configuration fields
aligent/orocommerce-announcement-bundle 适用场景与选型建议
aligent/orocommerce-announcement-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 492 次下载、GitHub Stars 达 1, 最近一次更新时间为 2022 年 06 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 aligent/orocommerce-announcement-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 aligent/orocommerce-announcement-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 492
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2022-06-28

