skolbrenash wrote:...both have been customized in previous versions.
1. Open \Libraries\Nop.Services\Messages\MessageTokenProvider.cs file (version 2.40)
2. Find 'ProductListToHtmlTable' method
3. It has the following code
//add download link
if (_downloadService.IsDownloadAllowed(opv))
{
//TODO add a method for getting URL (use routing because it handles all SEO friendly URLs)
string downloadUrl = string.Format("{0}download/getdownload?opvId={1}", _webHelper.GetStoreLocation(false), opv.OrderProductVariantGuid);
string downloadLink = string.Format("<a class=\"link\" href=\"{0}\">{1}</a>", downloadUrl, _localizationService.GetResource("Messages.Order.Product(s).Download", languageId));
sb.AppendLine(" (");
sb.AppendLine(downloadLink);
sb.AppendLine(")");
}
Do the same in your customized template.
P.S. Keep in mind that the download link is visible only when a download of a certain product is allowed (_downloadService.IsDownloadAllowed(opv)).
P.P.S. There was an issue with wrong locale resource in version 2.40. It was fixed in changeset
02a746ffe23d