Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Eror text showing "break" code


RonS

Recommended Posts

Using the Authorize.net payment module and when an error occurs, the text at the top of page includes the line break code like this: "Error text blah blah blah <br> blah blah blah error text continues on same line".

This looks very unprofessional. Where can I correct this code so that the line breaks actually work and don't just print?

 

Ron

Link to comment
Share on other sites

It shows on any error but here is one as an example:

Credit Card Error!

The first four digits of the number entered are: 4460<br>If that number is correct, we do not accept that type of credit card.<br>If it is wrong, please try again.

I looked at the file you suggested and I can't seem to find these lines anywhere.

 

Thanks for your help

 

Ron

Link to comment
Share on other sites

define('TEXT_CCVAL_ERROR_INVALID_DATE', 'The expiry date entered for the credit card is invalid.<br>Please check the date and try again.');
define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'The credit card number entered is invalid.<br>Please check the number and try again.');
define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'The first four digits of the number entered are: %s<br>If that number is correct, we do not accept that type of credit card.<br>If it is wrong, please try again.');

 

Look in /catalog/includes/languages/english.php

Link to comment
Share on other sites

Thank you very much!

 

I guess I'll just remove the line breaks to correct the problem.

 

Does anyone know why the code does'nt work in the first place? All looks fine from what I can tell. I would rather get it to work if possible.

 

Ron

Link to comment
Share on other sites

  • 3 months later...
Thank you very much!

 

I guess I'll just remove the line breaks to correct the problem.

 

Does anyone know why the code does'nt work in the first place? All looks fine from what I can tell. I would rather get it to work if possible.

 

Ron

 

In looking at the source code that is generated on the actual web page that is generated, it is listed as an input form, which I don't think understands HTML.

 

So I myself am trying to figure out how to insert a CR/LF into it ourself.

 

If anyone has any hints, let me know. In the mean time, I've just removed the <br> and have a run on sentence.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...