X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Download Expander - How to make link in online invoice larger (https://forum.x-cart.com/showthread.php?t=34076)

OpheliaPayne 09-20-2007 08:49 AM

Download Expander - How to make link in online invoice larger
 
Currently if a customer looks at their invoice online, the link to their download is teeny tiny in the invoice. It's found under the Product table, and under the product name. A lot of customers are missing it.

I would like to either make it HUGE or provide an image instead of the text link.

How would I go about doing this?

Thanks!

apanda 09-22-2007 01:07 AM

Re: Download Expander - How to make link in online invoice larger
 
Did you find where to change this? I've been searching through templates and can't seem to find the right location. I did find that skin1/mail/html/order_data.tpl is the place to change the link on the printable invoice and the one that is sent via email. However, it doesn't change the invoice that shows up in the orders history area. :-? :?:

apanda 09-22-2007 01:21 AM

Re: Download Expander - How to make link in online invoice larger
 
It turns out that was the right location. The problem is that the download link is assigned the css class "SmallNote". For some reason when I changed the font size in order_data.tpl, it changed the printable version but not the version in order details. I had to remove class="SmallNote" from the link in order for font changes to show up on the order details page. I suppose another alternative would be to assign that link a different css class that is more readable.

This is what you'll be looking for in skin1/mail/html/order_data.tpl
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">{$lng.lbl_download}</a>{/if}


HTH

OpheliaPayne 09-29-2007 06:53 PM

Re: Download Expander - How to make link in online invoice larger
 
Thank you so much. I went one step further and added an image instead of text... works mucho better!

ScrapProfessor 04-17-2008 05:47 PM

Re: Download Expander - How to make link in online invoice larger
 
Quote:

Originally Posted by OpheliaPayne
Thank you so much. I went one step further and added an image instead of text... works mucho better!


Does anyone know how I would go about adding my custom image to the invoices? (All the invoices a customer could/would see).

My image size is: 113x20 and it's called "download_button.jpg"

THANK YOU!

:D/

ScrapProfessor 04-18-2008 10:33 AM

Re: Download Expander - How to make link in online invoice larger
 
Nevermind. I figured it out. ;)


All times are GMT -8. The time now is 12:03 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.