Help with credits plugin

Discussion in 'aMember Pro v.4' started by visitmaniac, Feb 4, 2013.

  1. visitmaniac

    visitmaniac New Member

    Joined:
    Oct 24, 2009
    Messages:
    1
    I have the credits plugin installed and need to modify it. I need to be able to find the amount entered in additional->Number of credits on the edit products page after the purchase so I can update a custom field.
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Here is how you can get it:
    PHP:
    // PRODUCTID is ID of product for which you want to get number if credits specified in setup. 

    $credits Am_Di::getInstance()->productTable->load(PRODUCTID)->data()->get('credits');

Share This Page