protected function _toHtml()
    {
        $html = parent::_toHtml();
        if ('' != $html) {
            if (Mage::getConfig()->getNode('modules/Ebizmarts_SagePaySuite/active')) {
                $html .= '
<script type="text/javascript">
//<![CDATA[
SageServer = new EbizmartsSagePaySuite.Checkout
(
    {
        \'checkout\':  checkout,
        \'review\':    review,
        \'payment\':   payment,
        \'billing\':   billing,
        \'accordion\': accordion
    }
);
//]]>
</script>
';
            }
        }
        return $html;
    }
Ejemplo n.º 2
0
 protected function _toHtml()
 {
     if (Mage::helper('fieldsmanager')->getStoredDatafor('enable') && !Mage::getStoreConfig('quickcheckout/general/active')) {
         $this->setTemplate("fieldsmanager/checkout/onepage/review/info.phtml");
     }
     return parent::_toHtml();
 }