Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2008
    Posts
    14
    Plugin Contributions
    0

    Default So Many CSS files....

    Ok - I am a oscommerce convert. I have not work on this stuff for a few years, so it all feels new to me.

    It seems that I have way too many CSS files that all seem to be meant to control the look of the site. There are:

    /css/stylesheet.css
    /classic/stylesheet.css
    /includes/templates/classic/css/stylesheet.css
    /includes/templates/template_default/css/stylesheet.css

    I am only using one template . can I eliminate one of these? It would make all this modification alot easier!

    JK

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default Re: So Many CSS files....

    Don't eliminate anything at this stage... The stylesheets are called when needed, and according to the template you ultimately choose to use.

    They occupy a such a tiny amount of space on your server, so eliminating them will not result in any benefit of space or speed.

    Also, zencart uses a sophisticated "over-ride" system - designed to assist users when major upgrades are issued. When you apply your chosen template, and when you use the over-ride system to implement changes to code, any later upgrade will not erase your edited files. You will then be able to apply the upgrade to your site in a logical and easier fashion.

    So, there is no need to eliminate any of the core code. It is called only when needed by your webshop setup.

    There may be a marginal performance benefit later by making (for example) a css file more "efficient".
    20 years a Zencart User

  3. #3
    Join Date
    Mar 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: So Many CSS files....

    cool. Thanks for the reply. At first glance, I assumed they were all the same.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: So Many CSS files....

    You should have these files:

    /includes/templates/classic/css/stylesheet.css
    /includes/templates/template_default/css/stylesheet.css

    but not these directly in your store root:

    /css/stylesheet.css
    /classic/stylesheet.css

    The last two are not present in a clean install of Zen Cart, so they must have been added by someone. They can never be used by ZC in those locations, and should be looked at and then eliminated unless there is a good reason to keep them.

    Your next step should be to study the template creation FAQ and make a custom template folder for your customizations, including a copy of /includes/templates/your_template/css/stylesheet.css. Leave the /classic/ folders and files alone, so you can later use them for a reference in debugging if necessary.

 

 

Similar Threads

  1. v154 Why Does Logging Involve So Many Separate Files?
    By PaulRRogers in forum General Questions
    Replies: 2
    Last Post: 5 Mar 2015, 03:00 PM
  2. Found many AIM_DEBUG*** files in my cache folder
    By MagicMan in forum General Questions
    Replies: 3
    Last Post: 28 Dec 2008, 09:45 PM
  3. [Help] Too many open files.. application_top.php
    By Xfire in forum General Questions
    Replies: 2
    Last Post: 6 Oct 2006, 07:47 PM

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