getCartDatabyUserId(SGL_Session::getUid()); if (empty($_SESSION['cartItems'])) { if (count($aResults)) { foreach ($aResults as $productId => $oResult) { $_SESSION['cartItems'][$productId] = $oResult->quantity; } } } } } ?>