/** * Return current template * @return string */ public function getTemplate() { if (parent::getTemplate()) { return parent::getTemplate(); } return $this->getSubscription()->getTemplate(); }
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); }
/** * Redefine default price block * Set current customer to tax calculation */ protected function _construct() { parent::_construct(); $this->_block = 'adminhtml/catalog_product_price'; $this->_useLinkForAsLowAs = false; $taxCalculation = Mage::getSingleton('tax/calculation'); if (!$taxCalculation->getCustomer() && Mage::registry('current_customer')) { $taxCalculation->setCustomer(Mage::registry('current_customer')); } }
protected function _afterToHtml($html) { $html = parent::_afterToHtml($html); $html = $this->helper('amstockstatus')->processViewStockStatus($this->getProduct(), $html); return $html; }
protected function _construct() { parent::_construct(); $this->setTemplate('vk_fitment/catalog/product/grouped/partlist.phtml'); }