public function CommerceCartProviderInterface::cartExists in Commerce Core 7
Checks to see if any cart order ID or a specific cart order ID exists.
Parameters
$order_id: Optionally specify an order ID to look for; defaults to NULL.
$completed: Boolean indicating whether or not the operation should look in the completed orders array instead of the active cart orders array.
Return value
Boolean indicating whether or not a cart order ID exists for the given parameters.
1 method overrides CommerceCartProviderInterface::cartExists()
- CommerceCartProviderSession::cartExists in modules/
cart/ plugins/ cart_provider/ CommerceCartProviderSession.class.php - Checks to see if any cart order ID or a specific cart order ID exists.
File
- modules/
cart/ plugins/ cart_provider/ interface.inc, line 33 - Interface for cart providers.
Class
- CommerceCartProviderInterface
- @file Interface for cart providers.
Code
public function cartExists($order_id = NULL, $completed = FALSE);