Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Displaying download links after purchase

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #31  
Old 06-10-2007, 03:54 PM
 
ecollier2012 ecollier2012 is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 85
 

Default Re: Displaying download links after purchase

Bill,

I am not a developer - please speak in terms I can understand. Can you post an example mod that would allow me to display download links on invoices. Or - better yet - sell me a mod that works!


I am trying to switch to 4.1.7 and need to display download links on the invoices. I have implemented boomers mod in older versions of xcart but he no longer seems to support it. I have tried to get his mod to work in 4.1.7 with no luck.

Thanks
Ed
__________________
Xcart 4.2.1
Xcart 4.1.9
Reply With Quote
  #32  
Old 06-13-2007, 12:42 PM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default Re: Displaying download links after purchase

Quote:
Originally Posted by ecollier2012
Bill,

I am not a developer - please speak in terms I can understand. Can you post an example mod that would allow me to display download links on invoices. Or - better yet - sell me a mod that works!

The screenshots in post #29 are of invoices displayed immediately after the submit order button is pressed by a customer. This is not an email.

Just follow the 1 step in post 24 and the download link(s) will be on the invoice.
Reply With Quote
  #33  
Old 06-14-2007, 07:37 PM
 
ecollier2012 ecollier2012 is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 85
 

Default Re: Displaying download links after purchase

Thanks Bill,

The code you mentioned in post 24 already exists in the file skin1/mail/html/order_data.tpl! This is a clean install so my guess is that its now included in 4.1.X versions. I am testing 4.1.7

Even with the code you mentioned I do not get a link at the bottom of the invoice. Any other suggestions...


skin1/mail/html/order_data.tpl

{* $Id: order_data.tpl,v 1.29.2.6 2007/03/26 06:15:12 max Exp $ *}
<table cellspacing="0" cellpadding="0" width="100%" border="0">

<tr>
<td align="center"><font style="FONT-SIZE: 14px; FONT-WEIGHT: bold;">{$lng.lbl_products_ordered}</font></td>
</tr>

</table>

<table cellspacing="0" cellpadding="3" width="100%" border="1">

<tr>
<th width="60" bgcolor="#cccccc">{$lng.lbl_sku}</th>
<th bgcolor="#cccccc">{$lng.lbl_product}</th>
{if $order.extra.tax_info.display_cart_products_tax_ra tes eq "Y" and $_userinfo.tax_exempt ne "Y"}
<th nowrap="nowrap" width="100" bgcolor="#cccccc">{if $order.extra.tax_info.product_tax_name ne ""}{$order.extra.tax_info.product_tax_name}{else}{ $lng.lbl_tax}{/if}</th>
{/if}
<th nowrap="nowrap" width="100" bgcolor="#cccccc" align="center">{$lng.lbl_item_price}</th>
<th width="60" bgcolor="#cccccc">{$lng.lbl_quantity}</th>
<th width="60" bgcolor="#cccccc">{$lng.lbl_total}<br /><img height="1" src="{$ImagesDir}/spacer.gif" width="50" border="0" alt="" /></th>
</tr>

{foreach from=$products item=product}
<tr>
<td align="center">{$product.productcode}</td>
<td><font style="FONT-SIZE: 11px">{$product.product}</font>
{if $product.product_options ne '' && $active_modules.Product_Options}
<table>

<tr>
<td valign="top"><b>{$lng.lbl_options}:</b></td>
<td>{include file="modules/Product_Options/display_options.tpl" options=$product.product_options options_txt=$product.product_options_txt force_product_options_txt=$product.force_product_o ptions_txt}</td>
</tr>

</table>
{/if}
{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">{$lng.lbl_download}</a>
{/if}
</td>
{if $order.extra.tax_info.display_cart_products_tax_ra tes eq "Y" and $_userinfo.tax_exempt ne "Y"}
<td align="center">
{foreach from=$product.extra_data.taxes key=tax_name item=tax}
{if $tax.tax_value gt 0}
{if $order.extra.tax_info.product_tax_name eq ""}{$tax.tax_display_name} {/if}
{if $tax.rate_type eq "%"}{$tax.rate_value|formatprice:false:false:3}%{e lse}{include file="currency.tpl" value=$tax.rate_value}{/if}<br />
{/if}
{/foreach}
</td>
{/if}
<td align="right" nowrap="nowrap">{include file="currency.tpl" value=$product.display_price}&nbsp;&nbsp;</td>
<td align="center">{$product.amount}</td>
<td align="right" nowrap="nowrap">{math assign="total" equation="amount*price" amount=$product.amount price=$product.display_price|default:$product.pric e|default:0}{include file="currency.tpl" value=$total}&nbsp;&nbsp;</td>
</tr>
{/foreach}

{if $giftcerts ne ''}
{foreach from=$giftcerts item=gc}
<tr>
<td>&nbsp;</td>
<td nowrap="nowrap">
{$lng.lbl_gift_certificate}: {$gc.gcid}<br />
<div style="padding-left: 10px; white-space: nowrap;">
{if $gc.send_via eq "P"}
{$lng.lbl_gc_send_via_postal_mail}<br />
{$lng.lbl_mail_address}: {$gc.recipient_firstname} {$gc.recipient_lastname}<br />
{$gc.recipient_address}, {$gc.recipient_city},<br />
{if $gc.recipient_countyname ne ''}{$gc.recipient_countyname} {/if}{$gc.recipient_state} {$gc.recipient_country}, {$gc.recipient_zipcode}<br />
{$lng.lbl_phone}: {$gc.recipient_phone}
{else}
{$lng.lbl_recipient_email}: {$gc.recipient_email}
{/if}
</div>
</td>
{if $order.extra.tax_info.display_cart_products_tax_ra tes eq "Y" and $_userinfo.tax_exempt ne "Y"}
<td align="center">&nbsp;-&nbsp;</td>
{/if}
<td align="right" nowrap="nowrap">{include file="currency.tpl" value=$gc.amount}&nbsp;&nbsp;</td>
<td align="center">1</td>
<td align="right" nowrap="nowrap">{include file="currency.tpl" value=$gc.amount}&nbsp;&nbsp;</td>
</tr>
{/foreach}
{/if}

</table>
<table cellspacing="0" cellpadding="0" width="100%" border="0">

<tr>
<td align="right" width="100%" height="20"><b>{$lng.lbl_subtotal}:</b>&nbsp;</td>
<td align="right">{include file="currency.tpl" value=$order.display_subtotal}&nbsp;&nbsp;&nbsp;</td>
</tr>

{if $order.discount gt 0}
<tr>
<td align="right" height="20"><b>{$lng.lbl_discount}:</b>&nbsp;</td>
<td align="right">{include file="currency.tpl" value=$order.discount}&nbsp;&nbsp;&nbsp;</td>
</tr>
{/if}

{if $order.coupon and $order.coupon_type ne "free_ship"}
<tr>
<td align="right" height="20"><b>{$lng.lbl_coupon_saving}:</b>&nbsp;</td>
<td align="right">{include file="currency.tpl" value=$order.coupon_discount}&nbsp;&nbsp;&nbsp;</td>
</tr>
{/if}

{if $order.discounted_subtotal ne $order.subtotal}
<tr>
<td align="right" width="100%" height="20"><b>{$lng.lbl_discounted_subtotal}:</b>&nbsp;</td>
<td align="right">{include file="currency.tpl" value=$order.display_discounted_subtotal}&nbsp;&nb sp;&nbsp;</td>
</tr>
{/if}

{if $config.Shipping.disable_shipping ne 'Y'}
<tr>
<td align="right" height="20"><b>{$lng.lbl_shipping_cost}:</b>&nbsp;</td>
<td align="right">{include file="currency.tpl" value=$order.display_shipping_cost}&nbsp;&nbsp;&nb sp;</td>
</tr>
{/if}

{if $order.coupon and $order.coupon_type eq "free_ship"}
<tr>
<td align="right" height="20"><b>{$lng.lbl_coupon_saving}:</b>&nbsp;</td>
<td align="right">{include file="currency.tpl" value=$order.coupon_discount}&nbsp;&nbsp;&nbsp;</td>
</tr>
{/if}

{if $order.applied_taxes and $order.extra.tax_info.display_taxed_order_totals ne "Y"}
{foreach key=tax_name item=tax from=$order.applied_taxes}
<tr>
<td align="right" width="100%" height="20"><b>{$tax.tax_display_name}{if $tax.rate_type eq "%"} {$tax.rate_value|formatprice:false:false:3}%{/if}:</b>&nbsp;</td>
<td align="right">{include file="currency.tpl" value=$tax.tax_cost}&nbsp;&nbsp;&nbsp;</td>
</tr>
{/foreach}
{/if}

{if $order.payment_surcharge ne 0}
<tr>
<td align="right" height="20"><b>{if $order.payment_surcharge gt 0}{$lng.lbl_payment_method_surcharge}{else}{$lng.l bl_payment_method_discount}{/if}:</b>&nbsp;</td>
<td align="right">{include file="currency.tpl" value=$order.payment_surcharge}&nbsp;&nbsp;&nbsp;< /td>
</tr>
{/if}


{if $order.giftcert_discount gt 0}
<tr>
<td align="right" height="20"><b>{$lng.lbl_giftcert_discount}:</b>&nbsp;</td>
<td align="right">{include file="currency.tpl" value=$order.giftcert_discount}&nbsp;&nbsp;&nbsp;< /td>
</tr>
{/if}

<tr>
<td bgcolor="#000000" colspan="2"><img height="2" src="{$ImagesDir}/spacer_black.gif" width="100%" alt="" /></td>
</tr>

<tr>
<td align="right" bgcolor="#cccccc" height="25"><b>{$lng.lbl_total}:</b>&nbsp;</td>
<td align="right" bgcolor="#cccccc"><b>{include file="currency.tpl" value=$order.total}</b>&nbsp;&nbsp;&nbsp;</td>
</tr>

{if $_userinfo.tax_exempt ne "Y"}

{if $order.applied_taxes and $order.extra.tax_info.display_taxed_order_totals eq "Y"}
{foreach key=tax_name item=tax from=$order.applied_taxes}
<tr>
<td align="right" width="100%" height="20"><b>{$lng.lbl_including_tax|substitute: "tax":$tax.tax_display_name}{if $tax.rate_type eq "%"} {$tax.rate_value|formatprice:false:false:3}%{/if}:</b>&nbsp;</td>
<td align="right">{include file="currency.tpl" value=$tax.tax_cost}&nbsp;&nbsp;&nbsp;</td>
</tr>
{/foreach}
{/if}

{else}

<tr>
<td align="right" colspan="2" width="100%" height="20">{$lng.txt_tax_exemption_applied}</td>
</tr>

{/if}

</table>

{if $order.applied_giftcerts}
<br />
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td align="center"><font style="FONT-SIZE: 14px; FONT-WEIGHT: bold;">{$lng.lbl_applied_giftcerts}</font></td>
</tr>
</table>

<table cellspacing="1" cellpadding="0" width="100%" border="0">

<tr>
<th width="60" bgcolor="#cccccc">{$lng.lbl_giftcert_ID}</th>
<th bgcolor="#cccccc">{$lng.lbl_giftcert_cost}</th>
</tr>

{foreach from=$order.applied_giftcerts item=gc}
<tr>
<td align="center">{$gc.giftcert_id}</td>
<td align="right" nowrap="nowrap">{include file="currency.tpl" value=$gc.giftcert_cost}&nbsp;&nbsp;&nbsp;</td>
</tr>
{/foreach}

</table>
{/if}

{if $order.extra.special_bonuses ne ""}
{include file="mail/html/special_offers_order_bonuses.tpl" bonuses=$order.extra.special_bonuses}
{/if}
Attached Images
File Type: jpg screenshot.JPG (57.8 KB, 34 views)
__________________
Xcart 4.2.1
Xcart 4.1.9
Reply With Quote
  #34  
Old 06-14-2007, 07:46 PM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default Re: Displaying download links after purchase

Quote:
Originally Posted by ecollier2012
Thanks Bill,

The code you mentioned in post 24 already exists in the file skin1/mail/html/order_data.tpl! This is a clean install so my guess is that its now included in 4.1.X versions. I am testing 4.1.7

Even with the code you mentioned I do not get a link at the bottom of the invoice. Any other suggestions...

Your orders must be processed or completed. If you are testing the orders are probably queued. When you process live CC transactions the orders is set to processed, and the links are displayed.
Reply With Quote
  #35  
Old 06-14-2007, 07:48 PM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default Re: Displaying download links after purchase

After looking closer at the screenshot it looks like there is a download link there. It is kind of blurry so I can't tell for sure.
Reply With Quote
  #36  
Old 06-14-2007, 07:57 PM
 
ecollier2012 ecollier2012 is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 85
 

Default Re: Displaying download links after purchase

My fault - It is at the bottom of the invoice - and very hard to see. I will take your other suggestion and change it to a button instead.

Thanks for the instructions.....Its nice to see that X-Cart now has this feature built in by default.

Ed
Attached Images
File Type: jpg screenshot.JPG (41.5 KB, 44 views)
__________________
Xcart 4.2.1
Xcart 4.1.9
Reply With Quote
  #37  
Old 12-11-2011, 03:30 PM
 
lcg lcg is offline
 

Senior Member
  
Join Date: Feb 2007
Posts: 106
 

Default Re: Displaying download links after purchase

Just to be sure that the download link and button is seen, I added an image, text link and Alt tag using below code:

after:
options_txt=$product.product_options_txt}</TD>
</TR>
</TABLE>

Quote:

<!-- DOWNLOAD LINKS & IMAGE UNDER PRODUCT - START -->
{/if}
{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="HeadBox" target="_blank"><br>
<img src="../images/shop/dl-button.png" alt="Continue to the Product Download Section" width="48" height="48" border="0" /><br />
</a><a href="{$catalogs.customer}/download.php?id={$product.download_key}" class="SmallNote" target="_blank"> Continue to the Product Download Section.</a><br><small>(Above links will open a new browser window)</small></font>
<!-- DOWNLOAD LINKS & IMAGE UNDER PRODUCT - END -->



and right before:
{/if}
</TD>
{if $order.extra.tax_info.display_cart_products_tax_ra tes eq "Y"}

Seems to have worked for me, hope it helps someone else (I'm using 4.0.18 ...thanks to the contributors of this thread which made this possible.
Attached Images
File Type: jpg x-cart-invoice2.jpg (32.0 KB, 3 views)
__________________
XCart v.4.0.18

Last edited by lcg : 12-12-2011 at 04:16 PM. Reason: Wanted to add attachment
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:40 PM.

   

 
X-Cart forums © 2001-2020