View Single Post
  #53  
Old 06-03-2010, 08:02 AM
 
adriant adriant is offline
 

Senior Member
  
Join Date: May 2006
Posts: 190
 

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

None of these seemed to work for me in 4.3 so decided to fiddle about with and see if I can get it going.

It would appear to me that the current code is for images that are held in the database, I may be wrong.

Also when you look at the code from the 'sent' email, it appears that it is not sending the complete url for the site.

Here is what I did, it may be clumsy, my apologies.

in mail/html/send2friend.tpl
added the following line above {$product.descr}<br />

{include file="stf_product_thumbnail.tpl" productid=$product.productid product=$product.product}</a>

Then I made a copy of

skin1/product_thumbnail.tpl

and called it

stf_product_thumbnail.tpl

then on the line that reads

image.php?type={$type|default:"T"}&amp;id={$produc tid}

I changed it to

http:\\www.your-url.eu\your-dir\image.php?type={$type|default:"T"}&amp;id={$pr oductid}

and it seems to work.

* I just previewd this message and the editor seems to have put an odd space the word 'productid' - there shouldn't be a space *
__________________
Xcart gold Plus V4.7.12
REBoot(REdux)

https://www.serpro.co.uk
Reply With Quote