Display custom image field in email

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

I need to display the custom image field in the order notification email.

Currently it only displays a link to the image and not the actual image.


Please help.

Last edit: 11 years 10 months ago by neil@sm.co.za.

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

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

I think that you want to display the image and not the image field.
To do that you have to edit the mail "order status notification" in the menu System > Emails.

Then replace the code displaying the link by the code to display an image.

How to change email text ?

You just have to go in System -> Emails (Business edition only), then click on the email that you want to edit.
You just have to change the text in this view. You can also unpublish emails there.

www.hikashop.com/fr/support/documentation/faq.html#translation

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

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

Hi there,

Thank you for your reply, however, what I meant was, we have a custom field to upload images that is used to create the customers product. The image they have uploaded via this custom field (file upload) must show in the email and currently, only the link to that image is showing.

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

  • Posts: 82817
  • Thank you received: 13357
  • MODERATOR
11 years 10 months ago #85208

Hi,

There is no option to do that.
You can try to remove the code

if($class=='admin_email'){
			return parent::show($field,$value,$class);
		}
from the file administrator/components/com_hikashop/classes/field.php
However, if you're not logged in to your backend when looking at your email, you won't see the image as the access will be forbidden. That's why we only display the link on the email.

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

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

alright thanks

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

Time to create page: 0.069 seconds
Powered by Kunena Forum