Snippets with the tag: count

Number of products in the sidebar

Description

Get the number of products shown in the sidebar.

Code

Mage::getStoreConfig('checkout/sidebar/count');

Check items in cart or not

Description

Check if there are any items in cart or not.

Code

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

Total items added in cart

Description

Total items added in cart

Code

Mage::getModel('checkout/cart')->getQuote()->getItemsCount();
Mage::getSingleton('checkout/session')->getQuote()->getItemsCount();