Back to Phoca Cart project (class list)

Class PhocacartOrder - list of methods

Located at: Phocacart/order/order.php
Project: Phoca Cart

Method Summary

public
()

Show source code of this method: __construct Source Code

public
(mixed $type = array(0, 1))

Show source code of this method: setType Source Code

public
(mixed $data)

Show source code of this method: saveOrderMain Source Code

public
(mixed $id, mixed $date, mixed $statusId)

Show source code of this method: saveOrderBilling Source Code

public
(mixed $d, mixed $orderId)

Show source code of this method: saveOrderUsers Source Code

public
(mixed $d, mixed $orderId)

Show source code of this method: saveOrderProducts Source Code

public
(mixed $coupon, mixed $totalC, mixed $orderId)

Show source code of this method: saveOrderCoupons Source Code

public
(mixed $discountTitle, mixed $totalD, mixed $orderId, mixed $type = 0)

Show source code of this method: saveOrderDiscounts Source Code

public
(mixed $d)

Show source code of this method: saveOrderTotal Source Code

public
(mixed $d)

Show source code of this method: saveOrderTaxRecapitulation Source Code

public
(mixed $statusId, mixed $notify, mixed $userId, mixed $orderId)

Show source code of this method: saveOrderHistory Source Code

public
(mixed $orderProductId, mixed $productId, mixed $catId, mixed $orderId)

Show source code of this method: saveOrderDownloads Source Code

public
(mixed $orderProductId, mixed $v, mixed $orderId, mixed $k, mixed $fullItems)

Show source code of this method: saveOrderGiftCoupons Source Code

public
(mixed $orderProductId, mixed $productId, mixed $orderId, mixed $k, mixed $fullItems)

Show source code of this method: saveOrderProductDiscounts Source Code

public
(mixed $userId, mixed $points, mixed $orderBillingData, mixed $published = 0, mixed $type = 0)

Show source code of this method: saveRewardPoints Source Code

public
(mixed $orderProductId, mixed $productId, mixed $orderId)

Show source code of this method: updateNumberOfSalesOfProduct Source Code

public
()

Show source code of this method: getActionAfterOrder Source Code

public
()

Show source code of this method: getMessageAfterOrder Source Code

public
()

Show source code of this method: getDataAfterOrder Source Code

private
(mixed $table, mixed $orderId)

Show source code of this method: cleanTable Source Code

private
(mixed $orderId)

Show source code of this method: deleteOrder Source Code

public static
(mixed $statusId)

Show source code of this method: getOrderStatus Source Code

public static
(mixed $orderId)

Show source code of this method: getOrderDate Source Code

public static
(mixed $orderId)

Show source code of this method: getOrderBillingData Source Code

public static
(mixed $orderId)

Show source code of this method: getOrderCustomerData Source Code

public static int|mixed
(mixed $type = 'order', mixed $orderId = 0, mixed $date = false)

Parameters
  • string $type order | receipt | invoice
  • $orderId
  • mixed $date
Returns
  • int|mixed Defines which numbers will be used, if set by auto increment or by year or by month Example: auto increment can be 1250 but it is new year so based on year the number will be 1 (even autoincrement will be 1251) Number can start each month/year at 1 because of accounting ... be aware the numbers need to include prefixes
Show source code of this method: getNumberId Source Code

public static
(mixed $orderId, mixed $date = false, mixed $orderNumber = false, mixed $orderNumberId = false)

Show source code of this method: getOrderNumber Source Code

public static bool|mixed
(mixed $orderId, mixed $date = false, mixed $invoiceNumber = false, mixed $invoiceNumberId = false)

Parameters
  • $orderId
  • bool $date
  • bool $invoiceNumber ... is human readable number
  • bool $invoiceNumberId ... is number id which must not be the same like autoincrement because of montly or yearly created numbers, see parameter: invoice_creating_numbers
Returns
  • bool|mixed
Show source code of this method: getInvoiceNumber Source Code

public static
(mixed $orderId, mixed $date = false, mixed $receiptNumber = false, mixed $receiptNumberId = false)

Show source code of this method: getReceiptNumber Source Code

public static
(mixed $orderId, mixed $date = false, mixed $prmNumber = false, mixed $idNumberA = array())

Show source code of this method: getPaymentReferenceNumber Source Code

public static
(mixed $orderId, mixed $date = false, mixed $queueNumber = false, mixed $queueNumberId = false)

Show source code of this method: getQueueNumber Source Code

public static
(mixed $orderId, mixed $date = false, mixed $dueDate = false, mixed $formatOutput = '')

Show source code of this method: getInvoiceDueDate Source Code

public static
(mixed $orderId, mixed $date = false, mixed $formatOutput = '')

Show source code of this method: getInvoiceDate Source Code

public static array
(mixed $oIdS = '')

Parameters
  • string $oIdS - order IDs separated by comma
Returns
  • array Get all total items by selected order Ids e.g. Order 1 -> total 1 (netto), total 2 (vat), total 3(brutton), etc.
Show source code of this method: getItemsTotal Source Code

public static
(mixed $oIdS = '')

Show source code of this method: getItemsTaxRecapitulation Source Code

public static
(mixed $id, mixed $date, mixed $statusId, mixed $docs = array())

Show source code of this method: storeOrderReceiptInvoiceId Source Code