On my website header I have a shopping cart icon with a badge that display the number of the items in the cart. When you enter in the website, it should display 0, as you have no item in the cart. However the badge is empty until you add a item in the cart. But if you later remove all items than it does display 0.
This is my code:
<span class="badge badge-inverse"> <?php echo $this->getSummaryCount();?> </span>
How to modify it to always display 0 if there are no items in the cart? I tried to use conditionals but for some reason it doesn't work.