public function __construct() { parent::__construct(); if ($this->getRequest()->getParam('id')) { $product = Mage::getModel('catalog/product')->load($this->getRequest()->getParam('id')); if (in_array($product->getTypeId(), array('configurable', 'bundle', 'grouped'))) { return; } } else { $productType = $this->getRequest()->getParam('type'); if (in_array($productType, array('configurable', 'bundle', 'grouped'))) { return; } } $this->setTemplate('inventoryplus/catalog/product/tab/inventory.phtml'); }
/** * Constructor. */ public function __construct() { parent::__construct(); $this->setTemplate('realtimedespatch/catalog/product/tab/inventory.phtml'); }
public function __construct() { parent::__construct(); //$this->getStockItem()->setStockId($this->getRequest()->getParam('store')); $this->setTemplate('catalog/product/tab/inventory.phtml'); }
public function __construct() { parent::__construct(); $this->setTemplate('adm/warehouse/catalog/product/tab/inventory.phtml'); }