RonS Posted November 8, 2005 Share Posted November 8, 2005 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 More sharing options...
VectorSix Posted November 8, 2005 Share Posted November 8, 2005 I would start by looking at /catalog/includes/languages/english/modules/payment/authorizenet.php. Posting the specific message would be more helpful in determining the exact location. V6 :thumbsup: Link to comment Share on other sites More sharing options...
RonS Posted November 8, 2005 Author Share Posted November 8, 2005 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 More sharing options...
VectorSix Posted November 9, 2005 Share Posted November 9, 2005 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 More sharing options...
RonS Posted November 9, 2005 Author Share Posted November 9, 2005 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 More sharing options...
xao Posted March 4, 2006 Share Posted March 4, 2006 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.