Morten Hilmer Posted July 25, 2013 Share Posted July 25, 2013 (edited) I just added a free e-book to my store. After checking out the customer receives an email (product_download) but the link in the email looks like this: {virtualProducts} and it is not clickable:( Any suggestions? All the best Morten Hilmer Edited July 29, 2013 by El Patron (see edit history) Link to comment Share on other sites More sharing options...
Morten Hilmer Posted July 26, 2013 Author Share Posted July 26, 2013 Anyone who knows were I may be able to get some help with the issue. I have searched the google for some time without result. It is hard to move on without this function. All the best Morten Hilmer Link to comment Share on other sites More sharing options...
El Patron Posted July 26, 2013 Share Posted July 26, 2013 are you using a custom theme or the default theme? What version of ps? remember if you are not getting responses it's most likely due to lack of detail, make sure to be detailed in your posts, theme/versions etc... 1 Link to comment Share on other sites More sharing options...
Morten Hilmer Posted July 26, 2013 Author Share Posted July 26, 2013 (edited) Thanks El Patron. Here are my details: PrestaShop version: 1.5.4.1 URL: http://naturforlaget.dk/webshop/ Theme: autumn This is how the download_product looks like: Hej {firstname} {lastname} Din e-bog kan nu downloades Tak for din ordre hos {shop_name}! Din e-bog nu kan downloades ved at benytte følgende link(s): {virtualProducts} Du kan se din ordre og downloade din faktura fra "Ordreoversigt" under din konto ved at klikke på "Min konto" i vores webshop. Hvis du har en gæstekonto, kan du følge din ordre via "Gæstesporing" i vores webshop. {shop_name} Everything looks right in the test email i receive except that the {virtualProducts} doesn´t become a link. Please let me know if I can provide you with more information. All the best Morten Edited July 26, 2013 by Morten Hilmer (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted July 26, 2013 Share Posted July 26, 2013 classes/OrderHistory.php calls the mail funciton, it sets up the array with the link to the downloadable product. check that you do not have any overrides for this class in override/classes make sure that the OrderHistory.php has not been modified by looking at the file last updated date using ftp it's difficult (at least for me) to 'guess' what the issue might be. I don't link to recommend that folks use the default theme to test malfunctions but this is a good way to isolate if the problem is theme related. 1 Link to comment Share on other sites More sharing options...
Morten Hilmer Posted July 26, 2013 Author Share Posted July 26, 2013 Thanks a lot I will try later today and give feedback here. All the best Morten Link to comment Share on other sites More sharing options...
Morten Hilmer Posted July 27, 2013 Author Share Posted July 27, 2013 No OrderHistory in the override folder. The OrderHistory is in the classes/order folder and I have attached it here. The date is the same as most of the other documents. Hope someone knows some tricks:) OrderHistory.php Link to comment Share on other sites More sharing options...
El Patron Posted July 28, 2013 Share Posted July 28, 2013 You might find something useful in the following bug report. http://forge.prestashop.com/browse/PSCFV-8705 there have been several issues reported through the forge when the product is free. Try this to make sure, change the free download to non-free and retest. Here is a list of forge reports similar/same as you issue: https://www.google.com/search?q=prestashop+1.5.4.1++forge+no+virtual+downwload+link&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a 1 Link to comment Share on other sites More sharing options...
Morten Hilmer Posted July 29, 2013 Author Share Posted July 29, 2013 El Patron: Thank you so much for your help. You have no idé how happy I am now where everything seems to work. It is so kind of you to take your time to help people like me. For everyone else who has the same issue, this solved my problem: http://forge.prestas...owse/PSCFV-8705 I changed the line and set the email temp in the status to: payment. When a customer buys a product they will get 3 email: order confirmation, download link and payment confirmation. All the best Morten 1 Link to comment Share on other sites More sharing options...
Recommended Posts