Markard Posted January 26, 2013 Share Posted January 26, 2013 Hi, I created virtual product. When I change state of order to state payed and download product (status is linked with e-mail template download_product.html) then in e-mail is: You have {nbProducts} product(s) now available for download using the following link(s): {virtualProducts} You can review your order and download your invoice from the "Order history" section of your customer account by clicking "My account" on our shop. I don´t no why is in mail {nbProducts} and {virtualProducts} and not the name of virtual product and link for download. in download-product.tpl is: <ul> {foreach from=$virtualProducts item=product} <li> <a href="{$product.link}">{$product.name}</a> {if isset($product.deadline)} expires on {$product.deadline} {/if} {if isset($product.downloadable)} downloadable {$product.downloadable} time(s) {/if} </li> {/foreach} </ul> Can you help me? Thx Mark Link to comment Share on other sites More sharing options...
kerryzhao Posted January 30, 2013 Share Posted January 30, 2013 I have the same problem...wait for solutions. Link to comment Share on other sites More sharing options...
vasikgreif Posted February 19, 2013 Share Posted February 19, 2013 Same here. Someonw knows fix for this, please? Link to comment Share on other sites More sharing options...
cajuma2012 Posted November 3, 2013 Share Posted November 3, 2013 Find the file:/classes/order/OrderHistory.phpif (Validate::isLoadedObject($order) && ($old_os instanceof OrderState) && ($new_os instanceof OrderState)) Change to:if (Validate::isLoadedObject($order) && ($new_os instanceof OrderState) And after: Copy the file: /mails/es/download-product.tpl in/mails/en/download-product.tpl Link to comment Share on other sites More sharing options...
vekia Posted November 4, 2013 Share Posted November 4, 2013 sounds promising, from what ps version this code is? Link to comment Share on other sites More sharing options...
caseyrock Posted July 31, 2014 Share Posted July 31, 2014 It still doesn't fix the problem for me. Besides I'm using /en version anyway. Anyone can help me? Prestashop 1.6 Link to comment Share on other sites More sharing options...
Walrus Posted January 24, 2016 Share Posted January 24, 2016 Hey, did you solve this problem? Am curious. It seems Prestashop silently send download_product email with a link on payment accepted. If you select the download_product template for any action, customer receives two copies, one with link, one without and the {nbProducts} variable added. What happens if you do NOT choose this template for any of the payment actions? Link to comment Share on other sites More sharing options...
Recommended Posts