Adding uploaded image to email order notification

  • Posts: 28
  • Thank you received: 0
11 years 10 months ago #84716

Good day,

I have an option for users to upload an image when buying the product. In other words, on the checkout page, there is also a custom upload field where the user will upload an image for us to see. (This image will be used when creating the users product). This works fine. The problem is that we would like to show this image that the user uploaded on the order confirmation email. Currently, we are only able to see the link of the image and if you click on it, it downloads, however, we need to see the actual image. How should we do this ?

T.I.A.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #85038

Hi,

You have to edit the mail "order status notification" in System > Emails.
Replace the line:

echo '<a href="'.hikashop_frontendLink('index.php?option=com_hikashop&ctrl=order&task=download&file_id='.$file->file_id.'&order_id='.$data->order_id.$file_pos.$url_itemid).'">'.$fileName.'</a><br/>';
By your custom code to display the picture, you can use the var "$file->file_pos" for the link of the image.

Don't forget to add a check on the file type.

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

  • Posts: 28
  • Thank you received: 0
11 years 10 months ago #85053

Thank you for the reply, I will try this.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum