Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,682
    Plugin Contributions
    11

    Default 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?
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,682
    Plugin Contributions
    11

    Default Re: Does Zen Cart look to template_default for css

    Thanks for the quick response after your long night

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

    THANX
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 

Similar Threads

  1. Why does my css menu look like this?
    By Spdster in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Dec 2008, 07:18 PM
  2. Zen Cart or Zen CSS for Regular Site
    By Webskipper in forum General Questions
    Replies: 10
    Last Post: 31 May 2008, 04:58 AM
  3. CSS Info for Zen Cart?
    By FatGuyinAZ in forum General Questions
    Replies: 4
    Last Post: 17 Mar 2008, 03:22 PM
  4. Just installed Zen Cart™ and it does not look right? Check this out:
    By qm360 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Feb 2008, 06:35 PM
  5. My CSS does not look right...
    By sdamos1 in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 2 Jan 2008, 03:16 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