Exemple #1
0
 public function _prepareLayout()
 {
     if ($headBlock = $this->getLayout()->getBlock('head')) {
         $headBlock->setTitle(Mage::helper('designer')->__('Your Design on Product') . ' - ' . $headBlock->getDefaultTitle());
     }
     //echo '<pre>sasas';print_r($this->getProduct());exit;
     $block = $this->getLayout()->getBlock('product.info.media');
     if ($block) {
         $block->setSubmitRouteData(array('route' => 'designer/product/index', 'params' => array('id' => $this->getRequest()->getParam('id'))));
     }
     // Set custom template with 'Update Cart' button
     $block = $this->getLayout()->getBlock('product.info.media');
     if ($block) {
         $block->setTemplate('a2bizz/catalog/product/view/media.phtml');
     }
     //echo '<pre>';print_r($block->getData());exit;
     return parent::_prepareLayout();
 }
 public function _prepareLayout()
 {
     return parent::_prepareLayout();
 }
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     $this->helper('mp_slideshow')->appendAssetsToHeadBlock($this->getLayout()->getBlock('head'));
     return $this;
 }