Removed commented out code from dataRegEvnet.php and added saved cart ID for after...
authorChuck Scott <cscott@gaslightmedia.com>
Mon, 8 Jan 2018 19:05:41 +0000 (14:05 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Mon, 8 Jan 2018 19:05:41 +0000 (14:05 -0500)
Removed code that was previously commented out to stop deleting of reg_time entries.
Now saving cart ID after checkout in session as 'glm_reg_competed_cart_id'

classes/data/dataRegEvent.php
models/front/registrations/checkoutProcess.php

index cd1af71..25db4db 100644 (file)
@@ -939,7 +939,6 @@ class GlmDataRegistrationsRegEvent extends GlmDataAbstract
                             }
 
                         }
-//                        unset($this->regEventData['reg_time'][$regTimeKey]);
 
                     }
 
index 7e18109..90e1e4f 100644 (file)
@@ -690,8 +690,10 @@ class GlmMembersFront_registrations_checkoutProcess extends GlmRegCartSupport
 
         /*
          * Remove cart from session
+         *
+         * Save cart ID in session as 'glm_reg_competed_cart_id' for use after checkout but clear the cart session
          */
-
+        $_SESSION['glm_reg_competed_cart_id'] = $_SESSION['glm_reg_cart_id'];
         if ($billing['addr2'] != '*** DO NOT CLEAR ***') {
             unset($_SESSION['glm_reg_cart_id']);
         }