public function setTemplate($template) { if ($template == 'paypal/payflowadvanced/redirect.phtml' && !Mage::helper('aitcheckout')->isDisabled()) { $template = 'aitcheckout/paypal/payflowadvanced/redirect.phtml'; } return parent::setTemplate($template); }
/** * Set path to template used for generating block's output. * * @param string $template * @return TM_FireCheckout_Block_Paypal_Iframe */ public function setTemplate($template) { // @see Mage_Paypal_PayflowadvancedController::cancelPaymentAction if ('paypal/payflowadvanced/redirect.phtml' === $template && Mage::helper('firecheckout')->canFireCheckout()) { $template = 'firecheckout/' . $template; } return parent::setTemplate($template); }