I am using Magento 1.9.2 and a theme I am making from the RWD theme. So,
what I want in my theme is to have the number of products that are in the cart to be shown in the cart icon. Like the image below.
I am using Magento 1.9.2 and a theme I am making from the RWD theme. So,
what I want in my theme is to have the number of products that are in the cart to be shown in the cart icon. Like the image below.
Looking in the file minicart.phtml:
/app/design/frontend/vishlibrex/default/template/checkout/cart
it contains the line :
<span class="count"><?php echo $_cartQty; ?></span>
This ability is included in the rwd theme and the variable $_cartqty is defined as such:
<?php
$_cartQty = $this->getSummaryCount();
if(empty($_cartQty)) {
$_cartQty = 0;
}
?>
So, as the theme itself is a creation from the rwd theme it will include this by default. Add a product to the cart and the number will display. At the first visit/start you have no products in cart thus no count shown.