You are here

function basic_cart_empty_cart in Basic cart 7.3

Same name and namespace in other branches
  1. 8.6 basic_cart.inc \basic_cart_empty_cart()
  2. 8 basic_cart.inc \basic_cart_empty_cart()
  3. 8.0 basic_cart.inc \basic_cart_empty_cart()
  4. 8.2 basic_cart.inc \basic_cart_empty_cart()
  5. 8.3 basic_cart.inc \basic_cart_empty_cart()
  6. 8.4 basic_cart.inc \basic_cart_empty_cart()
  7. 8.5 basic_cart.inc \basic_cart_empty_cart()
  8. 7 basic_cart.cart.inc \basic_cart_empty_cart()
  9. 7.2 basic_cart.cart.inc \basic_cart_empty_cart()

Shopping cart reset.

1 call to basic_cart_empty_cart()
basic_cart_order_node_insert in basic_cart_order/basic_cart_order.module
Implements hook_node_insert().

File

./basic_cart.cart.inc, line 223
Basic cart shopping cart implementation functions.

Code

function basic_cart_empty_cart() {
  unset($_SESSION['basic_cart']['cart']);
}