simply and easily. I consider that you are using PS 1.5.x
In controllers other than the cart controller
$cart = new Cart($this->context->cookie->id_cart);
or in class
$context = new Context(); $cart = new Cart($context->cookie->id_cart);
Now $ cart is an object, and it has all the current cart data.
You can also get items in the basket by calling getProducts, as shown below.
$cartProducts = $cart->getProducts();
Hope this helps.
Please note that the code is untested and is just a sample code for your idea.
thanks
source share