Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Credit Card Error!


unixfox

Recommended Posts

I have been testing my OSC and noticed that when I enter something incorrectly on a credit card I get something similar to this:

 

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

 

That's fine and dandy, I'm glad I get those errors. However, I have a dark blue background and the messages do not show up unless I drag the mouse over it to see it. I'm guessing I have the text color set the same as the background somewhere but I can't find it.

 

I have looked in the stylesheet and found nothing to set the colors for this. I have searched through all of the files for an instance of "The first four digits" and have come up short.

 

Anybody know where I can find this? How to fix it?

 

Thanks

Link to comment
Share on other sites

The actual page dealing with this module which you can edit is catalog/includes/modules/payment/cc.php. The language file for the page is catalog/includes/languages/english/modules/payment/cc.php.

Link to comment
Share on other sites

The actual page dealing with this module which you can edit is catalog/includes/modules/payment/cc.php. The language file for the page is catalog/includes/languages/english/modules/payment/cc.php.

 

Thanks for the quick reply!!

 

I looked in both of those files and did not see the text I was looking for:

 

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

 

If I can find it I think I can at least hard code the color so users can see it.

 

Thanks again!

Link to comment
Share on other sites

it is in english.php

 

It's in there all right, but I still cannot get it to display correctly. If I enter this code: (then I create the error on purpose)

 

 

define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', '<font face="Verdana, Arial" size="2" color="#ffffff">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.</b></font>');

 

I get this:

 

Credit Card Error!

 

<font face="Verdana, Arial" size="2" color="#ffffff">The first four digits of the number entered are: 4111<br>If that number is correct, we do not accept that type of credit card.<br>If it is wrong, please try again.</b></font>

 

The actual html code shows up in the error.

 

What the heck am I missing?

Thanks for your help!

Link to comment
Share on other sites

Better you change the value of TEXT_CCVAL_ERROR_UNKNOWN_CARD back. to play with output style, open your file checkout_payment.php and find this code:

 

<td class="main" width="100%" valign="top"><?php echo tep_output_string_protected($error['error']); ?></td>

 

you can add style there.

Sugiartha

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

concept of life: enjoy aja!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...