mslwk/module-generic-order-export
Composer 安装命令:
composer require mslwk/module-generic-order-export
包简介
Magento2 generic module for exporting new orders to a 3rd-party service
关键字:
README 文档
README
Magento 2 Generic Order Export module
The extension provides a simple API for exporting new orders to a 3rd-party service. You can use it as a base for your specialised module. By default it exports an order after invoice creation. By default it used RabbitMQ to send the orders asynchronously for smoother experience. This feature can be disabled via backend panel.
Installation
Via Composer
To install the extension using Composer use the following commands:
composer require mslwk/module-generic-order-export php bin/magento module:enable MSlwk_GenericOrderExport php bin/magento setup:upgrade
From GitHub
You can download the extension directly from GitHub and
put it inside app/code/MSlwk/GenericOrderExport directory. Then run the
following commands:
php bin/magento module:enable MSlwk_GenericOrderExport php bin/magento setup:upgrade
Usage
To use this module you are required to do several things. You are strongly advised to create your own module extending contents of this one.
-
Create your own implementation of the
MSlwk\GenericOrderExport\Api\OrderExportServiceInterfaceresponsible for the actual export process and add a preference to youretc/di.xmllike this:<preference for="MSlwk\GenericOrderExport\Api\OrderExportServiceInterface" type="You\YourModel\Model\YourOrderExportService" /> -
If you don't want to use RabbitMQ to queue the export process go to
Stores -> Configuration -> Sales -> Sales -> Order Export -> Enable async export -
If you want to export your orders under different conditions disable the default observer responsible for exporting the orders (
mslwk_order_export_sales_order_invoice_register) via youretc/events.xml. After that you have to create your own plugin/observer/whatever to export the orders. Go toMSlwk\GenericOrderExport\Observer\ExportOrderAfterInvoiceRegisteredfor reference. -
If you need a fallback mechanism in case of export failure you have to implement it yourself to reflect your needs.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Maciej Sławik - https://github.com/maciejslawik
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE file for details
mslwk/module-generic-order-export 适用场景与选型建议
mslwk/module-generic-order-export 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 215 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 02 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「magento 2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mslwk/module-generic-order-export 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mslwk/module-generic-order-export 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mslwk/module-generic-order-export 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Magento 2 Social Login extension is designed for quick login to your Magento 2 store without procesing complex register steps
Magento - Clean up session extension
Magento - Force store code extension
Magento 2 module to optimize Compiled ObjectManager
Automatic Currency Switcher Extension for Magento 2
Magento - Disable newsletter notifications extension
统计信息
- 总下载量: 215
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-24