*/
public function checkRegistrationRequest($requestId = false, $json = false, $noReturn = false)
{
-
+
+ // echo "SESSION DATA: <pre>".print_r($_SESSION,1).print_r($regRequest,1)."</pre>";
+
// Try to get the cart data
$this->getRegistrationCart($requestId, false, true);
$this->cart['blockCheckout'] = false;
- // If cart status is false, then we don't have a cart so return now
+ // If cart status is false, then we don't have a cart so block checkout, clear cart ID, and return
if (!$this->cart['status']) {
$this->cart['blockCheckout'] = true;
+ $_SESSION['glm_reg_cart_id'] = false;
return $this->cart;
}
return false;
}
- // echo "<pre>".print_r($_SESSION,1).print_r($regRequest,1)."</pre>";
-
// If there's a logged in registrations user (overrides any WordPress adminstrator or contact logins
if (isset($_SESSION) && isset($_SESSION['LoginAccount']) && is_array($_SESSION['LoginAccount'])) {