Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    Join Date
    Feb 2006
    Location
    UK
    Posts
    306
    Plugin Contributions
    1

    Default Re: English.php won't override?

    Its ok fixed, I hadn't uploaded the folder, thanks
    Last edited by Pauls; 15 Jun 2006 at 10:05 PM.

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: English.php won't override?

    Dontcha hate when it does what you say and not what you mean ...

    Thanks for the update ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #13
    Join Date
    Feb 2006
    Location
    UK
    Posts
    306
    Plugin Contributions
    1

    Default Re: English.php won't override?

    heh heh exactly

  4. #14
    Join Date
    Apr 2006
    Location
    Halfway, Oregon
    Posts
    48
    Plugin Contributions
    0

    Default Re: English.php won't override? - Another ?

    I'm trying to set up my first ZenCart, barely treading water. I hope my method of posting is proper here.

    This thread and the one on changing page titles were very good at helping me find the right files to change.

    However, I changed includes/languages/english/meta_tags.php and got the result I wanted. I saved that file into my includes/languages/sue/ folder and uploaded that into the includes/languages directory with some slight changes to the file. Those changes do not show up on the site.

    It seems I'm missing something, but I don't know what. Have I misinterpreted something?

    Maybe I'm getting confused between having a "sue" template folder. Do I not need the extra folder in the /languages directory?

    Thank you.
    Sue

  5. #15
    Join Date
    Feb 2006
    Location
    UK
    Posts
    306
    Plugin Contributions
    1

    Default Re: English.php won't override?

    I am not very clear on what your problem is Sue, but it does sound like an 'overrides' issue. From your question if I understand your explanation correctly then yes your folder structure should be the same on both your FTP site, and your local site. Indeed that was my problem, and was what I had overlooked.

    As a general rule of thumb, I find it useful to know that if a particular file needs modifying I will look in the folder where it originally comes from and if I see a folder named 'classic' in that same place, then i know I should create my own overrides folder there, (in your case a folder called sue) and copy the file into my newly created folder.

    Good luck with your cart :)

  6. #16
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: English.php won't override? - Another ?

    Quote Originally Posted by sue4ster
    However, I changed includes/languages/english/meta_tags.php and got the result I wanted. I saved that file into my includes/languages/sue/ folder and uploaded that into the includes/languages directory with some slight changes to the file. Those changes do not show up on the site.
    Hi Sue

    Your version of the meta_tags file should be includes/languages/english/sue/meta_tags.php
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #17
    Join Date
    May 2006
    Location
    Australia
    Posts
    110
    Plugin Contributions
    2

    Default Re: English.php won't override? - Another ?

    Quote Originally Posted by kuroi
    Hi Sue

    Your version of the meta_tags file should be includes/languages/english/sue/meta_tags.php
    Ahah, I was wondering why my overrides weren't working there. The 'classic' folder should really be removed from that directory as it gives a false impression. I've fallen for that twice now.

  8. #18
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: English.php won't override?

    I think that the reason people take a long time to get the overrides system is because there are two structurally different override systems in operation. So just when you think you've got it, it seems to not work when you try to use it somewhere else. Specifically, language and module overrides operate in the same way as each other, and using the same principle but a different file structure to template overrides.

    Template overrides operate in parallel with template_default. By this I mean that (for example)
    includes/templates/template_default/customer/tpl_header.php
    can be overridden by
    includes/templates/YOUR_TEMPLATE/customer/tpl_header.php
    Language and module overrides however, operate hierarchically. For example to override
    includes/languages/english/meta_tags.php
    you would go to the files location and create a directory with the same name the directory in which your template_info file is located in templates and then place your override file in the new directory, i.e.
    includes/languages/english/YOUR_TEMPLATE/meta_tags.php

    What this means is that the directory to which I think you are referring (languages/classic) is appropriate, but the only files you would put in there (assuming for some unfathomable reason you are actually using the "Classic Template") are your english.php, french.php, german.php, spanish.php, japanses.php, etc. Other language files would be sitting lower in the hierarchy such as languages/english/classic/header.php.

    I do however agree with your point about removing the directory, though I would do so in the wider context of removing the whole template (and I know of one web host who offers an installation service who has done exactly that). I'm personally finding that upgrading sites from 1.2 to 1.3 is easiest and most effectively done by upgrading the database but rebuilding the design using the template_default rendering Classic irrelevant. Hopefully the Dev Team will strip it out of the next version Zen Cart and make it available as a download for those preferring more traditional approaches.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #19
    Join Date
    Jul 2006
    Posts
    119
    Plugin Contributions
    0

    Default Re: English.php won't override?

    I'm having the same trouble but none of the solutions in this thread work for me.

    My structure appears to be correct. Here's a screen shot to avoid any confusion:

    http://www.binkwaffle.com/english_php.jpg

    I can't see what I'm doing wrong but there's got to be something wrong. the only override that's not working is english.php. meta_tags.php and the others are working but not english. I've edited the copyright info and Categories title but neither change shows up. However, if I edit the original english.php the changes do show up.

    Weird.

  10. #20
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: English.php won't override?

    The language.php file (e.g. english.php) should be one level up from the other language files for that language. So in your case the file path should be includes/languages/custom_fz/english.php.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 
Page 2 of 3 FirstFirst 123 LastLast

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 override
    By tippy2 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 19 Aug 2008, 07:00 AM

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