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

Thumbnails not showing in emails.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 12-07-2007, 07:51 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Re: Thumbnails not showing in emails.

I have version 4.0.12 and did the following to get thumbnails for all the email invoices and notifications:

First I made a new product_thumbnail.tpl in the same directory and called it product_thumbnail2.tpl

Code for product_thumbnail2.tpl:
Code:
{* $Id: product_thumbnail2.tpl,v 1.14 2004/06/24 09:53:29 max Exp $ *} {if $config.Appearance.show_thumbnails eq "Y"}<IMG id="{$id}" src="http://www.systemskins.com/image.php?productid={$productid}{if $file_upload_data.file_path}&tmp=y{/if}"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} alt="{$product|escape}" border="0">{/if}

After that I changed the order_data.tpl:
Code:
{include file="product_thumbnail2.tpl" productid=$product.productid image_x=60 product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail"}

I hope this helps. Good luck!

Jerrad
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #12  
Old 12-07-2007, 08:00 AM
  SystemSkins's Avatar 
SystemSkins SystemSkins is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 350
 

Default Re: Thumbnails not showing in emails.

Unfortunately it didnt work for me. I copied everything exactly, well, I changed my image_x=80 since my thumbnails are 80x80, (everything else is copy & paste). I just don't understand why. Everything makes sence, its just not showing up.

With what you told me above, I don't even get the thumbnail in the browser invoice.

Thanks for trying though.


I'm editing the order_data.tpl that is located in /skin1/mail/html should I be using the one in /skin1/mail ?
__________________
Doug Rock
X-cart Gold 4.1.9
_____________________________________
Altered Cart: 1-Page checkout
Firetank: Feed Manager
Website CM: CDSEO PRO
Website CM: Product A-Z Map
Website CM: Review Approval
Website CM: Site Map Pro
Qualiteam: Sales & Stats (free version)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 10:58 PM.

   

 
X-Cart forums © 2001-2020