protected function _applyCustomOption() { if (!Mage::helper('customoptions')->isEnabled() || version_compare(Mage::getVersion(), '1.4.0', '<') || (string) Mage::getConfig()->getModuleConfig('Innoexts_AdvancedPricing')->active == 'true') { return parent::_applyCustomOption(); } if (version_compare(Mage::getVersion(), '1.6.0', '<') || version_compare(Mage::getVersion(), '1.10.0', '>=') && version_compare(Mage::getVersion(), '1.11.0', '<')) { return $this->_applyCustomOption1510(); } if (version_compare(Mage::getVersion(), '1.7.0', '<') || version_compare(Mage::getVersion(), '1.11.0', '>=') && version_compare(Mage::getVersion(), '1.12.0', '<')) { return $this->_applyCustomOption1620(); } // m1700>= return $this->_applyCustomOption1700(); }
protected function _applyCustomOption() { $helper = Mage::helper('mageworx_customoptions'); if (!$helper->isEnabled() || version_compare($helper->getMagetoVersion(), '1.4.0', '<') || (string) Mage::getConfig()->getModuleConfig('Innoexts_AdvancedPricing')->active == 'true' || (string) Mage::getConfig()->getModuleConfig('Innoexts_StorePricing')->active == 'true') { return parent::_applyCustomOption(); } if (version_compare($helper->getMagetoVersion(), '1.6.0', '<')) { return $this->_applyCustomOption1510(); } if (version_compare($helper->getMagetoVersion(), '1.7.0', '<')) { return $this->_applyCustomOption1620(); } // m1700>= return $this->_applyCustomOption1700(); }