Verify Order Status Paid & Preordered

Paid Orders Scanned
4
Preordered Orders Scanned
2
Status Changes Applied
1
Order Status Verification β€” Functional Description

This page automatically reconciles OpenCart orders between Paid (status 5) and Backordered & Paid (status 19) based on live shelf inventory and outstanding-order demand.

Operational Purpose

  • Scan every order currently marked Paid or Preordered & Paid.
  • Compare each line item against shelf quantity and competing orders in the outstanding fulfillment pipeline ($outstanding_order_status_list from orderStatus.php).
  • Promote Paid orders to Preordered & Paid when any product is fully backordered.
  • Demote Preordered & Paid orders back to Paid when every product is fully in stock.
  • Write an audit comment to oc_order_history with customer notification enabled for each transition.

Database Targets

  • oc_order.order_status_id β€” updated between statuses 5 and 19.
  • oc_order_product β€” read-only source for line-item quantity and model.
  • oc_order_history β€” insert-only audit trail with verify comments.
  • oc_order_status β€” label lookup with language_id = 1.

Helper Dependencies

  • mysql_tools.php β€” prepared statements via mtPrepare() / mtStmtBindExecute().
  • inventory/shelfQuantity.php β€” GetShelfPickedPackedQuantity() shelf cache.
  • orderStatus.php β€” outstanding status filter list for queue math.

Verification runs automatically each time this page loads. Review the results grid below for any orders updated during the current pass.

Verification Results Re-run Verification
Order ID Previous Status New Status Action
234571 Paid (5) Backordered & Paid (19) Marked Preordered & Paid

Verification complete.