承接 juszczyk/module-order-notification 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

juszczyk/module-order-notification

最新稳定版本:1.1.0

Composer 安装命令:

composer require juszczyk/module-order-notification

包简介

Magento 2 module that send notifications when new order is placed.

README 文档

README

The Juszczyk_OrderNotification module allows you to sending notifications to different channels when a new order is place.

Installation details

The Juszczyk_OrderNotification module does not make any changes in database.

To install the module:

  1. Go to your Magento installation directory
  2. Run command: composer require juszczyk/module-order-notification
  3. Run command: bin/magento module:enable Juszczyk_OrderNotification
  4. Run command: bin/magento setup:upgrade
  5. Run command: bin/magentp setup:static-content:deploy

For information about a module installation, see Enable or disable modules.

Usage

The Juszczyk_OrderNotification module adds functionality to send notifications of order placement through various channels. The default channels are email, Slack, WhatsApp, SMS.

Configuration

Configuration of the module is located on the Sales tab in Order Notification section.

The General group has fields that allow you to enable/disable the module and to select groups of customers whose orders will be subject to sending notifications.

The Channels group contains specific configuration for each channel and the ability to enable/disable them.

Structure

For information about a typical file structure of a module in Magento 2, see Module file structure.

Extensibility

Extension developers can interact with the Juszczyk_OrderNotification module.

Developers can add their own notification feeds by following these instructions:

  1. Add new channel model that extends Juszczyk\Model\AbstractChannel and implements required methods.
  2. Add previously created channel to etc/di.xml file by following the default channels created.
  3. Add channel configuration to etc/adminhtml/system.xml with required enable field.

Events

The module Juszczyk_OrderNotification dispatches the following events:

  • order_notification_{{CHANNEL_CODE}}_send_before event in channels model (Model\Channel\...) method send(Order $order). Parameters:
    • order is an order on which notification will be sent (Magento\Sales\Model\Order)
    • order_data is a order data that was prepared to send for the notification (array)

For information about an event in Magento 2, see Events and observers.

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2024-02-03