Example #1
0
 public function isPaymentSelected()
 {
     if (count($this->getParentBlock()->getMethods()) == 1) {
         return true;
     }
     return parent::isPaymentSelected();
 }
Example #2
0
 protected function _construct()
 {
     $ajaxFormActivated = $this->getApi()->getConfigData('settings/activate_ajax_form', $this->getQuote()->getStoreId());
     if ($this->getApi()->isOneStepCheckout($this->getQuote()->getStoreId())) {
         $this->setTemplate('billpay/form_onestep.phtml');
     } else {
         if ($ajaxFormActivated) {
             $this->setTemplate('billpay/form_ajax.phtml');
         } else {
             $this->setTemplate('billpay/form.phtml');
         }
     }
     parent::_construct();
 }