Ejemplo n.º 1
0
 /**
  * Return current template
  * @return string
  */
 public function getTemplate()
 {
     if (parent::getTemplate()) {
         return parent::getTemplate();
     }
     return $this->getSubscription()->getTemplate();
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 /**
  * 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'));
     }
 }
Ejemplo n.º 4
0
 protected function _afterToHtml($html)
 {
     $html = parent::_afterToHtml($html);
     $html = $this->helper('amstockstatus')->processViewStockStatus($this->getProduct(), $html);
     return $html;
 }
Ejemplo n.º 5
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('vk_fitment/catalog/product/grouped/partlist.phtml');
 }