Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Edit the payment warning messages


checkstore

Recommended Posts

Posted

Where can I edit the error message for the form catalog/checkout_payment.php?

 

Looking at the source code for the page, I see these lines:

 

function check_form() {
 var error = 0;
 var error_message = "Errors have occured during the process of your form.nnPlease make the following corrections:nn";

 

 

Notice the "nn".

Where do I go to edit this message?

Posted

You make it there although I am not sure why you want to change what is essentially an internal programming error message. I am not sure what the "nn" means unless it is a variable. I'd leave that bit in.

Posted

Nope, the form catalog/checkout_payment.php does not contain this line:

 

var error_message = "Errors have occured during the process of your form.nnPlease make the following corrections:nn";

 

SO I cannot change it there. It must be generated on the fly.

I think the nn is there because of the editor I used. It should be /n/n.

 

What I need to know is where to find this line so that I can fix it!

  • 2 weeks later...
Posted

I still havent found this text: Errors have occured during the process of your form.

 

Anyone know where that text is defined?

 

Also, what tool do you use to find the location of text? I copies the entire store to my C drive, then used Windows search to try and find it, but with no success.

Posted
I still havent found this text: Errors have occured during the process of your form.

 

Anyone know where that text is defined?

 

Also, what tool do you use to find the location of text? I copies the entire store to my C drive, then used Windows search to try and find it, but with no success.

 

 

You can change this in the file catlaog/includes/form_check.js.php file...

Posted

from what i see, i believe you are probably editing your files with the file manager in the store admin area. if this is the case, please frefrain from doing so, it creates problems.

if you know what files you have edited, ftp them locally then edit, and ftp back up to the site.

Posted

Regarding your suggestion: You can change this in the file catlaog/includes/form_check.js.php file...

 

Sorry, I don't see it there. I am looking for these words:

 

"Errors have occured during the process of your form.nnPlease make the following corrections:nn";
Posted

i think the error is a generic one, the two 'nn ' are what you are searching for

Posted
Regarding your suggestion: You can change this in the file catlaog/includes/form_check.js.php file...

 

Sorry, I don't see it there. I am looking for these words:

 

 

In the form_check.js.php file find this line

 

error_message = "<?php echo JS_ERROR; ?>";

 

 

and replace JS_ERROR with whatever messge you want to display say for ex: you want it to be "Errors have occured during the form\n\n Please provide valid entries\n\n" then you can make it this way

 

error_message = "<?php echo 'Errors have occured during the form\n\n Please provide valid entries\n\n'; ?>";

 

Hope this is what u need

:rolleyes:

Posted

This is what I needed. Many thanks.

 

The title of the window that reports the errors is:

[JavaScript Application]

 

I'd prefer to have it say something like System message. Is there a way to change it?

Archived

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

×
×
  • Create New...