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

Add a product thumbnail to tell-a-friend email & invoice

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #31  
Old 11-28-2005, 10:36 AM
 
Jerrad Jerrad is offline
 

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

Default

All my images are already in the file system.
Displaying product thumbails for the "tell a friend"-emails works great, it simply won't work with the confirmation emails...

Any ideas or suggestions?
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #32  
Old 11-28-2005, 10:38 AM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default

no sorry,

I would have thought that the same code inserts would do the trick.

I just thought the image location may be causing the issues.
__________________
vs 4.1.12
Reply With Quote
  #33  
Old 12-07-2005, 04:52 PM
 
tangodancer tangodancer is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 32
 

Default

Jerrad,

I tried your code in 4.0.14 and the picture shows a placeholder but not the actual image. Is there a difference with version 4.0.14? Also, how do I get it to pull the picture externally from a server on the internet rather then embedding it in the message, so spam engines etc don't assume its spam or junk mail. Any ideas?

Thanks!
__________________
Tango Dancer
X-Cart Gold Version 4.0.14, X-Affiliate, AOM, X-RMA
Reply With Quote
  #34  
Old 07-31-2006, 05:30 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

did anybody get this to work on the order confirmation email?

thumbnails in the order confirmation email
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #35  
Old 12-16-2006, 10:25 AM
 
Brow Brow is offline
 

Advanced Member
  
Join Date: Nov 2006
Location: Indiana
Posts: 26
 

Default Re: Add a product thumbnail to tell-a-friend email & invoice

Guys, how can I get this to work with product options as well?

It works great with the product, but I also need it to show the product option as well.

Any ideas?
Reply With Quote
  #36  
Old 06-15-2007, 06:09 PM
  shipmerchant's Avatar 
shipmerchant shipmerchant is offline
 

eXpert
  
Join Date: Mar 2005
Posts: 361
 

Talking Re: Add a product thumbnail to tell-a-friend email & invoice

Here is the code I used to add the product image to the email invoice, this actually adds an image colum too.

First of two entries:

Code:
<TH bgColor="#cccccc">{$lng.lbl_product}</TH> {* line 15 below added to display product image column on email invoice*} <TH bgColor="#cccccc">{$lng.lbl_image}</TH>


Then on the same file
find:

Code:
{* include file="product_thumbnail.tpl" productid=$product.productid image_x=$config.Appearance.thumbnail_width product=$product.product tmbn_url=$product.tmbn_url *} <TD align="center"> <img src="{$http_location}/image.php?productid={$product.productid}" width="75"> </TD>


On v4.1.7 its L45 to 47 you could vary the width as well just change the "75" value above.

Enjoy!
__________________
Mil Mascaras
Live Xcart Site #1-V- 4.1.8
Live Xcart site # 2-V 4.4.3
CDSEO Mod - Firetank MM30 - 7DANA- The bestTemplates!
Linux - EWD Host Servers awesome service!
AlteredCart One Page Checkout
Reply With Quote
  #37  
Old 03-06-2008, 12:29 PM
  divinechic's Avatar 
divinechic divinechic is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 78
 

Default Re: Add a product thumbnail to tell-a-friend email & invoice

I tried this mod in 4.1.9 Gold and it didn't seem to work. Does anyone know how to get this to work for this version of x-cart?

Quote:
Originally Posted by Jerrad
I thought it would be nice if tell-a-friend email's, besides a description and link, also a thumbnail of the product showed.
Therefore I put the following code into skin1/mail/html/send2friend.tpl :

Code:
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail"}


Which results in:
http://home.zonnet.nl/jumpers/tellafriend.jpg

I did the same with skin1/mail/html/order_data.tpl which results in:
http://home.zonnet.nl/jumpers/invoice.jpg
Now customers can see a thumbnail of the product they ordered in the invoice which shows up in checkout and orderstatus.

Only problem is the order comfirmation email. Somehow the thumbnail(s) of the ordered product(s) won't show up. It just shows the "no image available" thumbnail. Same goes for the wishlist email, btw.
http://home.zonnet.nl/jumpers/invoice_email.jpg
Furthermore, I would like to reduce the size of the thumbnails. Not for the whole shop, but only for the thumbs when they used for the above.

I hope that somebody else finds a way that the order comfirmation email also shows a thumb of the product.
Any advise how to reduce the thumbnails is also welcome.

Thanks!
__________________
X-Cart Gold version 4.1.9
Reply With Quote
  #38  
Old 03-06-2008, 01:39 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Add a product thumbnail to tell-a-friend email & invoice

Quote:
Originally Posted by divinechic
I tried this mod in 4.1.9 Gold and it didn't seem to work. Does anyone know how to get this to work for this version of x-cart?

try it with product.variantid and type=W or a combo of one or the other...

Code:
{include file="product_thumbnail.tpl" productid=$product.variantid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="W"}
__________________
Doms
kube v4.1.9
Reply With Quote
  #39  
Old 03-06-2008, 03:19 PM
  divinechic's Avatar 
divinechic divinechic is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 78
 

Default Re: Add a product thumbnail to tell-a-friend email & invoice

I am a little confused as to what you mean. I copied the code as you put it an it didn't work. What do you mean by

"try it with product.variantid and type=W or a combo of one or the other..."
__________________
X-Cart Gold version 4.1.9
Reply With Quote
  #40  
Old 03-06-2008, 03:22 PM
  divinechic's Avatar 
divinechic divinechic is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 78
 

Default Re: Add a product thumbnail to tell-a-friend email & invoice

Here is my sendtofriend code with the code you gave me, it isn't working, should I do something different?

Code:
{* $Id: send2friend.tpl,v 1.3.2.1 2006/11/29 09:31:11 max Exp $ *} {config_load file="$skin_config"} {include file="mail/mail_header.tpl"} {assign var=max_truncate value=$config.Email.max_truncate}{math assign="max_space" equation="x+5" x=$max_truncate}{assign var="max_space" value="%-"|cat:$max_space|cat:"s"} {$lng.eml_hello} {$lng.eml_send2friend|substitute:"sender":$name} {$product.product} =========================================== {include file="product_thumbnail.tpl" productid=$product.variantid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="W"} {$product.descr} {$lng.lbl_price}: {include file="currency.tpl" value=$product.taxed_price} {$lng.eml_click_to_view_product}: {$catalogs.customer}/product.php?productid={$product.productid} {include file="mail/signature.tpl"}
__________________
X-Cart Gold version 4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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:26 AM.

   

 
X-Cart forums © 2001-2020