protected function _construct() { parent::_construct(); $paymentCode = $this->_getCheckout()->getQuote()->getPayment()->getMethod(); if (in_array($paymentCode, $this->helper('paypal/hss')->getHssMethods())) { $this->_paymentMethodCode = $paymentCode; $templatePath = str_replace('_', '', $paymentCode); $templateFile = "lotusbreath/onestepcheckout/paypal/{$templatePath}/iframe.phtml"; if (file_exists(Mage::getDesign()->getTemplateFilename($templateFile))) { $this->setTemplate($templateFile); } else { $this->setTemplate('lotusbreath/onestepcheckout/paypal/hss/iframe.phtml'); } } }
/** * Set our iframe template for compatible hss methods */ protected function _construct() { parent::_construct(); if (defined('Mage_Paypal_Model_Config::METHOD_HOSTEDPRO')) { $this->_compatibleHssMethods[] = Mage_Paypal_Model_Config::METHOD_HOSTEDPRO; } if (defined('Mage_Paypal_Model_Config::METHOD_PAYFLOWADVANCED')) { $this->_compatibleHssMethods[] = Mage_Paypal_Model_Config::METHOD_PAYFLOWADVANCED; } if (defined('Mage_Paypal_Model_Config::METHOD_PAYFLOWLINK')) { $this->_compatibleHssMethods[] = Mage_Paypal_Model_Config::METHOD_PAYFLOWLINK; } if ($this->_aitcheckoutIsEnabled() && in_array($this->_paymentMethodCode, $this->_compatibleHssMethods)) { $this->setTemplate('aitcheckout/paypal/iframe.phtml'); } }
/** * Internal constructor * Set info template for payment step * */ protected function _construct() { parent::_construct(); $paymentCode = $this->_getCheckout()->getQuote()->getPayment()->getMethod(); if (in_array($paymentCode, $this->helper('paypal/hss')->getHssMethods())) { $this->_paymentMethodCode = $paymentCode; $templatePath = str_replace('_', '', $paymentCode); $store = Mage::app()->getStore(); if (Mage::getStoreConfig('onestepcheckout/config/enabled', $store->getId()) == 1) { $templateFile = "mw_onestepcheckout/paypal/{$templatePath}/iframe.phtml"; } else { $templateFile = "paypal/{$templatePath}/iframe.phtml"; } if (file_exists(Mage::getDesign()->getTemplateFilename($templateFile))) { $this->setTemplate($templateFile); } else { if (Mage::getStoreConfig('onestepcheckout/config/enabled', $store->getId()) == 1) { $this->setTemplate('mw_onestepcheckout/paypal/hss/iframe.phtml'); } else { $this->setTemplate('paypal/hss/iframe.phtml'); } } } }
/** * Internal constructor * Set payment method code * */ protected function _construct() { parent::_construct(); $this->_paymentMethodCode = Mage_Paypal_Model_Config::METHOD_HOSTEDPRO; }