/** * Return the total price of the cart for the current visitor formatted as currency * * @return string */ public static function cart_subtotal() { $subtotal = ''; $cart_key = CC_Cart::get_cart_key(false); $cart = new CC_Cloud_Cart(); if ($cart_key) { $summary = $cart->summary($cart_key); $subtotal = $summary->subtotal; } return $subtotal; }
public function create_cart($force = true) { return CC_Cart::get_cart_key($force); }