Page 1 of 1

Urgent help needed

Posted: Sat Jul 27, 2013 1:51 pm
by cyclopse
I want to attach a file in the order confirmation mail and i m trying to attach it using
editing the file catalog/model/checkout/order.php

Code: Select all

$mail->addAttachment('sizechart.jpg');
i want to attach a size chart in the confirmation email.
but it is not working plzzzz help me.

Re: Urgent help needed

Posted: Sat Jul 27, 2013 4:31 pm
by MarketInSG
put the FULL PATH to the size chart

Re: Urgent help needed

Posted: Sat Jul 27, 2013 4:34 pm
by alin
Put your sizechart.jgp in image directory and add this code

Code: Select all

$file = DIR_IMAGE . 'sizechart.jpg';
if (file_exists($file)) {
			$mail->addAttachment($file);
		}
Hope this help

Thanks