public function CommerceCartProviderInterface::cartDelete in Commerce Core 7
Deletes either all order IDs or a specific order ID from a carts array.
Parameters
$order_id: The order ID to remove from the array or NULL to delete the variable.
$completed: Boolean indicating whether or not the operation should delete from the completed orders array instead of the active cart orders array.
1 method overrides CommerceCartProviderInterface::cartDelete()
- CommerceCartProviderSession::cartDelete in modules/
cart/ plugins/ cart_provider/ CommerceCartProviderSession.class.php - Deletes either all order IDs or a specific order ID from a carts array.
File
- modules/
cart/ plugins/ cart_provider/ interface.inc, line 18 - Interface for cart providers.
Class
- CommerceCartProviderInterface
- @file Interface for cart providers.
Code
public function cartDelete($order_id = NULL, $completed = FALSE);