X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Thumbnails not showing in emails. (https://forum.x-cart.com/showthread.php?t=35973)

SystemSkins 12-06-2007 07:46 AM

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?

balinor 12-06-2007 07:50 AM

Re: Thumbnails not showing in emails.
 
You need to call the PHP file, try this:

<img src="{$http_location}/image.php?productid={$product.productid}">

SystemSkins 12-06-2007 07:58 AM

Re: Thumbnails not showing in emails.
 
Hrmmm, nope, still get the "missing image" box with the red X inside it. :(

SystemSkins 12-06-2007 08:03 AM

Re: Thumbnails not showing in emails.
 
Quote:

Originally Posted by balinor
You need to call the PHP file, try this:

<img src="{$http_location}/image.php?productid={$product.productid}">


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 ?

balinor 12-06-2007 08:22 AM

Re: Thumbnails not showing in emails.
 
Yes, replace what you had with what I gave you.

SystemSkins 12-06-2007 08:29 AM

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.

SystemSkins 12-06-2007 12:40 PM

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?

balinor 12-06-2007 01:01 PM

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....

Jerrad 12-07-2007 01:40 AM

Re: Thumbnails not showing in emails.
 
Did you try this inside product_thumbnail.tpl?

src="http://www.systemskins.com/image.php?productid={$productid}

SystemSkins 12-07-2007 07:22 AM

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"}&amp;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}


All times are GMT -8. The time now is 09:36 AM.

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