| ||||||||||
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 |
#11
|
|||||||
|
|||||||
Hi, did you ever figured this out? I have the same issue with 4.0.11 - Invoce looks just fine, send to friend and order email - no image, thanks, Andy
__________________
X-Cart version 3.5.9 (online) X-Cart Version 4.0.19 (online) X-Cart Version 4.1.3 (in dev) PHP 4.4.4 MySQL 4.1.21 |
|||||||
#12
|
|||||||
|
|||||||
Hi andreas.
I've had no luck solving this. But the way I did it the tell-a-friend email works properly - complete with product thumbnail. The emails without images are the order email and wishlist email. A few days ago walteis posted a topic with something simular, with the difference that he managed to have a wishlist email which 'only' misses the first image. The rest of the products al have images! You can find it here: http://forum.x-cart.com/viewtopic.php?t=16841 No idea what causes this and it's a pity that nobody else seems to know it either.
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#13
|
|||||||
|
|||||||
Ok, got it to work, but it's really, really ugly.
In mail/html/sendall2friend.tpl add this code: Code:
where xxxxxx is a product that we no longer sell but is still in the database. In reality, xxxxxx just has to be a product ID that is NOT in the products array coming into the wishlist. I chose an old product to ensure that it would never be in that array. I don't like this kludge one bit, but working is better than not working, eh? Walt
__________________
X-cart Gold 4.1.7 on Linux/Apache. |
|||||||
#14
|
|||||||
|
|||||||
Hi walteis,
Didn't the code in my first post work for you? Code:
With this code the tell-a-friend email shows a product thumbnail.
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#15
|
|||||||
|
|||||||
That's the code I used from the start - but if you recall the first one would never display. The little kludge I gave above will solve that problem.
Walt
__________________
X-cart Gold 4.1.7 on Linux/Apache. |
|||||||
#16
|
|||||||
|
|||||||
But tell a friend emails can only include one product and wishlist
emails can have several products. Please correct me if I'm wrong.
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#17
|
|||||||
|
|||||||
Ah, I see the problem - I listed the wrong template. It should be wishlist_sendall2friend.tpl.
Good catch. Walt
__________________
X-cart Gold 4.1.7 on Linux/Apache. |
|||||||
#18
|
|||||||
|
|||||||
Aha, now I understand the mix-up
But I'm not sure where to put the code in the email template and what to use for the "xxxxxx" product id. Is it possible you show your wishlist_sendall2friend.tpl? And did you tried this yet with the order comfirmation email? Thanks, walteis
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#19
|
|||||||
|
|||||||
Ok, here's my wishlist_sendall2friend.tpl:
Code:
We just created a dummy product (16193) to use. HTH, Walt
__________________
X-cart Gold 4.1.7 on Linux/Apache. |
|||||||
#20
|
|||||||
|
|||||||
Thanks alot walteis, got the wishlist email working now!
Any idea if it will work this way with the order comfirmation email?
__________________
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
|