Skip to main content

Adding uploaded image to email order notification

More
13 years 8 months ago #84716 by neil@sm.co.za
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.

More
13 years 8 months ago #85038 by Xavier
Hi,

You have to edit the mail "order status notification" in System > Emails.
Replace the line:
Code:
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.

More
13 years 8 months ago #85053 by neil@sm.co.za
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.203 seconds
Powered by Kunena Forum