Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2006
    Posts
    37
    Plugin Contributions
    0

    Default editing the english.php files

    Hi guys,
    I have the Zen Cart book and I'm finding it an invaluable resource. Should I be creating duplicated english.php files before editing the defaults? I can't find anything in the book about needing to do that.

    Thanks,
    Steven

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: editing the english.php files

    THat is always a good thing to do. Creating your own template folders with override copies of any edited files will save you headaches later when you upgrade to the next version.
    See the FAQs and forum stickies here for help, if the book doesn't give you enough about that. My recollection is that it is reasonably complete.

  3. #3
    Join Date
    Feb 2006
    Posts
    37
    Plugin Contributions
    0

    Default Re: editing the english.php files

    so do I just copy the english.php file into my template folder then and when an upgrade is required, I over-write the new english.php with my own?

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: editing the english.php files

    You copy /includes/languages/english.php into /includes/languages/your_template/english.php, or /includes/languages/english/contact_us.php to /includes/languages/english/your_template/contact_us.php, and make your changes there.

    When you upgrade, the new /includes/languages/english.php stays as is.

    Keep a record of all files you have made override copies of.

    Look at the changelog for the upgrade and see if any of your overridden files are mentioned; if they are you need to compare the new with the original to see what was changed (make notes including line numbers), and then compare your copy with the new and replace the changed lines into your copy.

    If a changed line was also customized by you, you will have to reconcile them. You are unlikely to run into that until you have made fairly advanced mods. You need to do some work, but your override copies will never be automatically erased or replaced. I have found that two or three out of a dozen overridden files typically needed to be compared.
    Last edited by gjh42; 5 Jul 2007 at 09:27 PM.

 

 

Similar Threads

  1. blank page after editing the 2 configure.php files
    By jpmill1953 in forum General Questions
    Replies: 4
    Last Post: 12 Apr 2010, 08:03 PM

Posting Permissions

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