X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Adding images to wishlist html emails (https://forum.x-cart.com/showthread.php?t=12160)

walteis 02-13-2005 01:29 PM

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

Jerrad 02-13-2005 02:09 PM

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... :lol:
Hopefully somebody know what we're doing wrong.

walteis 02-13-2005 02:27 PM

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

Jerrad 02-13-2005 03:13 PM

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... :lol:


All times are GMT -8. The time now is 07:04 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.