commerce_order_amend
No security coverage
Commerce Order Amend adds an "Amend Order" tab to placed Commerce orders, giving back-office staff a guided interface for post-placement order modifications.
Commerce core allows raw entity editing on orders but lacks the business logic around amendments: price protection, order refresh on placed orders, audit logging with SKUs, balance difference
calculation, payment guidance, and event-driven extensibility for other modules to react.
Features
- Swap item variations (same product or cross-product)
- Add or remove order items
- Add or remove coupons
- Unit price override with currency locked to the order's currency
- Price protection: all item prices are locked during refresh, preserving original checkout pricing
- Refresh change detection: warns staff about unexpected side effects (promotions added/removed, tax recalculations) with a link to the order edit form
- Payment balance tracking with actionable guidance (collect payment or issue refund)
- Commerce Log audit trail prefixed with "Order Amended" for easy identification, including SKUs and reasons
- Stock validation (optional, respects always-in-stock flag, requires Commerce Stock)
- Configurable editable states via admin UI
- Amendment types tracking field for Views filtering (which orders were swapped, had items added, etc.)
- Event-driven architecture: dispatches OrderAmendEvent so other modules can react (stock adjustments, MTO sync, notifications, ERP integration)
Requirements
- Drupal 10 or 11
- Commerce 2.x or 3.x
Optional
- Commerce Stock — for stock availability validation