protected function _afterToHtml($html) { if ($this->helper('aitcheckout')->isShowCheckoutInCart() && $this->helper('aitcheckout')->isCompactDesign()) { $content = $this->getLayout()->getBlock('content'); $content->setText(preg_replace('|\\<div class="totals"\\>(.*)\\</div\\>|Uis', '', $content->getText())); } return parent::_afterToHtml($html); }