Removed page reload to create a sessison code from registration add-registrants page.
authorChuck Scott <cscott@gaslightmedia.com>
Fri, 6 Apr 2018 18:36:23 +0000 (14:36 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Fri, 6 Apr 2018 18:36:23 +0000 (14:36 -0400)
models/front/registrations/registration.php
views/front/registrations/registration.html

index 72c2501..0766c89 100644 (file)
@@ -44,7 +44,6 @@
         $loginAccount      = '';
         $cartId            = false;
         $haveCart          = false;
-        $isNewCart         = false;
         $regEventFirstTime = false;
 
         // Get misc texts
                 $cart = $RegCart->checkRegistrationRequest( $cartId );
                 if ($cart !== false && is_array($cart)) {
                     $haveCart  = true;
-                    $isNewCart = true;
                     $_SESSION['glm_reg_cart_id'] = $cartId;
                 }
 
             'regEventId'        => $regEventId,
             'page'              => 'registration',
             'haveCart'          => $haveCart,
-            'isNewCart'         => $isNewCart,
             'regEvent'          => $regEvent,
             'regEventFirstTime' => $regEventFirstTime,
             'thisJsUrl'         => GLM_MEMBERS_REGISTRATIONS_PLUGIN_URL . '/js',
             'country_list'      => $this->config['countries'],
             'pluginAssetsUrl'   => GLM_MEMBERS_REGISTRATIONS_PLUGIN_ASSETS_URL,
         );
-        
-     
+
+
         // echo "<pre>".print_r($templateData,1)."</pre>";
 
         // Return status, any suggested view, and any data to controller
index 6058980..d93c75c 100644 (file)
@@ -515,9 +515,6 @@ var regEvent = '';
 var cart = '';
 var loginAccount = '';
 jQuery(function($){
-    {if $isNewCart}
-        location.reload( true );
-    {/if}
     {if $loginAccount }
         loginAccount = new app.Models.Front.Account( {$loginAccount} );
     {else}