Find member product subscription

Discussion in 'Troubleshooting' started by dzarro, Jun 9, 2006.

  1. dzarro

    dzarro New Member

    Joined:
    Jun 5, 2006
    Messages:
    1
    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.
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    no need to guess
    print_r($_SESSION) will answer all your questions.

    specially
    print_r($_SESSION['_amember_product_ids']);

Share This Page