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'); } }
public function __construct() { $this->_subscriptionInstance = new AW_Sarp_Block_Product_View_Type_Subscription($this); return parent::__construct(); }