checkstore Posted December 23, 2004 Posted December 23, 2004 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?
ozEworks Posted December 23, 2004 Posted December 23, 2004 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.
checkstore Posted December 23, 2004 Author Posted December 23, 2004 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!
checkstore Posted January 7, 2005 Author Posted January 7, 2005 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.
markmca Posted January 7, 2005 Posted January 7, 2005 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. <{POST_SNAPBACK}> You can change this in the file catlaog/includes/form_check.js.php file...
Guest Posted January 7, 2005 Posted January 7, 2005 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.
checkstore Posted January 7, 2005 Author Posted January 7, 2005 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";
Guest Posted January 7, 2005 Posted January 7, 2005 i think the error is a generic one, the two 'nn ' are what you are searching for
markmca Posted January 7, 2005 Posted January 7, 2005 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: <{POST_SNAPBACK}> 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:
checkstore Posted January 7, 2005 Author Posted January 7, 2005 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?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.