zaahed / module-auto-invoice
Vendic 的自动发票模块
1.0.0
2023-09-15 05:22 UTC
Requires
- magento/framework: *
- magento/module-payment: 100.4.*
- magento/module-sales: 103.0.*
README
安装
使用composer安装此包,请在您的Magento 2目录中运行以下命令
composer require zaahed/module-auto-invoice
bin/magento module:enable Zaahed_AutoInvoice
检查您的环境模式 bin/magento deploy:mode:show
并按照以下两条指令之一操作。
对于生产环境
bin/magento maintenance:mode enable
bin/magento setup:di:compile
bin/magento cache:clean config
bin/magento maintenance:mode disable
对于开发环境
清空 generated/
文件夹的内容,然后运行: bin/magento cache:clean config
如何使用
- 浏览到您的Magento 2管理员界面。
- 转到 Stores > 配置 > 销售 > 销售。
- 展开自动发票,并选择启用字段的 '是'。
- 选择您想要的支付方式,然后在右上角点击保存。
在选择了相应支付方式后下单,发票将自动创建。
为何做出某些选择
为 OrderManagementInterface::place 创建了一个插件,因为这个类有 @api
标签,并被前端、后端和Web API使用。《@api》确保了与未来Magento 2版本的兼容性,直到下一个主要版本发布。