/** * Convert block to html. * Does not display if quote items count equals 0 * * @return string */ protected function _toHtml() { $quote = Mage::getSingleton('checkout/session')->getQuote(); if (!$quote->getItemsCount()) { return ''; } return parent::_toHtml(); }