Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    4
    Plugin Contributions
    0

    Default english.php override

    I have copied english.php to
    includes/languages/cool_1/english.php

    but the changes I make to that file are not shown on my site. However, if I make changes to
    includes/languages/english.php
    the changes DO appear on my site.

    In Admin, under Template Selection, I added a "new language" thinking that may work, but it didn't help. My template selector now looks like this:

    Default(All) - cool_1 - cool_1
    English - cool_1 - cool_1

    Do I need to remove the Default(All) to make my override english.php be seen by Zen?

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: english.php override

    which version zc are you using?

    are any other mods installed?

    is "cool_1" the name of your template?

    if so, are all other changes you may have made in files under this template showing up?

    Frank

    www.frnt.org/zencart

  3. #3
    Join Date
    Aug 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: english.php override

    I'm using version 1.3.8a with no mods.

    cool-1 is indeed the name of my template.

    All the other overrides appear to be working as expected - it is only english.php that is causing me grief.

    I have double checked the directory name too many times to count. I'm thinking I should do a fresh install and start over - I must have unknowingly altered something I shouldn't have.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: english.php override

    Quote Originally Posted by tippy2 View Post
    I have copied english.php to
    includes/languages/cool_1/english.php

    but the changes I make to that file are not shown on my site.
    I'd be checking to verify that the file has actually uploaded correctly, and that it's not 0 bytes in size (which would suggest an FTP failure on upload).

    If the file doesn't exist, or exists but is blank, or exists without any define statements in it to override, then the master defines will be loaded from the main english.php.

    Thus, if your changes are not appearing, it suggests that the file is damaged, incomplete, missing, or has the wrong filename ... all on the server side, regardless of what's on your PC where you're doing your editing.
    .

    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.

  5. #5
    Join Date
    Aug 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: english.php override

    Thank you very much for your assistance!! It was indeed a corrupted file. I uploaded again and it works perfectly. Sorry for not checking this before posting my query.

 

 

Similar Threads

  1. override english.php?
    By warroyo90 in forum General Questions
    Replies: 5
    Last Post: 17 Feb 2012, 01:53 PM
  2. English.php won't override?
    By Pauls in forum Templates, Stylesheets, Page Layout
    Replies: 21
    Last Post: 27 Jul 2006, 09:56 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