The SuperShop Class

Cart and Order helper class

Functions

SuperShop::getUnpaidOrders

Definition

Name
SuperShop::getUnpaidOrders
Syntax
Array|False = SuperShop::getUnpaidOrders( Array $_options );

Description

Returns all unpaid orders specified by $_options. Returns all unpaid orders if $_options is not specified.

Parameters

$_options
Array Associative array containing search criteria of which unpaid orders to return.
Options
user_id
User id of unpaid orders to return.
item_id
Item id of unpaid orders to return.
itemtype
Itemtype of the unpaid orders to return.

Return values

Array Array of unpaid orders.

False if the function fails (wrong user id, itemtype or item id).

Examples

Ex. 1a: Get unpaid orders with specific user id.
$SC = new SuperShop(); $unpaid_orders = $SC->getUnpaidOrders(array("user_id" => 13));

Get all unpaid orders that belong to user with user id 13. Return value:

Array ( [id] => 130, [user_id] => 13, [order_no] => "WEB19", [country] => "DK", [currency] => "DKK", [status] => 0, [payment_status] => 0, [shipping_status] => 0, [delivery_name] => [delivery_att] => [delivery_address1] => [delivery_address2] => [delivery_city] => [delivery_postal] => [delivery_state] => [delivery_country] => [billing_name] => "testuser@test.com", [billing_att] => [billing_address1] => [billing_address2] => [billing_city] => [billing_postal] => [billing_state] => [billing_country] => [comment] => [created_at] => "2019-04-16 18:51:55", [modified_at] => "2019-04-16 18:52:30" )

Dependencies

Janitor
  • Query