View Single Post
  #28  
Old 04-18-2007, 08:26 AM
 
Prest0 Prest0 is offline
 

Advanced Member
  
Join Date: Dec 2006
Posts: 31
 

Default Re: Displaying download links after purchase

Quote:
X-Cart already has the code to do this, you just need to add it in. Open skin1/mail/html/order_data.tpl and add this code somewhere in the product listing (after the {foreach from=$products item=product} and before the next {/foreach}:

Code:
{if $active_modules.Egoods and $product.download_key and ($order.status eq "P" or $order.status eq "C")} <br /> <a href="{$catalogs.customer}/download.php?id={$product.download_key}" class="SmallNote" target="_blank">Download</a> {/if}

Bill, would you mind clarifying this a bit? What do you mean by x-cart already has the code to do this but you need to add it in? I'm using 4.1.6, and when I go to the tpl you referenced, I already find the code you mention. The only difference is that instead of the word "Download" is has
Code:
{$lng.lbl_download}
. Yet my invoices don't display download links.
__________________
Preston P. DuBose
12 to Midnight
midnightcellar.com

XCart Gold 4.1.8
3 tier flyout menu
Download Expander
Reply With Quote