Results 1 to 6 of 6
  1. #1
    Join Date
    May 2012
    Posts
    500
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Jan 2004
    Posts
    60,419
    Blog Entries
    4
    Plugin Contributions
    144

    Default 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 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!
    Donations always welcome: www.zen-cart.com/donate

    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.



  3. #3
    Join Date
    May 2012
    Posts
    500
    Plugin Contributions
    0

    Default 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?

  4. #4
    Join Date
    Jan 2004
    Posts
    60,419
    Blog Entries
    4
    Plugin Contributions
    144

    Default 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!
    Donations always welcome: www.zen-cart.com/donate

    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.



  5. #5
    Join Date
    Dec 2009
    Location
    The Netherlands
    Posts
    1,303
    Plugin Contributions
    9

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

    deleted

  6. #6
    Join Date
    May 2012
    Posts
    500
    Plugin Contributions
    0

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

    Thank you for fast reply!

 

 

Similar Threads

  1. edited php file, and everything was messed up
    By pixelfix in forum Customization from the Admin
    Replies: 3
    Last Post: 11 Jan 2010, 10:20 AM
  2. Replies: 3
    Last Post: 12 Dec 2008, 06:31 PM
  3. Help! I messed up my information.php
    By Cardmama in forum Basic Configuration
    Replies: 1
    Last Post: 8 Mar 2008, 11:50 PM
  4. orders.php and invoice.php modification.
    By StevenB in forum General Questions
    Replies: 0
    Last Post: 8 Jul 2007, 11:59 PM
  5. Error after modified freeoptions.php
    By kevinc66 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 1 Jun 2007, 05:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •