Jump to content

guybrush07

Members
  • Posts

    7
  • Joined

  • Last visited

1 Follower

Profile Information

  • Location
    Greece
  • Activity
    Other

guybrush07's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Hello, same problem here! With that code i can attach the invoice on mail after order is paid>>>>i mean payment accepted i added these lines on Mail.php if(strpos($template,'payment')) { $message->attach(new Swift_Message_Attachment(file_get_contents("/pdf-invoice.php?id_order=" . $template_vars['{id_order}']), "invoice.pdf", "application/pdf"));} The problem now is that i m attaching a blank mail! Any way to fix blank mails? I think something is wrong with my "path" of generated pdfs. Result i m getting in payment mails is an attached blank file with name "invoice.pdf" 0kb
  2. I already did that and it's enabled but that option in "status" is for front panel attachments and its working good! I want to attach invoice on a specific email template "payment" in every order!
  3. OK yesterday i made some research and finally i attached invoices.pdf on mails but still cant make it work good! the problem now is that i see blank pdf file i added these lines on Mail.php if(strpos($template,'payment')) { $message->attach(new Swift_Message_Attachment(file_get_contents("/pdf-invoice.php?id_order=" . $template_vars['{id_order}']), "invoice.pdf", "application/pdf"));} Any way to fix blank mails? I think something is wrong with my "path" of generated pdfs. Result i m getting in payment mails is an attached blank file with name "invoice.pdf" 0kb
  4. Hello, I want to auto-attach every invoice on Emails of accepted-paid orders of customers. Is this possible to happen ? I cant make it work till now ! any solution? I m using latest version of prestashop!
  5. there is no "Localhost/prestashop/api" folder where did u enable permittions mod_rewrite!
×
×
  • Create New...