- Posts: 19
- Thank you received: 1
adding attachment to email notification
- ilan.power
-
Topic Author
- Offline
Less
More
12 years 8 months ago #141129
by ilan.power
adding attachment to email notification was created by ilan.power
--HikaSerial -- : 1.8
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 2.5.11
Hello,
is there a way to add an attachment to the email "order status confirmation" when an order is confirmed, but the attached file would change according to the product ordered.
for example if a user ordered product A, he would receive a user manual or installation instruction for product A. but for product B he would receive the manual/install instruction for product B.
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 2.5.11
Hello,
is there a way to add an attachment to the email "order status confirmation" when an order is confirmed, but the attached file would change according to the product ordered.
for example if a user ordered product A, he would receive a user manual or installation instruction for product A. but for product B he would receive the manual/install instruction for product B.
Please Log in or Create an account to join the conversation.
12 years 8 months ago #141160
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic adding attachment to email notification
Hi,
By override in the emails (thanks to HikaShop business ; menu System > Emails) you can add some PHP code and you can access to the $mail object.
The mail object can contains attachments though $mail->attachments.
You should also access to the $this->mailer object to add the attachments yourself.
To put your PHP code, the best is to use the "preload" email. You should find all required data (order, products, etc) in this file.
Regards,
By override in the emails (thanks to HikaShop business ; menu System > Emails) you can add some PHP code and you can access to the $mail object.
The mail object can contains attachments though $mail->attachments.
You should also access to the $this->mailer object to add the attachments yourself.
To put your PHP code, the best is to use the "preload" email. You should find all required data (order, products, etc) in this file.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.146 seconds