Author Topic: PDF attachment to order confirmation mail  (Read 5768 times)

boddiznor

  • Beginner
  • *
  • Posts: 5
PDF attachment to order confirmation mail
« on: May 19, 2010, 13:42:04 pm »
Somebody knows how to make PDF attachment to order confirmation mail?

Have seen in ps_checkout.php and ps_main.php. But I'm not sure hos to write this code for making an attachment.

Any help would be appreciated!

boddiznor

  • Beginner
  • *
  • Posts: 5
Re: PDF attachment to order confirmation mail
« Reply #1 on: May 20, 2010, 10:44:43 am »
Nobody done this before?

I have managed to make virtuemart generate two different mail and sending them. One confirmation and one for the PDF. BUT: I havent figured out how to make an attachment to the second mail.

Any help would be very appreciated! 

msptrooper31

  • Beginner
  • *
  • Posts: 3
Re: PDF attachment to order confirmation mail
« Reply #2 on: May 21, 2010, 07:43:57 am »
Sorry I can't help you with this issue, but I am trying to figure out how to generate two different emails. Can you share what you did?

boddiznor

  • Beginner
  • *
  • Posts: 5
Re: PDF attachment to order confirmation mail
« Reply #3 on: May 21, 2010, 09:30:09 am »
Of Course :)

In administrator/components/com_virtuemart/classes
1. ps_checkout.php: Create a function like the "email_receipt"-function starting on line 1761.
2. ps_main.php: Create a function like the "vmMail"-function starting on line 548.

In component/com_virtuemart/themes/default/templates/order_email
1. copy the confirmation_email.tpl.php and name the new file something like confirmation_email_2.tpl.php
2. Change the content of this mail, this is your second mail sendt to the costumer

Go back to administrator/components/com_virtuemart/classes and change the line "$shopper_html = $template->fetch('order_emails/confirmation_email.tpl.php');" of your new "email_receipt"-function to ""$shopper_html = $template->fetch('order_emails/confirmation_email_2.tpl.php');".

DONE!

boddiznor

  • Beginner
  • *
  • Posts: 5
Re: PDF attachment to order confirmation mail
« Reply #4 on: May 31, 2010, 12:21:08 pm »
Nobody made a PDF attachment to order confirmation mail? WTF? Looks like I need to solve this by myself then :)

Nyggen81

  • Beginner
  • *
  • Posts: 9
Re: PDF attachment to order confirmation mail
« Reply #5 on: December 16, 2014, 14:41:18 pm »
Can anyone make this changes also for virtuemart 2.x.x?
Because I have no  ....../classes/

Thanks!