runelaenen/sw6-order-cleanup
最新稳定版本:v6.1.1
Composer 安装命令:
composer require runelaenen/sw6-order-cleanup
包简介
Adds an admin button to clear all placed orders, documents and reset number generators
README 文档
README
A Shopware 6 plugin for clearing all placed orders, documents and resetting number generators. Useful for resetting development or staging environments to a clean state.
Features
- Deletes all orders and related data (line items, transactions, deliveries, addresses)
- Deletes all order documents (invoices, credit notes, delivery notes, cancellations)
- Deletes document media files (PDFs) from the media library
- Resets order-related number range counters (
order,document_invoice,document_storno,document_delivery_note,document_credit_note) so numbering restarts from the configured start value - Available via a dedicated admin page and a CLI command
Requirements
- Shopware 6.6
Installation
composer require runelaenen/sw6-order-cleanup
bin/console plugin:install --activate OrderCleanup
bin/console cache:clear
bin/build-administration.sh # Or comparable command
Usage
Admin
Navigate to Settings → System → Order Cleanup. Click Clear all orders and confirm the dialog.
Warning: This action is irreversible and will permanently delete all order data.
CLI
bin/console order-cleanup:clear
To skip the confirmation prompt (e.g. in scripts):
bin/console order-cleanup:clear -n
What gets deleted
| Data | Details |
|---|---|
| Orders | order and all sub-tables (line items, transactions, deliveries, addresses, etc.) |
| Documents | Invoices, credit notes, delivery notes, cancellations |
| Document media | PDF files from the media library |
| Number range states | Reset to configured start value for order and document types only |
Product and customer number ranges are not affected.
统计信息
- 总下载量: 195
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-24