Check items in cart or not

Tweet, share & co

tweet fb share g+ share

Tags


Description

Check if there are any items in cart or not.

Code

$totalItemsInCart = Mage::helper('checkout/cart')->getItemsCount();