/** * Class constructor * */ public function __construct() { parent::__construct(); $this->setTemplate('downloadable/product/edit/downloadable/links.phtml'); $this->setCanEditPrice(true); $this->setCanReadPrice(true); }
/** * Init block, set preview template */ public function __construct() { parent::__construct(); $device = Mage::helper('xmlconnect')->getDeviceType(); if (array_key_exists($device, Mage::helper('xmlconnect')->getSupportedDevices())) { $template = 'xmlconnect/edit/tab/design/images_' . strtolower($device) . '.phtml'; } else { Mage::throwException($this->__('Device doesn\'t recognized. Unable to load a template.')); } $this->setTemplate($template); }
/** * Class constructor * */ public function __construct() { parent::__construct(); $this->setTemplate('downloadable/product/edit/downloadable/samples.phtml'); }