| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Thumbnails not showing in emails. | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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:
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) |
|||||||||
#2
|
|||||||
|
|||||||
![]() 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 |
|||||||
#3
|
|||||||||
|
|||||||||
![]() 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) |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Quote:
You mean to replace Code:
With Code:
?? 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) |
|||||||||
#5
|
|||||||
|
|||||||
![]() Yes, replace what you had with what I gave you.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||||
|
|||||||||
![]() 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) |
|||||||||
#7
|
|||||||||
|
|||||||||
![]() 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) |
|||||||||
#8
|
|||||||
|
|||||||
![]() 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 |
|||||||
#9
|
|||||||
|
|||||||
![]() 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 |
|||||||
#10
|
|||||||||
|
|||||||||
![]() 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}
__________________
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) |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|