From: Chuck Scott Date: Fri, 6 Apr 2018 18:36:23 +0000 (-0400) Subject: Removed page reload to create a sessison code from registration add-registrants page. X-Git-Tag: v1.0.0^2~31 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=6529eee866b36590558f39f245d16d8ad423b4f6;p=WP-Plugins%2Fglm-member-db-registrations.git Removed page reload to create a sessison code from registration add-registrants page. --- diff --git a/models/front/registrations/registration.php b/models/front/registrations/registration.php index 72c2501..0766c89 100644 --- a/models/front/registrations/registration.php +++ b/models/front/registrations/registration.php @@ -44,7 +44,6 @@ $loginAccount = ''; $cartId = false; $haveCart = false; - $isNewCart = false; $regEventFirstTime = false; // Get misc texts @@ -137,7 +136,6 @@ $cart = $RegCart->checkRegistrationRequest( $cartId ); if ($cart !== false && is_array($cart)) { $haveCart = true; - $isNewCart = true; $_SESSION['glm_reg_cart_id'] = $cartId; } @@ -351,7 +349,6 @@ 'regEventId' => $regEventId, 'page' => 'registration', 'haveCart' => $haveCart, - 'isNewCart' => $isNewCart, 'regEvent' => $regEvent, 'regEventFirstTime' => $regEventFirstTime, 'thisJsUrl' => GLM_MEMBERS_REGISTRATIONS_PLUGIN_URL . '/js', @@ -371,8 +368,8 @@ 'country_list' => $this->config['countries'], 'pluginAssetsUrl' => GLM_MEMBERS_REGISTRATIONS_PLUGIN_ASSETS_URL, ); - - + + // echo "
".print_r($templateData,1)."
"; // Return status, any suggested view, and any data to controller diff --git a/views/front/registrations/registration.html b/views/front/registrations/registration.html index 6058980..d93c75c 100644 --- a/views/front/registrations/registration.html +++ b/views/front/registrations/registration.html @@ -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}