Order Overview
Each order in OpenCart contains:- Customer Information - Name, email, phone, account details
- Order Products - Items purchased with quantities and prices
- Addresses - Billing and shipping addresses
- Payment Information - Payment method and status
- Shipping Information - Shipping method and tracking
- Order Totals - Subtotal, taxes, discounts, and grand total
- Order Status - Current order state
- Order History - Status changes and comments
Order Filters
Find orders quickly using comprehensive filters:Available Filters
Use date filters to analyze orders by time period. The
date_from/date_to filters search by order creation date, while date_modified filters search by last modification date.Order Structure
Order Information
Order Products
Product Options
Payment Information
Payment Address
Payment Method
Shipping Information
Shipping Address
Shipping Method
Order Totals
Order totals break down the final price:Order Total Extension Types
Order Total Extension Types
Order totals are added by extensions and can include:
- sub_total - Product subtotal
- shipping - Shipping cost
- tax - Tax amount
- coupon - Discount from coupon code
- voucher - Gift voucher amount
- reward - Reward points discount
- low_order_fee - Fee for orders below minimum
- total - Grand total
Order Status
Manage order progression through status changes:Common Order Statuses
- Pending - Order placed, awaiting payment
- Processing - Payment received, preparing order
- Shipped - Order dispatched to customer
- Complete - Order delivered and finalized
- Canceled - Order canceled by customer or admin
- Refunded - Payment returned to customer
- Failed - Payment failed or order could not be processed
Order statuses are customizable. You can create custom statuses that match your business workflow in the Localisation > Order Status section.
Order History
Track all changes to an order:Invoice Generation
Invoice Numbers
OpenCart automatically generates invoice numbers:Printing Invoices
Generate printable invoices for orders:Invoices include store information, customer details, ordered products, and order totals. The invoice template can be customized in the view files.
Shipping Documents
Generate shipping labels and packing slips:- Store and customer addresses
- Product list with quantities
- Product weights and dimensions
- Shipping method
Creating/Editing Orders
Admin Order Creation
Create orders manually from the admin panel:Order Creation Workflow
Order Creation Workflow
- Select Customer - Choose existing customer or create new
- Add Products - Select products and quantities
- Choose Addresses - Set billing and shipping addresses
- Select Payment Method - Choose payment option
- Select Shipping Method - Choose shipping carrier
- Add Order Totals - Apply discounts, calculate tax and shipping
- Set Order Status - Set initial order status
- Add Comments - Include order notes
Order Modification
Subscriptions & Recurring Orders
Handle subscription-based products:Reward Points
Manage reward points from orders:Affiliate Tracking
Track affiliate commissions:Order Reporting
Track additional order metrics:Bulk Operations
Delete Orders
Remove multiple orders at once
Print Invoices
Generate invoices for multiple orders
Print Shipping
Create shipping documents in bulk
Export Orders
Export order data for reporting
Best Practices
- Update Status Promptly - Keep customers informed of order progress
- Add Tracking Numbers - Include shipping tracking in order comments
- Verify Addresses - Check shipping addresses before processing
- Monitor Payment Status - Ensure payments are confirmed before shipping
- Use Comments - Document important order information
- Generate Invoices - Create invoices for completed orders
- Check Inventory - Verify stock levels before confirming orders
- Handle Refunds Properly - Update order status when issuing refunds
- Archive Old Orders - Keep system performant by archiving old data
- Regular Backups - Backup order data regularly
Technical Reference
Controller
Location:/upload/admin/controller/sale/order.php
Key methods:
index()- Display order listinginfo()- Show order details and edit formcall()- API call to storefront for order operationsdelete()- Delete ordersinvoice()- Generate invoice documentsshipping()- Generate shipping documentshistory()- Display order historycreateInvoiceNo()- Generate invoice number
Model
Location:/upload/admin/model/sale/order.php
Key methods:
getOrder()- Fetch order datagetOrders()- Get order list with filtersgetProducts()- Get order productsgetOptions()- Get product optionsgetTotals()- Get order totalsgetHistories()- Get order status historyaddHistory()- Add status change to history
Related Documentation
- Catalog Management - Managing products for orders
- Customer Management - Managing customer accounts
- Product Management - Product details and inventory

