Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Weird randon error in order email


mr_absinthe

Recommended Posts

Hello,

 

has anybody experienced the following random error in email order confirmations?

 

Have a look at the examples below:

Payment Method

------------------------------------------------------ br>Credit Card, Debit Card

 

note the br>

 

Payment Method

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

Credit Card, Debit Card

 

note the dotted line

 

Payment Method

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

Cr dit Card, Debit Card

 

note the missing e in Cr dit

 

Payment Method

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

C eck/Money Order

 

look at C eck

 

 

Payment Method br>------------------------------------------------------

Check/Money Order

 

96 Waitea Rd

Muriwai Beach< r>Auckland RD1, North Island 1250

New Zealand

 

Payment Method

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

Credit Card, Debit Card

 

note < r> appearing in billing address

I'm sure that I'm not alone but after days of searching, I was unable to find a solution. Is there anybody who managed to solve the above problem?

 

Thanks a lot.

 

Alex

Absinthe Original Liquor Store

Link to comment
Share on other sites

Hello,

 

has anybody experienced the following random error in email order confirmations?

 

Have a look at the examples below:

 

I'm sure that I'm not alone but after days of searching, I was unable to find a solution. Is there anybody who managed to solve the above problem?

 

Thanks a lot.

 

Alex

 

 

Well the br> supose to be <br> that's a new line

 

and at the end you have r>

 

that's supose to br a <br> as well.

 

Look at your mail.php file

at the end of the day the code will be good

Link to comment
Share on other sites

Look at your mail.php file

Thank you for the clue. I think that it might be admin/includes/classes/email.php causing the problem. This file has been edited by this no so perfect newsletter contribution. The piece of code in email.php looks like this:

// ################# Contribution Newsletter ##############
function add_html_newsletter($html, $text = NULL, $images_dir = NULL) {
  $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br>',$html);
  $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text);

  if (isset($images_dir)) $this->find_html_images($images_dir);
}
// ################# END - Contribution Newsletter ##############

function add_html($html, $text = NULL, $images_dir = NULL) {
  $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br>', $html);
  $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text);

  if (isset($images_dir)) $this->find_html_images($images_dir);
}

I have been playing with the code and changed it to this:

// ################# Contribution Newsletter ##############
function add_html_newsletter($html, $text = NULL, $images_dir = NULL) {
  $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '',$html);
  $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text);

  if (isset($images_dir)) $this->find_html_images($images_dir);
}
// ################# END - Contribution Newsletter ##############

// ################# Changed ##############
function add_html($html, $text = NULL, $images_dir = NULL) {
  $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '', $html);
  $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text);

  if (isset($images_dir)) $this->find_html_images($images_dir);
}
// ################# END - Changed ##############

I took out the <br> but it didn't work. :angry:

I'm sure that there is more shop owners experiencing the same problem, it would be great if someone could post the solution. I'm using the original file ATM because I'm not using my admin to send newsletters anyway. This original file is also causing ocassional error in separator ( ---------- -------- ).

 

Alex

Absinthe Original Liquor Store

Link to comment
Share on other sites

  • 4 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...