Forums / Templates, Stylesheets, Page Layout / Does Zen Cart look to template_default for css

Does Zen Cart look to template_default for css

Locked

Views: 789

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
29 Jul 2010, 5:01 PM
#1
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Does Zen Cart look to template_default for css

Haven't even thought of this before, but the situation rose it's head while playing with the new 1.3.9e.

I installed a clean 1.3.9e to test the newest IH2 8c mod.
No other mods were added.
One test product was added.
It has been reported on the IH2 thread.

However, I felt the stylesheet question belonged here as it may affect many stylesheet situations.

When Zen Cart does not find, say, define_main_page.php in the current template, it goes looking in template_default regardless of what folder the current template is in.

Apparently that is not the case with stylesheets. In my clean test, IH2 would not work correctly until the stylesheet was placed in the classic/css.

I'm aware that most would not use classic, but I'm also aware that a lot of folks do.

Is this, in fact, the way stylesheet discovery is and has been working? Will Zen Cart not search template_default/css for any "missing" stylesheets?

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

29 Jul 2010, 5:22 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Does Zen Cart look to template_default for css

If the "css" folder exists inside a template folder, with .css files in it, then it will only look to that folder for stylesheets, and not fallback to template_default.
That way if someone does NOT want a css file listed in the template_default, then it won't get loaded.

So ... the "folder" override is checked and used, but if the "folder" exists, then only the current folder's contents is used. Per-file overrides don't happen if the custom "css" folder exists.

.
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.

29 Jul 2010, 5:45 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: Does Zen Cart look to template_default for css

Thanks for the quick response after your long night:bigups:

Just wanted confirmation as this will help when helping others and when looking at add-on action.

THANX

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com