Forums / General Questions / HELP! I Modified Orders.php and Messed Up!

HELP! I Modified Orders.php and Messed Up!

Views: 800

Results 1 to 6 of 6
14 Jan 2013, 5:31 AM
#1
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

HELP! I Modified Orders.php and Messed Up!

I foolishy didn't keep a copy of how it looked before I changed it. This is how it looks now with my changes. Everywhere there is red there are changes:

define('EMAIL_TEXT_SUBJECT', 'Order Processed - Order ');
define('EMAIL_TEXT_ORDER_NUMBER', 'Your order has been processed and is now in the warehouse. Order Number:');
define('EMAIL_TEXT_INVOICE_URL', 'Detailed Invoice:');
define('EMAIL_TEXT_DATE_ORDERED', 'Date Ordered:');
define('EMAIL_TEXT_COMMENTS_UPDATE', '');
define('EMAIL_TEXT_STATUS_UPDATED', '');
define('EMAIL_TEXT_STATUS_LABEL', ");
define('EMAIL_TEXT_STATUS_PLEASE_REPLY', 'We'll send you an email with tracking information as soon your package ships. Please reply to this email if you have any questions. Thank you for you order.' ."\n");

Anyway, I can't get in to look at my orders now. I can get into Admin, but if I click on Orders, I get an internal server error the website has a programming error.

I modified myadmin/includes/languages/english>orders.php

14 Jan 2013, 5:46 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: HELP! I Modified Orders.php and Messed Up!

  1. You can always get the original Zen Cart files from the download link on the zen-cart.com home page. Also at https://www.zen-cart.com/getit

  2. You can't stick single-quote (apostrophe) symbols inside strings already delimited with single quotes.

ie: 'We'll send you...' is invalid.
Safer options (any of these will work):

  • 'We will send you...' (avoid your apostrophe altogether by skipping the contraction and spelling out the actual word you mean in plain english)
  • "We'll send you..." (outer quotes are now double quotes)
  • 'We'll send you...' ("escape" the apostrophe by prefixing it with a backslash so that its normal syntactical meaning is reverted back to its literal meaning)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Jan 2013, 5:54 AM
#3
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: HELP! I Modified Orders.php and Messed Up!

When I look at this folder (orders.php) from from a fresh d/l of zen cart the contents are all over the place, not neatly situated like they usually are inside the folder . I d/l this twice with the same result. Why is that?

14 Jan 2013, 6:05 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: HELP! I Modified Orders.php and Messed Up!

Your editor or FTP program must be misinterpreting line-endings incorrectly.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Jan 2013, 8:08 AM
#6
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: HELP! I Modified Orders.php and Messed Up!

Thank you for fast reply!