show active AND expired in product IDs for users

Discussion in 'aMember Pro v.4' started by bennyuk1, Jun 24, 2013.

  1. bennyuk1

    bennyuk1 aMember Pro Customer

    Joined:
    Jan 12, 2012
    Messages:
    200
    I'm using code to create reports and print info.

    I use the following format which works:-

    $ticketlist = $user->getActiveProductIds();
    if (in_array("38",$ticketlist, TRUE)) { ... do something ... }

    however, I need to be able to check if products belong to user whether they are active or expired.

    How could I modify the above code to check for a product ID belonging to a user irrespective of whether it is active or expired?

    is there a function like $user->getActiveOrExpiredProductIds(); ?

    or could I combine a active and expired array to make an ActiveAndExpired array?

    Thanks
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Don't have an answer for you- looking for it myself.
    thread bump.

    David

Share This Page