Example #1
0
 public function index()
 {
     $this->registry->xajax->registerFunction(array('setPeymentChecked', App::getModel('payment'), 'setAJAXPaymentMethodChecked'));
     $this->registry->template->assign('xajax', $this->registry->xajax->getJavascript());
     $this->registry->xajax->processRequest();
     $clientModel = App::getModel('client');
     $this->registry->template->assign('payments', App::getModel('payment')->getPaymentMethods());
     $this->registry->template->assign('checkedPayment', Session::getActivePaymentMethodChecked());
     $this->registry->template->assign('priceWithDispatch', Session::getActiveglobalPriceWithDispatchmethod());
     $this->registry->template->display($this->loadTemplate('index.tpl'));
 }