Comprehensive order lifecycle management — invoice generation, shipment processing, and credit memo handling from quote conversion through order fulfillment and post-sales operations.
Architecture, data models, and execution flows that define the Sales module.
Order state machine (new, processing, complete, closed, canceled), invoice management, shipment processing, credit memo handling, admin order grid.
Order entity hierarchy, sales sequence tables, increment ID generation, order/invoice/shipment/creditmemo service contracts, repository pattern implementation.
Quote-to-order conversion pipeline, invoice capture flow, shipment creation with tracking, credit memo refund processing, order status transition sequences.
Plugins, observers, events, and integration patterns for extending Sales behavior.
Plugins on OrderManagement::place(), InvoiceService::prepareInvoice(). Events: sales_order_save_after, sales_order_invoice_pay, sales_order_shipment_save_after. Order state change hooks.
Dependencies on Quote, Customer, Payment, Tax, Catalog modules. ERP/WMS integration patterns. Order export APIs (REST/GraphQL). Payment gateway capture/refund coordination.
Anti-patterns, known issues, version compatibility, and performance optimization.
Direct order state manipulation, bypassing OrderManagementInterface, loading full order collections for reporting, incorrect use of order comments for business logic.
Concurrent invoice creation race conditions, partial shipment quantity validation, credit memo adjustment calculation edge cases, increment ID gaps.
OrderManagementInterface parameter changes, deprecated order grid collection methods, async order operations introduced in 2.4.x.
Order grid optimization, sales flat tables indexing, batch invoice/shipment processing, sales report aggregation tuning.
Product and category management, EAV attributes, pricing, and URL rewrites.
ExploreMulti-step checkout SPA, payment processing, shipping steps, and order placement.
ExploreRegistration, authentication, account management, addresses, and customer groups.
ExploreShopping cart, quote lifecycle, totals calculation, and quote-to-order conversion.
Explore