![]() |
Thumbnails not showing in emails.
I have created my customer invoice & shipping notification to include thumbnails of the products they ordered. It looks fine when you view the invoice on the web but when it is emailed to the customer the thumbnails are missing images.
Here is the coding that I inserted into mail/html/order_data.tpl to show the thumbnails Code:
{include file="product_thumbnail.tpl" productid=$product.productid} Can someone tell me how to write this so that the thumbnails show up in emails? Is it as easy as just adding http://www.systemskins.com/ in front of these? or am I asking too much? |
Re: Thumbnails not showing in emails.
You need to call the PHP file, try this:
<img src="{$http_location}/image.php?productid={$product.productid}"> |
Re: Thumbnails not showing in emails.
Hrmmm, nope, still get the "missing image" box with the red X inside it. :(
|
Re: Thumbnails not showing in emails.
Quote:
You mean to replace Code:
{include file="product_thumbnail.tpl" productid=$product.productid} With Code:
<img src="{$http_location}/image.php?productid={$product.productid}"> ?? Or just add your code into ? |
Re: Thumbnails not showing in emails.
Yes, replace what you had with what I gave you.
|
Re: Thumbnails not showing in emails.
yeah... it didn't work. Still getting a missing image like before.
I've even tried adding in the http://www.systemskins.com instead of the {$http_location} and no luck. |
Re: Thumbnails not showing in emails.
I've tried everything I could think of using your code and making stuff up. no luck. I just don't know why it wont pull the images from my server. It works fine when displaying the sales receipt in the orders history in the browser. But the email that I get has a missing thumbnail image. :(
{include file="product_thumbnail.tpl" productid=$product.productid}<br /> This one works when viewing in the browser when looking up orders history. But you get a missing image with the red x in emails. I have tried all these: {include file="http://www.systemskins.com/skin1/product_thumbnail.tpl" productid=$product.productid} {include file="https://www.systemskins.com/skin1/product_thumbnail.tpl" productid=$product.productid} <img src="http://www.systemskins.com/image.php?productid={$product.productid}"> <img src="http://www.systemskins.com/image.php?productid=$product.productid"> <img src="{$http_location}/image.php?productid={$product.productid}"> Any other suggestions? |
Re: Thumbnails not showing in emails.
sorry, getting images to display correctly in e-mails is always tough, and I have never tried to use X-Cart thumbnails in an e-mail. Perhaps someone else around here has....
|
Re: Thumbnails not showing in emails.
Did you try this inside product_thumbnail.tpl?
src="http://www.systemskins.com/image.php?productid={$productid} |
Re: Thumbnails not showing in emails.
I haven't done anything to product_thumbnail.tpl
I have no idea where I should put that: {* $Id: product_thumbnail.tpl,v 1.19.2.1 2007/07/09 05:00:35 svowl Exp $ *} {if $config.Appearance.show_thumbnails eq "Y" or ($type ne "T" and $type ne "")}<img{if $id ne ''} id="{$id}"{/if} src="{if $tmbn_url}{$tmbn_url}{else}{if $full_url}{$http_location}{else}{$xcart_web_dir}{/if}/image.php?type={$type|default:"T"}&id={$produc tid}{/if}"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} alt="{$product|escape}" />{/if} |
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 $ *} 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 |
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 ? |
All times are GMT -8. The time now is 07:59 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.