New Payment vs Rebill....

Discussion in 'Customization & add-ons' started by amnforms, Aug 5, 2011.

  1. amnforms

    amnforms New Member

    Joined:
    Mar 24, 2010
    Messages:
    5
    So here is one that I can't seem to figure out. Every day when the rebills go through I get an email per successful transaction for each payment. In some instances, due to the credit card, the rebill fails and the user updates their info later that day and the new payment gets processed.

    I would like to know if there is a way to modify that payment email so that if it is a new subscription, it will show me a different message on the email I get. That way, it is very easy to know whether the email is related to a rebill or an actual new subscriber.

    Any help on this would be truly appreciated.
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    This can be done but will require customization in amember itself.
  3. amnforms

    amnforms New Member

    Joined:
    Mar 24, 2010
    Messages:
    5
    I dont mind changing code on the amember files themselves. Where can this be done?
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Function that send payment notifications for admin can be found in /amember/common,.inc.php:
    function mail_payment_admin($payment_id, $member_id){
    Template itself cvan be modified from ammeber CP -> Setup -> Email -> Admin payment notifications.
  5. amnforms

    amnforms New Member

    Joined:
    Mar 24, 2010
    Messages:
    5
    Thank for the insight on that. I have ran into this function before and have modified for other purposes. The one thing I could never figure out was how to create an if that would do a different message if it was a new product instead of a renewal on the subscription. This is where I have gotten stuc in the past and where I could use the help.

Share This Page