| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Displaying download links after purchase | ||||
|
|
Thread Tools |
#31
|
|||||||
|
|||||||
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 |
|||||||
#32
|
|||||||||
|
|||||||||
Re: Displaying download links after purchase
Quote:
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. |
|||||||||
#33
|
|||||||
|
|||||||
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} </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} </td> </tr> {/foreach} {if $giftcerts ne ''} {foreach from=$giftcerts item=gc} <tr> <td> </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"> - </td> {/if} <td align="right" nowrap="nowrap">{include file="currency.tpl" value=$gc.amount} </td> <td align="center">1</td> <td align="right" nowrap="nowrap">{include file="currency.tpl" value=$gc.amount} </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> </td> <td align="right">{include file="currency.tpl" value=$order.display_subtotal} </td> </tr> {if $order.discount gt 0} <tr> <td align="right" height="20"><b>{$lng.lbl_discount}:</b> </td> <td align="right">{include file="currency.tpl" value=$order.discount} </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> </td> <td align="right">{include file="currency.tpl" value=$order.coupon_discount} </td> </tr> {/if} {if $order.discounted_subtotal ne $order.subtotal} <tr> <td align="right" width="100%" height="20"><b>{$lng.lbl_discounted_subtotal}:</b> </td> <td align="right">{include file="currency.tpl" value=$order.display_discounted_subtotal} &nb sp; </td> </tr> {/if} {if $config.Shipping.disable_shipping ne 'Y'} <tr> <td align="right" height="20"><b>{$lng.lbl_shipping_cost}:</b> </td> <td align="right">{include file="currency.tpl" value=$order.display_shipping_cost} &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> </td> <td align="right">{include file="currency.tpl" value=$order.coupon_discount} </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> </td> <td align="right">{include file="currency.tpl" value=$tax.tax_cost} </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> </td> <td align="right">{include file="currency.tpl" value=$order.payment_surcharge} < /td> </tr> {/if} {if $order.giftcert_discount gt 0} <tr> <td align="right" height="20"><b>{$lng.lbl_giftcert_discount}:</b> </td> <td align="right">{include file="currency.tpl" value=$order.giftcert_discount} < /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> </td> <td align="right" bgcolor="#cccccc"><b>{include file="currency.tpl" value=$order.total}</b> </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> </td> <td align="right">{include file="currency.tpl" value=$tax.tax_cost} </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} </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}
__________________
Xcart 4.2.1 Xcart 4.1.9 |
|||||||
#34
|
|||||||||
|
|||||||||
Re: Displaying download links after purchase
Quote:
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. |
|||||||||
#35
|
|||||||||
|
|||||||||
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.
|
|||||||||
#36
|
|||||||
|
|||||||
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
__________________
Xcart 4.2.1 Xcart 4.1.9 |
|||||||
#37
|
|||||||
|
|||||||
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:
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.
__________________
XCart v.4.0.18 Last edited by lcg : 12-12-2011 at 04:16 PM. Reason: Wanted to add attachment |
|||||||
|
|||
X-Cart forums © 2001-2020
|