Copy of PDF-Invoice

Discussion in 'Customization & add-ons' started by akdesign, Nov 2, 2008.

  1. akdesign

    akdesign New Member

    Joined:
    Jan 20, 2008
    Messages:
    4
    Is there any possibilty to send a copy of each pdf-invoice to the admin? :confused:
  2. neutron

    neutron New Member

    Joined:
    Jul 29, 2008
    Messages:
    16
    I have a different variation of this. Is it possible to auto-generate each pdf invoice once the user subscribes and store a copy in a protected location on our server?

    I'm asking because we're going to customize the pdf invoice to create income tax receipts na dwe'd like to have a copy stored locally for each user.

    Further, is it possible to only generate receipts for qualified products (i.e. not generate receipts for products which we decide are not income tax deductible?)
  3. guylewis

    guylewis Member

    Joined:
    Oct 10, 2005
    Messages:
    56
    hi, I would like to know how to get the pdf invoices sent to me too. Is there a way to add a single additional email by default? The text information via mail is OK but it would be good to get the pdf instead.

    Thanks
  4. djs79

    djs79 New Member

    Joined:
    Oct 13, 2009
    Messages:
    5
    hello,

    Did anyone ever come up with an answer for this question? We're running in to the same issue, where we would like a copy of the PDF Invoice sent to our admin address.

    Any insight would be appreciated!
    thanks!
  5. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    In /amember/common.inc.php find function mail_payment_user and at the bottom of this function find this:
    Code:
        mail_customer($u['email'], $parsed_mail,
            null, null, $attachments, false,
            $u['name_f'] . ' ' . $u['name_l']);
    
    
    change to
    Code:
        mail_customer($u['email'], $parsed_mail,
            null, null, $attachments, false,
            $u['name_f'] . ' ' . $u['name_l']);
        mail_customer($config['admin_email'], $parsed_mail,
            null, null, $attachments, false,
            $u['name_f'] . ' ' . $u['name_l']);
    
    
  6. rapid

    rapid New Member

    Joined:
    Jan 26, 2007
    Messages:
    26
    Alex,
    This code change works in 3.0.8, but not on 3.1.8. Do you have any suggestion?

    Sary
  7. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    It should work with 3.1.8 as well. Did you got any errors?

Share This Page