예제 #1
0
 /**
  * Return current template
  * @return string
  */
 public function getTemplate()
 {
     if (parent::getTemplate()) {
         return parent::getTemplate();
     }
     return $this->getSubscription()->getTemplate();
 }
예제 #2
0
 public function getPriceHtml($product, $displayMinimalPrice = false, $idSuffix = '')
 {
     $r4qEnabled = Mage::helper('itwebcommon')->getAttributeCodeForId($product->getId(), 'r4q_enabled');
     if ($r4qEnabled && Mage::helper('request4quote')->isPriceHidden($product)) {
         return '';
     }
     return parent::getPriceHtml($product, $displayMinimalPrice, $idSuffix);
 }
예제 #3
0
 /**
  * Returns product price block html
  *
  * @param Mage_Catalog_Model_Product $product
  * @param boolean $displayMinimalPrice
  */
 public function getPriceHtml($product, $displayMinimalPrice = false, $idSuffix = '')
 {
     $html = parent::getPriceHtml($product, $displayMinimalPrice, $idSuffix);
     $container = new Varien_Object();
     $container->setHtml($html);
     Mage::dispatchEvent('block_catalog_product_get_price_html', array('block' => $this, 'container' => $container));
     $html = $container->getHtml();
     return $html;
 }
예제 #4
0
 public function __construct()
 {
     parent::__construct();
     if (preg_match('/^(1.(3.[0-9].[0-9]|4.[0-1].0]))/', Mage::getVersion())) {
         $this->setTemplate('catalog/product/view/type/simple.phtml');
     } else {
         $this->setTemplate('catalog/product/view/type/default.phtml');
     }
 }
예제 #5
0
 protected function _afterToHtml($html)
 {
     $html = parent::_afterToHtml($html);
     $html = $this->helper('amstockstatus')->processViewStockStatus($this->getProduct(), $html);
     return $html;
 }