How to add label to download link in email conformation

  • Posts: 56
  • Thank you received: 0
  • Hikashop Business
6 years 9 months ago #287959

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

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
6 years 9 months ago #287963

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 :

{LINEVAR:PRODUCT_DOWNLOAD}

The following user(s) said Thank You: hans1961

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

  • Posts: 56
  • Thank you received: 0
  • Hikashop Business
6 years 9 months ago #288017

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

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
6 years 9 months ago #288018

Hello,

In that case you should just change that line :

{LINEVAR:PRODUCT_DOWNLOAD}
By:
Download link: {LINEVAR:PRODUCT_DOWNLOAD}

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

  • Posts: 56
  • Thank you received: 0
  • Hikashop Business
6 years 9 months ago #288074

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

Attachments:

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

  • Posts: 1119
  • Thank you received: 114
6 years 9 months ago #288076

Hi,

Have you tried to add <br/> tag before? It should move it down to the new line. Like this:

<br/>Download link: {LINEVAR:PRODUCT_DOWNLOAD}

Thanks

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

  • Posts: 56
  • Thank you received: 0
  • Hikashop Business
6 years 9 months ago #288087

Please have a look at the attachment to see how this works out...
Kind regards, Hans

Attachments:

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

  • Posts: 306
  • Thank you received: 42
  • Hikamarket Multivendor Hikashop Business
6 years 9 months ago #288108

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:

$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/>';
			}

Attachments:
The following user(s) said Thank You: hans1961

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

  • Posts: 56
  • Thank you received: 0
  • Hikashop Business
6 years 9 months ago #288113

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.107 seconds
Powered by Kunena Forum