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
  #1  
Old 12-06-2007, 07:46 AM
  SystemSkins's Avatar 
SystemSkins SystemSkins is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 350
 

Default 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?
__________________
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
  #2  
Old 12-06-2007, 07:50 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Thumbnails not showing in emails.

You need to call the PHP file, try this:

<img src="{$http_location}/image.php?productid={$product.productid}">
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-06-2007, 07:58 AM
  SystemSkins's Avatar 
SystemSkins SystemSkins is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 350
 

Default Re: Thumbnails not showing in emails.

Hrmmm, nope, still get the "missing image" box with the red X inside it.
__________________
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
  #4  
Old 12-06-2007, 08:03 AM
  SystemSkins's Avatar 
SystemSkins SystemSkins is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 350
 

Default 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 ?
__________________
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
  #5  
Old 12-06-2007, 08:22 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Thumbnails not showing in emails.

Yes, replace what you had with what I gave you.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 12-06-2007, 08:29 AM
  SystemSkins's Avatar 
SystemSkins SystemSkins is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 350
 

Default 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.
__________________
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
  #7  
Old 12-06-2007, 12:40 PM
  SystemSkins's Avatar 
SystemSkins SystemSkins is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 350
 

Default 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?
__________________
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
  #8  
Old 12-06-2007, 01:01 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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....
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 12-07-2007, 01:40 AM
 
Jerrad Jerrad is offline
 

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

Default Re: Thumbnails not showing in emails.

Did you try this inside product_thumbnail.tpl?

src="http://www.systemskins.com/image.php?productid={$productid}
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #10  
Old 12-07-2007, 07:22 AM
  SystemSkins's Avatar 
SystemSkins SystemSkins is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 350
 

Default 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}
__________________
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 07:52 AM.

   

 
X-Cart forums © 2001-2020