| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Add a product thumbnail to tell-a-friend email & invoice | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Add a product thumbnail to tell-a-friend email & invoice
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:
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 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
|
#2
|
|||||||
|
|||||||
Nice work Jerrad. I can't help you with the images in the e-mail (it is hard enough getting the images in the store to function correctly!) but I think I can help you with the resizing issue. Try replacing this:
Code:
with this: Code:
Where 100 is whatever number you want the x dimension to be. You could also get rid of the x variable and set the dimension for y as well. This worked fine for me in products.tpl, I don't see why it shouldn't work in the e-mail templates. Just a thought!
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
Thanks for the compliment and for your help, balinor!
Resizing the thumbnails the way you described works great! I've changed the 100 into 50 so that the thumbs still show the products good enough but don't blow up the whole email and invoice layout. http://home.zonnet.nl/jumpers/invoice_2.jpg I really hope that somebody know or can figure out why the thumbs won't show up in the order confirmation email. Thanks again!
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#4
|
|||||||||
|
|||||||||
Great MOD!
|
|||||||||
#5
|
|||||||
|
|||||||
Thanks alot, adpboss!
But it would be a really great mod if we could do the same with the order confirmation & wishlist emails. Don't you think so? Maybe you can look into it...
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#6
|
|||||||||
|
|||||||||
No problemo!
Order confirmation = ADP task # 9784 Wishlist email = ADP task # 9785 I should be able to get to these in 2007. Bookmark this thread! |
|||||||||
#7
|
|||||||
|
|||||||
Great! Shall I contact you in 2007 or just wait till you pm me?
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#8
|
|||||||||
|
|||||||||
LOL. I'll post. Just don't switch cart software befoe 2k7 ok?
|
|||||||||
#9
|
|||||||||
|
|||||||||
you would need to refer to the php file that displys the image if using code outside of xcart
have a look at how its done in the generate html links option when you search products in admin
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#10
|
|||||||
|
|||||||
Thanks for the reply, shan!
I just took a look between the admin php files but could you please be so kind to point me to the file that generates the html links? Furthermore; the product thumbnail in the tell-a-friend emails does show up, so the used code for generating thumbs does work outside x-cart. It's only not working for the comfirmation and wishlist emails. EDIT: In skin1/admin/main I found product_links.tpl which contains the code that produces the html thumbnail link Code:
But it makes no difference when I use this code instead of the code mentioned in my first post... Therefore I took a look at the source code of the emails and noticed the following: Working tell-a-friend email - Code:
Not working comfirmation email - Code:
The first one finds the right thumbnail and the second email has a empty IMG id, only has a image.php and therefore shows the not-available-image (?) But strange enough it does show the right product name... Any thoughts/ideas about this, shan or anybody else?
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
|
|||
X-Cart forums © 2001-2020
|