Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / override system doesn't work - WHY?

override system doesn't work - WHY?

Locked

Views: 2,691

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
20 Sep 2006, 2:45 AM
#1
stevefriedman71 avatar

stevefriedman71

Zen Follower

Join Date:
Sep 2006
Posts:
269
Plugin Contributions:
0

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

20 Sep 2006, 3:07 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

20 Sep 2006, 8:23 AM
#3
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

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?

20 Sep 2006, 2:44 PM
#4
stevefriedman71 avatar

stevefriedman71

Zen Follower

Join Date:
Sep 2006
Posts:
269
Plugin Contributions:
0

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... :P:lamo: some ppl just souldn't use computers :P

20 Sep 2006, 4:28 PM
#5
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,646
Plugin Contributions:
0

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.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

20 Sep 2006, 5:05 PM
#6
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: override system doesn't work - WHY?

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... :P:lamo: some ppl just souldn't use computers :PYou 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)