Skip to main content

How to add label to download link in email conformation

8 years 9 months ago #287959 by hans1961
-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.3
-- PHP version -- : 7.0
-- Browser(s) name and version -- : Firefox 58.0.2
-- Error-message(debug-mod must be tuned on) -- : Question about email configuration "Order status notification"

Hi there,

I hope you can help me with this question. Atteached you will find an image of the customer email after payment. It displays the download link to the product. I would like to add a clarifying label in front of the link. How can I do that? Thanks in advance.
Kind regards,
Hans

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

8 years 9 months ago #287963 by Mohamed Thelji
Hello,

The solution will be to directly edit the "HTML" code of your "" email, via "Hikashop->System->Emails" and add your clarifying label just before :
Code:
{LINEVAR:PRODUCT_DOWNLOAD}
The following user(s) said Thank You: hans1961

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

8 years 9 months ago #288017 by hans1961
Hi Mohamed,

Thanks for your answer. However, I can't seem to get it right. My added label appears either before or after the download link and there is a CR somewhere. I added my code (not modified) and two examples of emails.
I would like to have: "Download link: link".
Thanks in advance.

Kind regards,
Hans

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

8 years 9 months ago #288018 by Mohamed Thelji
Hello,

In that case you should just change that line :
Code:
{LINEVAR:PRODUCT_DOWNLOAD}
By:
Code:
Download link: {LINEVAR:PRODUCT_DOWNLOAD}

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

8 years 9 months ago #288074 by hans1961
That's what I tried before, but that is not going to work (see attachment). It's the CR somewhere causing this issue. Hope you can solve this.
Thanks in advance.

Hans

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

8 years 9 months ago #288076 by kyratn
Hi,

Have you tried to add <br/> tag before? It should move it down to the new line. Like this:
Code:
<br/>Download link: {LINEVAR:PRODUCT_DOWNLOAD}

Thanks

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

8 years 9 months ago #288087 by hans1961
Please have a look at the attachment to see how this works out...
Kind regards, Hans

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

8 years 9 months ago #288108 by trevsmiff
I have done something similar. All my downloads are pdf's so I added a pdf icon before the download link in the preload version around lin 245:
Code:
$t .= '<a href="'.hikashop_frontendLink('index.php?option=com_hikashop&ctrl=order&task=download&file_id='.$file->file_id.'&order_id='.$oid.$file_pos.$url_itemid).'"><img src=". . ./pdf.png"> '.$fileName.'</a><br/>'; }

The following user(s) said Thank You: hans1961

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

8 years 9 months ago #288113 by hans1961
Yes! This helped to achieve what I want.
Many thanks and kind regards,
Hans

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

Time to create page: 0.068 seconds
Powered by Kunena Forum