Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Templates Overrides Not Detected

Templates Overrides Not Detected

Views: 646

Results 1 to 7 of 7
17 Mar 2014, 6:54 PM
#1
skeeterz71 avatar

skeeterz71

New Zenner

Join Date:
Mar 2014
Posts:
10
Plugin Contributions:
0

Templates Overrides Not Detected

Hi,

I have a fresh install of zen cart. I went through the tutorial to create a template and set it in tools and reset the boxes. Now I am setting up the overrides. Zen Cart is not detecting the overrides. For example; I created a template folder named valiant. I created a folder of the same name in /includes/languages/valiant. Inside languages/valiant I have copied over meta_tags.php (this is where the title is set in my version 1.5.1)

I do this; define('TITLE', 'Valiant Auto Parts');

Save and reload. It still has Zen Cart! as the title. Now if I go directly to /includes/languages/english and change the title in meta_tags.php the changes take effect. This however is not the way I understand how the override is to work.

Am I missing something? How do I tell Zen where the override folder is?

Thanks

17 Mar 2014, 7:06 PM
#2
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Templates Overrides Not Detected

Try here:
includes/templates/YOUR_TEMPLATE

I try to copy my templates any place the file says classic... hope that helps a bit ;)

17 Mar 2014, 7:12 PM
#3
skeeterz71 avatar

skeeterz71

New Zenner

Join Date:
Mar 2014
Posts:
10
Plugin Contributions:
0

Re: Templates Overrides Not Detected

Hi guess I am still not understanding something. So I have my template setup includes/templates/valiant I copied over meta_tags.php with the title change to that directory. The changes did not take effect. there is a classic folder in languages/classic. That was where I originally included a folder languages/valiant and put the meta_tags.php in. I'll try putting valiant inside of English.

And that worked!

17 Mar 2014, 8:33 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: Templates Overrides Not Detected

skeeterz71:

Hi,

I have a fresh install of zen cart. I went through the tutorial to create a template and set it in tools and reset the boxes. Now I am setting up the overrides. Zen Cart is not detecting the overrides. For example; I created a template folder named valiant. I created a folder of the same name in /includes/languages/valiant. Inside languages/valiant I have copied over meta_tags.php (this is where the title is set in my version 1.5.1)

I do this; define('TITLE', 'Valiant Auto Parts');

Save and reload. It still has Zen Cart! as the title. Now if I go directly to /includes/languages/english and change the title in meta_tags.php the changes take effect. This however is not the way I understand how the override is to work.

Am I missing something? How do I tell Zen where the override folder is?

Thanks
Language file overrides should be in /includes/languages/english/valiant (e.g. /includes/languages/english/valiant/meta_tags.php), unless you're overriding the primary language file (english.php), in which case you'd place that in /includes/valiant/english.php.

17 Mar 2014, 8:36 PM
#5
skeeterz71 avatar

skeeterz71

New Zenner

Join Date:
Mar 2014
Posts:
10
Plugin Contributions:
0

Re: Templates Overrides Not Detected

Thanks. I kinda figured out I have to put a folder everywhere I have to make a change. This is gonna be kinda tricky not having a centralized overrides folder but rather multiple folders for custom theming/templating. I guess I'll have to figure it out. WordPress has spoiled me with the way custom themes are dealt with....

17 Mar 2014, 8:51 PM
#6
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Templates Overrides Not Detected

I'm glad that you are figuring out the learning curve... it takes 'doing' before 'understanding' the why some days, skeeterz71.

18 Mar 2014, 11:49 AM
#7
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: Templates Overrides Not Detected

skeeterz71:

Thanks. I kinda figured out I have to put a folder everywhere I have to make a change. This is gonna be kinda tricky not having a centralized overrides folder but rather multiple folders for custom theming/templating. I guess I'll have to figure it out. WordPress has spoiled me with the way custom themes are dealt with....
My plugin Zen Cart Overrides Cheatsheet might help. It's just an HTML file that displays all the override directories.