This should be easy, but I cannot figure out how to retrieve the product a member has purchased. I am using products for membership levels, so Gold level is product ID 1, and Platinum level is product ID 2. In my website pages, I want to customize content based on membership levels but cannot figure out how to retrieve the product ID from the database. I tried $level=$_SESSION['_amember_user']['products']; but only get a blank returned. That was just a guess because I browsed the MySQL database and couldn't find it! Thanks for any help.
no need to guess print_r($_SESSION) will answer all your questions. specially print_r($_SESSION['_amember_product_ids']);