Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2006
    Posts
    277
    Plugin Contributions
    2

    Default override system doesn't work - WHY?

    My first istallation and shop work just fine now. thank to all the help i found here.

    NOW... I try to correct some erros i did.

    I did make a custom template in includes/templates and this workes fine.

    but during the last update i was in trouble with the new version overriding the files i changed in the language directory (mostly)

    I've been now to Zen Cart Wiki and got the manuals for "Developers API Overrides" and "Customisation - Templates"

    Did install zencart blank localy and added my template folders in all the language folders as said in the API manual and put in files i changed for the life store, leaving the original files alone.

    I also copied the lifestore custom-template to the includes/template of the blank local installation. This - as it was in the lifestore, was picked up easiely.

    but why are the language files not picked up? I plan on adding addon and would like to use the overrides system effecively. So... I'm going step by step in redoing everything in my local copy before i do it to the life-store.

    so... i activated the new template in the admin... the colors are there as expected. but why ain't the language files and shipping and all not picked up and still show the text that came with the installation?

    Thanks for the help

    Steve

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: override system doesn't work - WHY?

    It should look something like this:

    /includes/languages/lifestore/english.php
    /includes/languages/english/lifestore/xxxxxx.php
    /includes/languages/english/modules/payment/lifestore/xxxx.php
    /includes/languages/english/html_includes/lifestore/define_xxxxxx.php
    .

    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.

  3. #3
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: override system doesn't work - WHY?

    Not sure if it is related,

    but I recently noticed that I could not change the TEXT_INFORMATION text for the shippinginfo page by editting the language file. Then I looked into tpl_shippinginfo_default.tpl.php and (in v1.3.5) there appears to be no TEXT_INFORMATION anymore in this template file (while it was there in 1.2.7).

    Since I also could use the "define pages" I did not investigate it any further and assumed I was overlooking something. But I still wonder if it was just me, or that the system really changed or something?
    Last edited by paulm; 20 Sep 2006 at 09:27 AM.

  4. #4
    Join Date
    Sep 2006
    Posts
    277
    Plugin Contributions
    2

    Default Re: override system doesn't work - WHY?

    is there some geek way to find out what files i changed to copy these into all the "myTemplate" folders? or do i have to go over the code page by page?

    THAT COULD TAKE YEARS... some ppl just souldn't use computers

  5. #5
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: override system doesn't work - WHY?

    there appears to be no TEXT_INFORMATION anymore in this template file (while it was there in 1.2.7)
    That is correct. Many of the Language defines were removed and replaced with the Admin configurable Define Pages.

  6. #6
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: override system doesn't work - WHY?

    Quote Originally Posted by stevefriedman71
    is there some geek way to find out what files i changed to copy these into all the "myTemplate" folders? or do i have to go over the code page by page?

    THAT COULD TAKE YEARS... some ppl just souldn't use computers
    You can use (the free) winmerge programm. I think that a search on "winmerge" on this bord will point you in the right direction.


    @Kim: thanks for the info! Now I at least know that it's not some stupid error I made :-) (I assume it's documented somewhere of course, but I could not find it doing a quick search)

 

 

Similar Threads

  1. The override system, does it work in all sub folders?
    By kaskudoo in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 13 Jan 2010, 08:14 PM
  2. WTF? Override doesn't work at all
    By nate22 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Nov 2007, 12:39 AM
  3. Upgrade 1.3.0.2 to 1.3.6 - Why winmerge when using override system?
    By Steve G. in forum Upgrading from 1.3.x to 1.3.9
    Replies: 10
    Last Post: 18 Nov 2006, 04:06 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