コード例 #1
0
ファイル: Head.php プロジェクト: Eximagen/BulletMagento
 protected function _prepareLayout()
 {
     $product = $this->_getProductModel();
     if ($headBlock = $this->getLayout()->getBlock('head')) {
         if ($description = $product->getMetaDescription()) {
             $headBlock->setDescription($description);
         } else {
             $headBlock->setDescription($product->getDescription());
         }
     }
     parent::_prepareLayout();
 }
コード例 #2
0
ファイル: Content.php プロジェクト: Eximagen/BulletMagento
 protected function _prepareLayout()
 {
     //            $id = (string) $this->getRequest()->getParam('id');
     //
     //            $sharedImgModel = Mage::getModel('aitcg/sharedimage');
     //            $sharedImgModel->load($id);
     //
     //            $sharedImgFullSizeUrl = $sharedImgModel->getUrlFullSizeSharedImg();
     //            $sharedImgSmallSizeUrl = $sharedImgModel->getUrlSmallSizeSharedImg();
     //
     //            $productId = $sharedImgModel->getProductId();
     //            $product = Mage::getModel('catalog/product')->load($productId);
     //            $productUrl = $product->getProductUrl();
     //            $productName = $product->getName();
     //            $currentUrl = $this->helper('aitcg')->getSharedImgUrl($id);
     //            $this->assign('productUrl', $productUrl);
     //            $this->assign('sharedImgFullSizeUrl', $sharedImgFullSizeUrl);
     //            $this->assign('sharedImgSmallSizeUrl', $sharedImgSmallSizeUrl);
     //            $this->assign('productName', $productName);
     //            $this->assign('currentUrl', $currentUrl);
     //            $this->assign('sharedImgId', $id);
     //            $this->assign('product', $product);
     parent::_prepareLayout();
 }