Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help Please.


everyth5

Recommended Posts

I have a problem with the error code coding for the english.php file for Payment Information that I cannot figure out. any of the codes display the following text. This is one of the pages I am talking about.

 

The expiry date entered for the credit card is invalid.<br>Please check the date and try again.

 

 

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

 

Note that the <br> in both text are being displayed when this error occurs. Not very professional looking. Please tell me how to fix it. The actual coding is as below.

 

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.');

 

What is wrong with it????? Why does it show the <br>'s instead of doing a carriage return?

Link to comment
Share on other sites

Sorry, just realized that the link I included above just brings you to the log in screen. Please feel free to become a member using false information if you wish. Still just in the testing phase. Also the credit card number I entered for testing purposes was 1111111111111111.

 

Thanks in advance.

Link to comment
Share on other sites

I have a problem with the error code coding for the english.php file for Payment Information that I cannot figure out. any of the codes display the following text. This is one of the pages I am talking about.

 

The expiry date entered for the credit card is invalid.<br>Please check the date and try again.

 

 

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

 

Note that the <br> in both text are being displayed when this error occurs. Not very professional looking. Please tell me how to fix it. The actual coding is as below.

 

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.');

 

What is wrong with it????? Why does it show the <br>'s instead of doing a carriage return?

 

 

Please someone, WHY is this doing this???? I have looked all over in the coding and in the forum for an answer.

Link to comment
Share on other sites

Please someone, WHY is this doing this???? I have looked all over in the coding and in the forum for an answer.

just delete the <br>. you don't really need them.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...