Detect if a visitor is a "Paid Customer"

Discussion in 'Customization & add-ons' started by umitbatu, Dec 15, 2012.

  1. umitbatu

    umitbatu aMember Pro Customer

    Joined:
    Dec 16, 2011
    Messages:
    16
    I can detect if a visitor is logged in or not by
    $lite = Am_Lite::getInstance();
    if($lite->isLoggedIn()){...}
    How can I detect if a visitor is a "Paid Customer" or not in a similiar fashion?
  2. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    Try

    Am_Lite::getInstance()->haveSubscriptions($search)
    returns true if user have active subscription to $search

    Or

    constant Am_Lite::ANY - subscription to any product
  3. umitbatu

    umitbatu aMember Pro Customer

    Joined:
    Dec 16, 2011
    Messages:
    16
    Works fine, thanks.

Share This Page