I have a Configurable Product with Associated Products (Downloadable product(s)). When I place an order I want to receive an email with the links to the Downloadable product(s).
How can I set this in Magento?
I have tried:
- Changed the layout in the sales.xml app/design/frontend/base/default/layout/sales.xml
- Changed the template in app/design/frontend/base/default/template/email/order/items/order/default.phtml
Best Answer
I just came across the same problem. If the product is not downloadable by itself, but is a configurable product with an associated child which is downloadable, then the link is not rendered in the mails. A quick fix to this problem is to copy the template
email/order/invoice/items.phtml
to your own theme and edit the following if condition:With this condition in place, the child items are not rendered. I added another condition to it, so that child items are rendered if they are downloadable:
With this change, the download link appears in the invoice mail. The disadvantage of this method is that the item is rendered twice:
I now also came up with a nicer solution. Therefore, I changed the
email/order/invoice/items.phtml
template like this:The result looks much nicer now:
This works for other mails accordingly (e.g. under
email/order/items.phtml
for the normal order mail).