Orders
Orders class handles everything for the products.
Located in /includes/classes/kernel/Orders.php (line 21)
void
logTransaction
(int $gatewayid, int $orderid, string $status, int $userid, string $transactionid, string $amount, [string $notes = ''])
adminEditOrder (line 397)
Change the order status from admin.
- array $data: The order data
changeDisplay (line 599)
Change the order status. Also changes the listing status.
Available options for status is:
- Y = Active
- N = Inactive
- 5 = Delete
- int $id: The listing id to get.
- str $status: The new status.
deductCoupon (line 273)
Deduct a coupon or discount from the database.
- int $id: The Coupon Code.
deleteOrder (line 659)
Delete Order
- int $id: The order id to delete.
deleteTransactions (line 693)
Delete any Gateway transactions.
- int $orderid: The order id
editOrder (line 411)
Edit an order
- int $id: The order id.
- array $data: An array of data to add.
emailCustomer (line 833)
Email a customer receipt
- int $orderid: The order id
generateOrder (line 445)
Generate an order
- array $data: An array of order data
getAllOrders (line 100)
Gets all orders by the parameters.
- array $options: The search parameters
- integer $current_row: The current page number
- integer $max: The maximum number of rows per page
getMonthlyTotal (line 77)
Get the total amount of sales from a date.
- string $date: ISO Date. Ex: 2008-10
getOrderById (line 477)
Get an order by its id
- int $id: The order id.
getOrderByListingID (line 526)
Get an order by a listing id
- int $id: The listing id.
getPendingOrders (line 50)
Get a list of pending orders
getProductList (line 29)
Get a list of products
getStatusByValue (line 242)
Gets the order status by its ID
- int $id: The status id.
getTotalAfterDiscount (line 304)
Get the total price after any discounts have been applied.
- string $grandtotal: The grand total to start with.
- string $coupon: The coupon code. Can be null.
getTransactionsByOrderID (line 555)
Get a transaction from order id
- int $id: The order id.
logTransaction (line 711)
Log Transaction
- int $gatewayid: The unique id of the gateway.
- int $orderid: The order id.
- string $status: The transaction status
- int $userid: The users id
- string $transactionid: The transaction id from the gateway itself.
- string $amount: The amount of this transaction
- string $notes: Any transaction notes.
updateNotification (line 818)
Update the notification field so renewals are sent again. Issue #99
- int $orderid: The order id.
updateOrder (line 740)
Update An Order
- int $orderid: The order id
- string $approved: Y or N

