Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Error created after removing 'Check' from the moneyorder.php

Error created after removing 'Check' from the moneyorder.php

Views: 1,262

Results 1 to 4 of 4
30 Sep 2011, 9:33 AM
#1
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Error created after removing 'Check' from the moneyorder.php

I removed the text that said 'check' from the moneyorder.php so it just says 'Money Order' rather than 'Check/Money Order' but now there is a problem and in the payment modules list in admin and when you go through checkout, it has MODULE_PAYMENT_MONEYORDER_TEXT_TITLE where it should say 'Money Order'.

I don't remember making any serious changes other than just remove 'Check' from the title and twice in descriptions and I didn't think to make a copy of the original first so if I ruined it it was safe to go back.

Can anyone please tell me what I can change in this to make it recognise the right title?

define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Money Order'); define('MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION', 'Please make your money order payable to:<br />' . MODULE_PAYMENT_MONEYORDER_PAYTO . '<br /><br />Mail your payment to:<br />' . nl2br(STORE_NAME_ADDRESS) . '<br /><br />' . 'Your order will not ship until we receive payment.'); define('MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER', "Please make your money order payable to:" . "\n\n" . MODULE_PAYMENT_MONEYORDER_PAYTO . "\n\nMail your payment to:\n" . STORE_NAME_ADDRESS . "\n\n" . 'Your order will not ship until we receive payment.');?>

30 Sep 2011, 10:51 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Error created after removing 'Check' from the moneyorder.php

I can't see anything in what you posted that should cause a problem.

Do the other defines in that file show up properly ?

What program did you use to edit the file ?

30 Sep 2011, 12:17 PM
#3
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Re: Error created after removing 'Check' from the moneyorder.php

Thanks for taking the time to reply. I did it with notepad and when I saved it it squished up all of the text into a big block which worried me a bit but I couldn't remember what the free editor was called.

I have since downloaded a trial of Dreamweaver.

I just downloaded ZC again and got the original moneyorder.php out and replaced it fresh. Not sure why I didn't think of that hours ago.

I will try and change it again being more careful this time with Dreamweaver.

30 Sep 2011, 12:33 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Error created after removing 'Check' from the moneyorder.php

A better editor choice would be Notepad++ http://notepad-plus.sf.net