public static function getLoginForm($cart = FALSE, $order = FALSE, $url = '')
 {
     $body = '';
     $show = TRUE;
     if ($cart) {
         $show = VmConfig::get('oncheckout_show_register', 1);
     }
     if ($show == 1) {
         if (!class_exists('VirtuemartViewUser')) {
             require VMPATH_SITE . DS . 'views' . DS . 'user' . DS . 'view.html.php';
         }
         $view = new VirtuemartViewUser();
         $view->setLayout('login');
         $view->assignRef('show', $show);
         $view->assignRef('order', $order);
         $view->assignRef('from_cart', $cart);
         $view->assignRef('url', $url);
         $view->writeJs = false;
         ob_start();
         $view->display();
         $body = ob_get_contents();
         ob_end_clean();
     }
     return $body;
 }
 /**
  *
  */
 public static function getLoginForm($cart = FALSE, $order = FALSE, $url = 0)
 {
     JLoader::register('VirtuemartViewUser', JPATH_VM_SITE . '/views/user/view.html.php');
     $view = new VirtuemartViewUser();
     $view->setLayout('login');
     $body = '';
     $show = TRUE;
     if ($cart) {
         $show = VmConfig::get('oncheckout_show_register', 1);
     }
     if ($show == 1) {
         $view->assignRef('show', $show);
         $view->assignRef('order', $order);
         $view->assignRef('from_cart', $cart);
         $view->assignRef('url', $url);
         ob_start();
         $view->display();
         $body = ob_get_contents();
         ob_end_clean();
     }
     return $body;
 }