Hi everyone,
I have an question about the confirmation email that gets sent out to the customer after creating an order.
We have changed the catalog/model/checkout/order.php to include this line (around line 436):
$mail->addAttachment(DIR_IMAGE.'pdf/test.pdf');
After completing an order we get the pdf document attached in the confirmation email, but we want to only include this if say someone from country id 161 buys product from us otherwise it shouldn't be inlucded in the email.
Does anyone know how we can do this, I have searched the forum but didn't find anything about this in here.
Regards,
Thomas
Well, you can surround it with a conditional like this
you can change payment_country to shipping_country if you wish
Code: Select all
if($order_info['payment_country']=='Oman'){
$mail->addAttachment(DIR_IMAGE.'pdf/test.pdf');
}
Who is online
Users browsing this forum: No registered users and 98 guests