Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[contribution] Send_order_html_email


Elazar

Recommended Posts

Have found another missing variable in the original fileset.

 

The billing adress is not included in the /catalog/checkout_process.php

find

$Varshipaddress =''.tep_address_label($customer_id, $sendto).'';

 

replace with

 

$Varshipaddress =''.tep_address_label($customer_id, $sendto).'';
$Varadpay = ''.tep_address_label($customer_id, $billto).'';

 

today i´m working, especially for german B2B customers, on a small modification which allows you to

 

1. show subtotal for 7 % and 19 % Tax excluding the tax

2. show tax for the above subtotals

 

It is 99,99 % ready to go

 

If anyone is interested in please post

Link to comment
Share on other sites

  • Replies 344
  • Created
  • Last Reply

Top Posters In This Topic

Sorry Elazar,

 

i didnt have defined a variable for the language set.

 

Does the contrib know works for you ?

Dear Shetani !!

 

Now it's working great after I changed the code according to your instructions !!

If you were near me you would have get a big kiss ! :D

 

Please notice that there should be a little text correction in the rowmod additional:

 

Text:

 

----------------------------------------------------------------------------

If you would like to have additional informations as tax or price per unit and so on in the html email, as well as an product image

you have to modify

 

the $orderarray in checkout_process

 

f.e.

 

$orderarray[$i] = array( "Model" => nl2br("" . $order->products[$i]['name'] . $products_ordered_attributes . "\n" ),

"Modelnr"=> nl2br($order->products[$i]['model'] . "\n"),

"Qty" => nl2br($order->products[$i]['qty'] . "\n"),

"Price" => nl2br($currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . "\n"));

 

to something like that

 

$orderarray[$i] = array("Image" => "<img src=".HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $orders_picture['products_image']." width='90px' border='0'>",

"Model" => nl2br("" . $order->products[$i]['name'] . $products_ordered_attributes . "\n" ),

"Modelnr"=> nl2br($order->products[$i]['model'] . "\n"),

"Qty" => nl2br($order->products[$i]['qty'] . "\n"),

"Unitprice" => nl2br($currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], 1) . "\n"),

"Tax" => nl2br($order->products[$i]['tax'] ."\n"),

"Price" => nl2br($currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . "\n");

--------------------------------------------------------------------------------------------------

 

So in the last line of the code above it should be:

"Price" => nl2br($currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . "\n"));

 

Thanks again Shetani for your kind help my friend !!!

Great day for you and also for coopco !!

 

Regards,

Elazar

Link to comment
Share on other sites

Hope that you didnt realy wont to kiss me ;)

 

If you are using microsoft outlook express please open the email and then open file > propertries (or options) and then go to details > show source

and paste the showing code right here.

Link to comment
Share on other sites

Hope that you didnt realy wont to kiss me ;)

 

If you are using microsoft outlook express please open the email and then open file > propertries (or options) and then go to details > show source

and paste the showing code right here.

 

Hi Shetani.. :D

 

Here is the code..

 

Return-Path: <[email protected]>

Received: from mr10.bezeqint.net (mr10.bezeqint.net [192.115.104.80])

by mas28.bezeqint.net (MOS 3.7.4b-GA)

with ESMTP id BXC24683;

Wed, 1 Aug 2007 23:11:02 +0300 (IDT)

Received: from serv01.siteground134.com (ns1.siteground134.com [67.15.250.7])

by mr10.bezeqint.net (MOS 3.7.5a-GA)

with ESMTP id KOB98065;

Wed, 1 Aug 2007 23:11:00 +0300 (IDT)

Received: from shakedtr by serv01.siteground134.com with local (Exim 4.66)

(envelope-from <[email protected]>)

id 1IGKX9-0007O1-P1

for [email protected]; Wed, 01 Aug 2007 15:11:03 -0500

To: "ronen lavi" <[email protected]>

Subject: úäìéê ääæîðä

From: [email protected]

X-Mailer: osCommerce Mailer

Message-Id: <[email protected]>

Date: Wed, 01 Aug 2007 15:11:03 -0500

X-AntiAbuse: This header was added to track abuse, please include it with any abuse report

X-AntiAbuse: Primary Hostname - serv01.siteground134.com

X-AntiAbuse: Original Domain - bezeqint.net

X-AntiAbuse: Originator/Caller UID/GID - [32698 1201] / [47 12]

X-AntiAbuse: Sender Address Domain - serv01.siteground134.com

X-Antivirus: AVG for E-mail 7.5.476 [269.10.25/926]

Mime-Version: 1.0

Content-Type: multipart/mixed; boundary="=======AVGMAIL-46B0E8E14892======="

 

--=======AVGMAIL-46B0E8E14892=======

Content-Type: multipart/alternative; boundary="=_f3996feb56a21ed95042de233923e7fa"

 

--=_f3996feb56a21ed95042de233923e7fa

Content-Type: text/plain; charset=windows-1255

Content-Transfer-Encoding: 7bit

 

äé÷ø/ä ronen lavi úåãä òì ù÷ðéú îàéúðå äéåí.ìäìï ôøèé äæîðúê:   îñôø äæîðä: 69úàøéê äæîðä:: øáéòé 01 àåâåñè, 2007çùáåðéú îôåøèú:   úîåðä ôøéè ãâí ëîåú àçåæ äîò"î îçéø éçéãä ëåìì îò"î ñä"ë: DDR266 1GB Kingston Memory

KVR266X64C25/1G

5

15.5

$11.55

$57.75

ñéëåí-áéðééí: $57.75

Request FREIGHT or INTERNATIONAL Shipping Quote (We will contact you with a shipping quote.): $0.00

ëåìì: $57.75

ëúåáú ìîùìåç: ëúåáú äçéåá: mecory

ronen lavi

lev 10

ramat-gan, 52305

Israel mecory

ronen lavi

lev 10

ramat-gan, 52305

Israel àåôï äúùìåí: á÷ùä ì÷áì ôøèéí áãáø öåøú äúùìåí ùðéúï ìùìí òáåø ääæîðä

Upon receiving your quote, you may choose to process the order. You will need to contact us with your payment information at this time. Your order will not ship until the full payment is received.

 

  ëúåáú äãåàø äæå ðéúðä ìðå òì éãéê àå ò"é àçã îì÷åçåúéðå. àí ÷éáìú äåãòä æå áèòåú, àðà òãëï àåúðå áä÷ãí ìàéîééì- [email protected] © 2007 pcmemory.co.il

--=_f3996feb56a21ed95042de233923e7fa

Content-Type: text/html; charset=windows-1255

Content-Transfer-Encoding: quoted-printable

 

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=

=3Diso-8859-1"> <base href=3D"http://shaked-trading.com/"> <link rel=3D"sty=

lesheet" type=3D"text/css" href=3D"stylesheetmail.css"> </head><body><table=

width=3D"600" border=3D"0" cellpadding=3D"0" cellspacing=3D"0"> <tr> <t=

d><table width=3D"600" border=3D"0" cellpadding=3D"0" cellspacing=3D"0"> =

<tr> <td><table width=3D"100%" border=3D"0" cellpadding=3D"0" ce=

llspacing=3D"0" bgcolor=3D"#999999" background=3D"http://shaked-trading.c=

om/images/pixel_trans.gif"> <tr> <td><font face=3D"verdana, =

arial" size=3D"-1"><a href=3D"http://shaked-trading.com/"><IMG src=3D"http:=

//shaked-trading.com/images/oscommerce.gif" border=3D0></a> </font></td> =

</tr> </table></td> </tr> <tr> <td><table width=3D"100%"=

border=3D"0" cellpadding=3D"3" cellspacing=3D"3" bgcolor=3D"#f9f9f9" bac=

kground=3D"http://shaked-trading.com/images/pixel_trans.gif"> <tr>=

<td class=3D"main"> <b><br><br>=E4=E9=F7=F8/=E4 ronen lavi </b>=

<br> =FA=E5=E3=E4 =F2=EC =F9=F7=F0=E9=FA =EE=E0=E9=FA=F0=E5 =E4=E9=E5=ED.<b=

r>=EC=E4=EC=EF =F4=F8=E8=E9 =E4=E6=EE=F0=FA=EA:</td> </tr> =

<tr height=3D"14" class=3D"detail"> <td height=3D"14"> </t=

d> </tr> <tr class=3D"detail"> <td class=3D"main=

"> =EE=F1=F4=F8 =E4=E6=EE=F0=E4: <STRONG> 69</STRONG><br>=FA=E0=F8=E9=EA=

=E4=E6=EE=F0=E4:: <strong>=F8=E1=E9=F2=E9 01 =E0=E5=E2=E5=F1=E8, 2007</str=

ong><br><a href=3D"http://shaked-trading.com/account_history_info.php?order=

_id=3D69">=E7=F9=E1=E5=F0=E9=FA =EE=F4=E5=F8=E8=FA:</a></td> </tr> =

<tr height=3D"14"> <td height=3D"14"> </td> =

</tr> </table></td> </tr> <tr> <td><table width=3D"600" border=3D"0" =

cellpadding=3D"3" cellspacing=3D"1" bgcolor=3Dwhite> <tr> =

<td class=3D"boxmail" align=3D"left" width=3D"100">=FA=EE=E5=F0=E4<=

/td> <td class=3D"boxmail" align=3D"left" width=3D"300">=F4=F8=

=E9=E8</td> <td class=3D"boxmail" align=3D"left" width=3D"160"=

>=E3=E2=ED</td> <td class=3D"boxmail" align=3D"center" width=

=3D"40">=EB=EE=E5=FA</td> <td class=3D"boxmail" align=3D"cente=

r" width=3D"40">=E0=E7=E5=E6 =E4=EE=F2"=EE</td> <td class=3D"b=

oxmail" align=3D"center" width=3D"80">=EE=E7=E9=F8 =E9=E7=E9=E3=E4 =EB=E5=

=EC=EC =EE=F2"=EE</td> <td class=3D"boxmail" align=3D"right" w=

idth=3D"80"> =F1=E4"=EB:</td> </tr> <tr><td width=3D"100"=

valign=3D"middle" align=3D"center" class=3D"boxmailgris0"><img src=3Dhttp:=

//shaked-trading.com/images/no_image.jpg width=3D'90px' border=3D'0'></td> =

<td width=3D"300" valign=3D"top" align=3D"left" class=3D"boxmailgris0">D=

DR266 1GB Kingston Memory<br /><br /><br></td> <td width=3D"160" valign=

=3D"top" align=3D"left" class=3D"boxmailgris0">KVR266X64C25/1G<br /><br />=

<br></td> <td width=3D"40" valign=3D"top" align=3D"center" class=3D"boxm=

ailgris0">5<br /><br /><br></td> <td width=3D"40" valign=3D"top" align=

=3D"center" class=3D"boxmailgris0">15.5<br /><br /><br></td> <td width=3D=

"80" valign=3D"top" align=3D"right" class=3D"boxmailgris0">$11.55<br /><br =

/><br></td> <td width=3D"80" valign=3D"top" align=3D"right" class=3D"boxm=

ailgris0">$57.75<br /><br /><br></td></tr> <tr height=3D"14"> =

<td height=3D"14" width=3D"100" valign=3D"top" align=3D"left" class=

=3D"tableur"></td> <td colspan=3D"6" width=3D"700" valign=3D"top"=

align=3D"right" class=3D"tableur">=F1=E9=EB=E5=ED-=E1=E9=F0=E9=E9=ED: $57.=

75<br /><br>Request FREIGHT or INTERNATIONAL Shipping Quote (We will contac=

t you with a shipping quote.): $0.00<br /><br>=EB=E5=EC=EC: $57.75<br /><br=

></td> </tr> </table></td> </tr> <tr> <td><table width=

=3D"600" border=3D"0" cellpadding=3D"3" cellspacing=3D"1" bgcolor=3Dwhite>=

<tr> <td width=3D"300" class=3D"boxmail">=EB=FA=E5=E1=FA=

=EC=EE=F9=EC=E5=E7:</td> <td width=3D"300" class=3D"boxmail">=EB=

=FA=E5=E1=FA =E4=E7=E9=E5=E1:</td> </tr> <tr> <t=

d width=3D"300" valign=3D"top" align=3D"left" class=3D"boxmailgris">mecory<=

br /><br>ronen lavi<br /><br>lev 10<br /><br>ramat-gan, 52305<br /><br>Isra=

el</td> <td width=3D"300" valign=3D"top" align=3D"left" class=3D"=

boxmailgris">mecory<br /><br>ronen lavi<br /><br>lev 10<br /><br>ramat-gan,=

52305<br /><br>Israel</td> </tr> </table></td> </tr> <tr>=

<td><table width=3D"600" border=3D"0" cellpadding=3D"3" cellspacing=3D"=

1" bgcolor=3Dwhite> <tr> <td class=3D"boxmail">=E0=E5=F4=

=EF =E4=FA=F9=EC=E5=ED:</td> </tr> <tr> <td clas=

s=3D"boxmailgris">=E1=F7=F9=E4 =EC=F7=E1=EC =F4=F8=E8=E9=ED =E1=E3=E1=F8 =

=F6=E5=F8=FA =E4=FA=F9=EC=E5=ED =F9=F0=E9=FA=EF =EC=F9=EC=ED =F2=E1=E5=F8 =

=E4=E4=E6=EE=F0=E4<br /><br>Upon receiving your quote, you may choose to pr=

ocess the order. You will need to contact us with your payment information =

at this time. Your order will not ship until the full payment is received.<=

br /><br><br /><br></td> </tr> </table></td> </tr> <tr> =

<td><table width=3D"600" border=3D"0" cellpadding=3D"3" cellspacing=3D"1"=

bgcolor=3Dwhite> <tr height=3D"14"> <td height=3D"14">&n=

bsp;</td> </tr> <tr class=3D"main"> <td class=3D"f=

ooter">=EB=FA=E5=E1=FA =E4=E3=E5=E0=F8 =E4=E6=E5 =F0=E9=FA=F0=E4 =EC=F0=E5 =

=F2=EC =E9=E3=E9=EA =E0=E5 =F2"=E9 =E0=E7=E3 =EE=EC=F7=E5=E7=E5=FA=E9=F0=E5=

. =E0=ED =F7=E9=E1=EC=FA =E4=E5=E3=F2=E4 =E6=E5 =E1=E8=F2=E5=FA, =E0=F0=E0 =

=F2=E3=EB=EF =E0=E5=FA=F0=E5 =E1=E4=F7=E3=ED =EC=E0=E9=EE=E9=E9=EC- <a href=

=3D"mailto:[email protected]">[email protected]</a><br>Copyri=

ght © 2007 <a href=3D"http://shaked-trading.com/">pcmemory.co.il</a> <=

/td> </tr> </table></td> </tr></table></td></tr></table></bo=

dy></html>

--=_f3996feb56a21ed95042de233923e7fa--

--=======AVGMAIL-46B0E8E14892=======

Content-Type: text/plain; x-avg=cert; charset=us-ascii

Content-Transfer-Encoding: quoted-printable

Content-Disposition: inline

Content-Description: "AVG certification"

 

No virus found in this incoming message.

Checked by AVG Free Edition.

Version: 7.5.476 / Virus Database: 269.10.25/926 - Release Date: 7/29/2007 1=

1:14 PM

 

 

Thanks again shetani for your help..

 

Regards,

Elazar

Link to comment
Share on other sites

Have found another missing variable in the original fileset.

 

The billing adress is not included in the /catalog/checkout_process.php

find

$Varshipaddress =''.tep_address_label($customer_id, $sendto).'';

 

replace with

 

$Varshipaddress =''.tep_address_label($customer_id, $sendto).'';
$Varadpay = ''.tep_address_label($customer_id, $billto).'';

 

today i´m working, especially for german B2B customers, on a small modification which allows you to

 

1. show subtotal for 7 % and 19 % Tax excluding the tax

2. show tax for the above subtotals

 

It is 99,99 % ready to go

 

If anyone is interested in please post

 

Thanks for picking that up Frank. I did not notice that the billing address was not showing.

Link to comment
Share on other sites

Hi Elazar,

 

seems that you didnt have set the rights for the folder correct

 

http://www.shaked-trading.com/images/no_image.jpg

 

is the path to the image but i´m not allowed to view it. ;)

 

Thanks Shetani !!

 

That means that I need to have some changes in my cpanel regarding the image folder..

 

I think that I disable the image folder from direct access.. :thumbsup:

 

So I will change it and see the results.. I will do it tomorrow since the time now is 2:30 am and I need to get some sleep :)

 

Thanks again my friend !!

 

Goodnight,

Elazar

Link to comment
Share on other sites

My last try:

 

Who knows my proble? (have posted this before, and yet never got a solution)

 

 

I can't get the Products description, Quantity and product price in there. I have removed and added this contribution about 3 times.. (and yes, have downloaded latest version) but nothing changes. How come it all works for you guyz but not for me?

 

I don't understand the code products_modele to where is that supposed to point? It's not in my database?

 

The text emails work alright, so it can't be my data?

 

Please, please!

:'(

 

Dear ttime,

 

please check the file called sendhtmlmail_row_mod_additions.txt in the latest update pack which could be find HERE

and work in the needed modifications, especially in the checkout_process.php which are missing in your case.

 

This should be

 

Modifications in catalog/checkout_process.php 

Find 
______________________

if (!tep_not_null($order->products[$i]['model'])) {
   $products_model .= ''.EMAIL_NO_MODEL.'';
	 }
else
   $products_model .= nl2br($order->products[$i]['model'] . "\n");


$products_price .= nl2br($currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty']) . "\n");
______________________

replace with
______________________

if (!tep_not_null($order->products[$i]['model'])) {
   $products_model .= ''.EMAIL_NO_MODEL.'';
	 }
else{
   $products_model .= nl2br($order->products[$i]['model'] . "\n");
	}; 

$orderarray[$i] = array( "Model" => nl2br("" . $order->products[$i]['name'] . $products_ordered_attributes . "\n" ),
						 "Modelnr"=> nl2br($order->products[$i]['model'] . "\n"),
						 "Qty" => nl2br($order->products[$i]['qty'] . "\n"),
						 "Price" => nl2br($currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty'])  . "\n"));

_______________________

 

 

 

Best regards Frank

Edited by shetani
Link to comment
Share on other sites

Hey Frank,

 

I have added and removed the codes a couple of times, so I think I added and removed some of the rowmod code. But I did check it when it was there.

I did what you discribe below, but still no change.

 

I think it has to do with what it’s calling for (sorry for my explaining: PHP is still rather new to me).

Article and Modele > I don’t see those fields in my database. Should that be products and products_model?

 

 

Dear ttime,

 

please check the file called sendhtmlmail_row_mod_additions.txt in the latest update pack which could be find HERE

and work in the needed modifications, especially in the checkout_process.php which are missing in your case.

 

This should be

 

Modifications in catalog/checkout_process.php 

Find 
______________________

if (!tep_not_null($order->products[$i]['model'])) {
   $products_model .= ''.EMAIL_NO_MODEL.'';
	 }
else
   $products_model .= nl2br($order->products[$i]['model'] . "\n");


$products_price .= nl2br($currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty']) . "\n");
______________________

replace with
______________________

if (!tep_not_null($order->products[$i]['model'])) {
   $products_model .= ''.EMAIL_NO_MODEL.'';
	 }
else{
   $products_model .= nl2br($order->products[$i]['model'] . "\n");
	}; 

$orderarray[$i] = array( "Model" => nl2br("" . $order->products[$i]['name'] . $products_ordered_attributes . "\n" ),
						 "Modelnr"=> nl2br($order->products[$i]['model'] . "\n"),
						 "Qty" => nl2br($order->products[$i]['qty'] . "\n"),
						 "Price" => nl2br($currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty'])  . "\n"));

_______________________

Best regards Frank

Link to comment
Share on other sites

Hey Frank,

 

I have added and removed the codes a couple of times, so I think I added and removed some of the rowmod code. But I did check it when it was there.

I did what you discribe below, but still no change.

 

I think it has to do with what it’s calling for (sorry for my explaining: PHP is still rather new to me).

Article and Modele > I don’t see those fields in my database. Should that be products and products_model?

 

The article and modele are only variables which were definied internaly. The original informations comes from the database tables

orders and orders_products where you will be able to find the fields products_model and products_name and so on.

 

Because you have worked in some (a lot of) other contributions and if i´m right, the failure belongs to this line

if (($do_email) && ($payment_class->code != 'idealm')) {

 

because it eliminates the following code

	if (!tep_not_null($order->products[$i]['model'])) {
   $products_model .= ''.EMAIL_NO_MODEL.'';
	 }
else{
   $products_model .= nl2br($order->products[$i]['model'] . "\n");
	}; 

$orderarray[$i] = array( "Model" => nl2br("" . $order->products[$i]['name'] . $products_ordered_attributes . "\n" ),
						 "Modelnr"=> nl2br($order->products[$i]['model'] . "\n"),
						 "Qty" => nl2br($order->products[$i]['qty'] . "\n"),
						 "Price" => nl2br($currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty'])  . "\n"));
}

 

will take a look at this later but - it make no sense ;) So the reason for should be the idealm contrib ?!

Edited by shetani
Link to comment
Share on other sites

Frank, that's it! :lol:

I took this line out, and it works fine!

 

Thanks sooo much... Now up to the next and last problem I still have before I can take it online. (but that's another topic ;-)

 

 

The article and modele are only variables which were definied internaly. The original informations comes from the database tables

orders and orders_products where you will be able to find the fields products_model and products_name and so on.

 

Because you have worked in some (a lot of) other contributions and if i´m right, the failure belongs to this line

if (($do_email) && ($payment_class->code != 'idealm')) {

 

because it eliminates the following code

	if (!tep_not_null($order->products[$i]['model'])) {
   $products_model .= ''.EMAIL_NO_MODEL.'';
	 }
else{
   $products_model .= nl2br($order->products[$i]['model'] . "\n");
	}; 

$orderarray[$i] = array( "Model" => nl2br("" . $order->products[$i]['name'] . $products_ordered_attributes . "\n" ),
						 "Modelnr"=> nl2br($order->products[$i]['model'] . "\n"),
						 "Qty" => nl2br($order->products[$i]['qty'] . "\n"),
						 "Price" => nl2br($currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty'])  . "\n"));
}

 

will take a look at this later but - it make no sense ;) So the reason for should be the idealm contrib ?!

Link to comment
Share on other sites

Take care. removing only this line may not solve your problem completly. because they is additional code from the idealm contrib

 

please try, before you delete this line

to change the code from

 

 

	if (!tep_not_null($order->products[$i]['model'])) {
   $products_model .= ''.EMAIL_NO_MODEL.'';
	 }
else{
   $products_model .= nl2br($order->products[$i]['model'] . "\n");
	}; 

$orderarray[$i] = array( "Model" => nl2br("" . $order->products[$i]['name'] . $products_ordered_attributes . "\n" ),
						 "Modelnr"=> nl2br($order->products[$i]['model'] . "\n"),
						 "Qty" => nl2br($order->products[$i]['qty'] . "\n"),
						 "Price" => nl2br($currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty'])  . "\n"));
}

to

	if (!tep_not_null($order->products[$i]['model'])) {
   $products_model .= ''.EMAIL_NO_MODEL.'';
	 }
else{
   $products_model .= nl2br($order->products[$i]['model'] . "\n");
	}; 

$orderarray[$i] = array( "Model" => nl2br("" . $order->products[$i]['name'] . $products_ordered_attributes . "\n" ),
						 "Modelnr"=> nl2br($order->products[$i]['model'] . "\n"),
						 "Qty" => nl2br($order->products[$i]['qty'] . "\n"),
						 "Price" => nl2br($currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty'])  . "\n"));

 

 

This should also solve your problem without an impact on the idealm contrib

Link to comment
Share on other sites

Hi, how does one remove the extra line breaks showing up in the email? For example, in my define for define('EMAIL_MESSAGE_GREETING', it's adding in extra <br> after each line. It's also doing it in code I didnt touch - i.e. the billing and shipping addresses. Thanks for the help, I'm sure its something easy - that I'm just not aware of.

Link to comment
Share on other sites

That's just it, there are none to delete, but it is adding in <br> line breaks in my text on its own. adding in /n adds more breaks than it should also.

 

you are using nl2br before and have added one \n behind every line. this results in one <br> ;)

Link to comment
Share on other sites

Hi.

Great contrib by the way!

 

When I update an order from admin (Order Update), the email that is sent to the customer is not getting styled like the other emails (create Acct and order). Is there a file/modification i am missing that sorts this out?

 

Also, do you know why some webmail accounts don't display the emails correctly. In Entourage they are fine, but testing in .mac for example is bad. See image.

emails.jpg

 

Thanks

M

Link to comment
Share on other sites

Not every email client supports html emails and some of them dont support css

 

Yes they are different fiel sets for order and create account - located in modules email

 

Yeah, just been reading more about HTML. Oh well.

 

See below images.

The second image is the email that is sent when you update the order. I can't seem to alter the style. Where that grey box has come from I don't know.

Also, under 'The comments for your order are:' is '%s'. Do you know how to get rid of this. It appears even if you add comments.

 

Thanks

 

correctemail.jpg

 

incorrectemail.jpg

Link to comment
Share on other sites

Yes, the %s comes from the language file set and is the variable for the status.

 

PLease open your admin/orders.php and find the line

 

$Varbody = EMAIL_TEXT_COMMENTS_UPDATE . ' ' . $comments . "\n\n" . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);

 

and make sure, that the email text status update was called by sprintf (sprintf declares the %s which is missing)

Link to comment
Share on other sites

Yes, the %s comes from the language file set and is the variable for the status.

 

PLease open your admin/orders.php and find the line

 

$Varbody = EMAIL_TEXT_COMMENTS_UPDATE . ' ' . $comments . "\n\n" . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);

 

and make sure, that the email text status update was called by sprintf (sprintf declares the %s which is missing)

I think I was getting this and I think I changed

admin/includes/orders.php

to

define('EMAIL_TEXT_COMMENTS_UPDATE', 'Our comments for your order are:' . "\n");

Link to comment
Share on other sites

Hi everybody!

 

I'm very glad with this contribution because everyting was very messy before.

But i have some problems in customizing the email.

 

- I would like to have a small picture of the product they ordered

- Prices should show incl. VAT

- the logo image is not showing, has a red cross

 

I would really apreciate it if somebody would help me out.

 

Thanks

 

Desiree

Link to comment
Share on other sites

Hi everybody!

 

I'm very glad with this contribution because everyting was very messy before.

But i have some problems in customizing the email.

 

- I would like to have a small picture of the product they ordered

- Prices should show incl. VAT

- the logo image is not showing, has a red cross

 

I would really apreciate it if somebody would help me out.

 

Thanks

 

Desiree

 

You mean something like that ? Therefore please read the post before and load the latest mod for the

contribution

 

oem1.gif

Edited by shetani
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...