Combine Orders

Combine Orders β€” Functional Description

Interactive admin tool that merges a second order into a first order for the same customer (matching registered customer_id or, for guests, a non-empty normalized oc_order.email). Operators enter two order IDs, review side-by-side order summaries, choose a target order status, shipping method, and order date, then execute the combine. The script copies line items, product costs, product options, and merged order totals from the second order into the first, writes oc_order_history comments on both orders, and sets the second order status to cancelled (7).

  • Enter the first (target) order ID and the second (source) order ID, then click View Orders.
  • Both orders must belong to the same customer.
  • Review the side-by-side summaries before combining.
  • Select the new order status, shipping method, and order date for the combined order.
  • Line items, product costs, options, and totals from the second order are copied into the first.
  • The second order is set to cancelled status (7) with history comments on both orders.