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

Adding images to wishlist html emails

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-13-2005, 01:29 PM
 
walteis walteis is offline
 

Advanced Member
  
Join Date: Jan 2003
Location: USA
Posts: 65
 

Default Adding images to wishlist html emails

I've trying to add images to the wishlist email, and I'm getting a strange error - the image of the first item is always the "No Image found" image. All the other product's images will display normally.

Here's the template:

Code:
{* $Id: wishlist_sendall2friend.tpl,v 1.3.2.1 2004/10/21 07:51:07 max Exp $ *} {config_load file="$skin_config"} <FONT size="2"> {$lng.eml_mail_header_part1} {$config.Company.company_name} {$lng.eml_mail_header_part2_wishlist} </FONT> {$lng.lbl_hello} {section name=num loop=$wl_products} {if $smarty.section.num.first} {$userinfo.firstname} {$userinfo.lastname} {if $smarty.section.num.total eq 1} {$lng.eml_has_recommended}: {else} {$lng.lbl_gift_registry_msg}: {/if} {/if} <HR noshade size="1"> <FONT color="#AA0000">{$wl_products[num].product}</FONT> <TABLE border="0" cellpadding="0" cellspacing="0"><TR><TD> {$wl_products[num].fulldescr|truncate:250:"..."}</TD></TR></TABLE> {include file="product_thumbnail.tpl" productid=$wl_products[num].productid image_x=$wl_products[num].image_x image_y=$wl_products[num].image_y product=$wl_products[num].product full_url="Y" id="product_thumbnail"} {$lng.lbl_price}: <FONT color="#00AA00">{include file="currency.tpl" value=$wl_products[num].taxed_price|default:$wl_products[num].price}</FONT> {/section} <HR noshade size="1"> {$lng.eml_please_click_link}: {$catalogs.customer}/cart.php?mode=friend_wl&wlid={$wlid} {include file="mail/html/signature.tpl"}

This is in 4.0.7

TIA,
Walt
__________________
X-cart Gold 4.1.7 on Linux/Apache.
Reply With Quote
  #2  
Old 02-13-2005, 02:09 PM
 
Jerrad Jerrad is offline
 

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

Default

Hi walteis,
I've tried to do the same thing with the wishlist emails, with the difference that my
emails showed no images at all...
The same goes for the order comfirmation emails - no images also.
But strange enough it works for the send-to-friend emails and for the
invoices which customers can see in their order status.

You can have a look what I've done:
http://forum.x-cart.com/viewtopic.php?t=15757

I've tried your product thumbnail code and I get the same strange error
as you - no image available for the first product, and the rest are ok.

So, one step closer to succes...
Hopefully somebody know what we're doing wrong.
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #3  
Old 02-13-2005, 02:27 PM
 
walteis walteis is offline
 

Advanced Member
  
Join Date: Jan 2003
Location: USA
Posts: 65
 

Default

Jerrad,

I see you are getting the same strange URL for the image source:
Code:
[img]cid:image.php[/img]

This is only on the *first* image tag, all the others are correct.


Walt
__________________
X-cart Gold 4.1.7 on Linux/Apache.
Reply With Quote
  #4  
Old 02-13-2005, 03:13 PM
 
Jerrad Jerrad is offline
 

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

Default

Exactly, and I don't understand why it only happens with the
first product of the list.
Not that I understand the rest of x-cart...
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 02:57 AM.

   

 
X-Cart forums © 2001-2020