How do I display FUTURE subscriptions outside of aMember?

Discussion in 'Customization & add-ons' started by toadspittle, Dec 18, 2008.

  1. toadspittle

    toadspittle New Member

    Joined:
    May 23, 2008
    Messages:
    15
    I've read (and implemented) the info. on aMember's session variables. But this doesn't help me that much for what I need to do:

    - My members renew their subscription
    - now, they have two subscriptions: the current ACTIVE one, and the future one, which hasn't started yet
    - How do I let them know, on the front end of my web site, that they NOW don't expire until next year? The session variable only lists the expiration date of the CURRENT subscription.
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    aMember store only active products in session, so you can't access this info.
    But you can query database from php script:
    <?
    include "/amember/config.inc.php"
    $payments = $db->get_user_payments($_SESSION[_amember_id], 1);
    ?>

    this will return all complated payments that user have.

Share This Page