adding attachment to email notification

  • Posts: 19
  • Thank you received: 1
10 years 9 months ago #141129

--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.

Please Log in or Create an account to join the conversation.

  • Posts: 26150
  • Thank you received: 4026
  • MODERATOR
10 years 9 months ago #141160

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,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum