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