Jump to content

Virtual product - download link in customer e-mail


Recommended Posts

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

  • 3 weeks later...
  • 8 months later...

Find the file:

/classes/order/OrderHistory.php


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

  • 8 months later...
  • 1 year later...

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

×
×
  • Create New...