Example #1
0
 /**
  * Retrieve block cache tags
  *
  * @return array
  */
 public function getCacheTags()
 {
     $quoteTags = $this->getQuote()->getCacheIdTags();
     $items = array();
     /** @var $item Mage_Sales_Model_Quote_Item */
     foreach ($this->getItems() as $item) {
         $items[] = $item->getProduct();
     }
     return array_merge(parent::getCacheTags(), !$quoteTags ? array() : $quoteTags, $this->getItemsTags($items));
 }
Example #2
0
 /**
  * Processing block html after rendering
  *
  * @param   string $html
  * @return  string
  */
 protected function _afterToHtml($html)
 {
     $html = parent::_afterToHtml($html);
     $transport = new Varien_Object();
     $transport->setHtml($html);
     Mage::dispatchEvent('checkout_block_cart_sidebar_aftertohtml', array('block' => $this, 'transport' => $transport));
     return $transport->getHtml();
 }