magenizr/magento2-deleteorders
Composer 安装命令:
composer require magenizr/magento2-deleteorders
包简介
This Magento 2 modules allows admin users to delete orders with all related information such as invoices, shipments and credit memos.
关键字:
README 文档
README
Delete Orders
This Magento 2 modules allows admin users to delete orders including all related information such as invoices, shipments and credit memos via backend, command-line or REST API only.
Business Value
A admin user can delete unwanted orders ( e.g test orders ) without having a developer / agency involved.
- A client support team, which usually has no access to the MySQL database can delete orders without having a developer involved.
- Practical for small businesses, which can not afford expensive agency support.
Features
-
A new option
Deleteto theActionsdropdown in theSales > Ordersgrid. -
CLI command called
magenizr:order:delete. -
REST API endpoint
/V1/order/:orderId. -
A list
Restrict Order StatusinStores > Configuration > Magenizr > Delete Ordersallows the admin user to limit the delete feature to specific order statuses only. -
A drop down
Availabilitythat can be used to limit the availability toBackend,Command-Line,REST APIorAll. -
It clears all related order information which are stored in the following tables.
sales_invoice, sales_invoice_grid, sales_shipment, sales_shipment_grid, sales_creditmemo, sales_creditmemo_grid
- The functionality can be restricted to specific roles via
System > Permissions > User Roles. The ACL resource isStores > Configuration > Delete Orders. - The configuration can be found in
Stores > Configuration > Magenizr > Delete Orders.
Usage
- Once the module is installed and enabled, a new option
Deletein the dropdownActionsis available onSales > Orders. Once the popup messageAre you sure you want to delete selected items?is confirmed, the module will deleted selected items and display a success messageTotal of X order(s) were deleted successfully.. - On command-line
magenizr:order:deletecan be used to delete one or multiple ( comma separated ) order ids. For example:
bin/magento magenizr:order:delete 100000001
bin/magento magenizr:order:delete 100000001,100000002,100000003
bin/magento magenizr:order:delete 000000001,34234
Order ID 000000001 successfully deleted.
Order ID 34234 does not exist.
- Via REST API simply git the endpoint
/V1/order/:orderIdand methodDELETE.
System Requirements
- Magento 2.4.x
- PHP 7.x, 8.x
Installation (Composer 2)
- Update your composer.json
composer require "magenizr/magento2-deleteorders":"1.1.0" --no-update - Use
composer update magenizr/magento2-deleteorders --no-installto update your composer.lock file.
Updating dependencies
Lock file operations: 1 install, 1 update, 0 removals
- Locking magenizr/magento2-deleteorders (1.1.0)
- And then
composer installto install the package.
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 1 install, 0 update, 0 removals
- Installing magenizr/magento2-deleteorders (1.1.0): Extracting archive
- Enable the module and clear static content.
php bin/magento module:enable Magenizr_DeleteOrders --clear-static-content
Installation (Manually)
- Download the latest version of the source code.
- Extract the downloaded tar.gz file. Example:
tar -xzf Magenizr_DeleteOrders_1.1.0.tar.gz. - Copy the code into
./app/code/Magenizr/DeleteOrders/. - Enable the module and clear static content.
php bin/magento module:enable Magenizr_DeleteOrders --clear-static-content
Support
If you experience any issues, don't hesitate to open an issue on Github.
History
===== 1.1.0 =====
- 2.4.6 compatibility tested
- REST API Support
<route url="/V1/order/:orderId" method="DELETE"> - Code cleanup
===== 1.0.2 =====
- Test 2.4.5 compatibility
- Remove constraints in composer file
- Change wording
===== 1.0.1 =====
- Command name renamed from magenizr:deleteorders to magenizr:order:delete
===== 1.0.0 =====
- Stable version
License
OSL - Open Software Licence 3.0
About Magenizr
Built and maintained by Magenizr — an Australian Adobe Commerce & Magento development agency based in Bendigo, Victoria. We build custom Magento modules, handle platform migrations, and provide ongoing support for businesses across Melbourne, Sydney, Brisbane and the DACH region.
- Our Services — Custom modules, migrations, support
- Book a Free Consultation — 30-minute call, no obligation
- All Open-Source Modules — Our full collection on GitHub
Über Magenizr
Entwickelt und gepflegt von Magenizr — einer australischen Magento & Adobe Commerce Agentur mit Fokus auf die DACH-Region. Wir entwickeln individuelle Magento-Module, übernehmen Plattform-Migrationen und bieten laufenden Support für Unternehmen in Berlin, Hamburg, München, Frankfurt, Köln, Stuttgart, Düsseldorf, Wien, Graz, Salzburg, Zürich, Basel und Bern.
- Unsere Leistungen — Module, Migrationen, Support
- Kostenlose Erstberatung — 30 Minuten, unverbindlich
- Alle Open-Source-Module — Unsere komplette Sammlung auf GitHub
magenizr/magento2-deleteorders 适用场景与选型建议
magenizr/magento2-deleteorders 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 910 次下载、GitHub Stars 达 3, 最近一次更新时间为 2023 年 02 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「sales」 「orders」 「delete」 「magento 2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 magenizr/magento2-deleteorders 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 magenizr/magento2-deleteorders 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 magenizr/magento2-deleteorders 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Add Shopify like fulfillments to your Craft Commerce orders.
SoftDelete plugin for CakePHP
Laravel console command for deleting temp files and associated model instances.
Integrate Kund24 Api
Paquete adicional de Ventas para Solunes Digital.
The «Sales Documents Numeration» extension for Magento 2
统计信息
- 总下载量: 910
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2023-02-13