Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2009
    Posts
    14
    Plugin Contributions
    0

    Default Where can i find the files that let me customize my template?

    The way I've set up my standard site is through includes, where i'll have a index.php page that includes the header, menu, and footer. I'm assuming that's kinda how zen cart is set up.

    What I'm asking is where is the original file that includes the rest?

    I assumed it would be zen/index.php (where zen/ is the install directory) but it doesn't even have the html and head tags

    things I'd like to accomplish:
    add an additional style sheet,
    change the layout of certain sections,
    and be able to isolate included sections to have an easier time figuring them out.

    I wasn't sure if this should go in the layout section or this.

    as per the posting tips,
    i have version 1.3.8, not upgraded, no add ons, one template

    if you could get me pointed in the right direction, i'd really appreciate it,

    thanks,

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Where can i find the files that let me customize my template?

    Zencart is a database driven dynamic PHP program which builds pages 'on the fly' from various components. It does, as you mentioned, have a header, center column and footer, as well as two side columns.

    The easiest way to figure out what is where is by installing the Firefox browser and the Web Developer plugin for Firefox. You can use those to see where in the stylesheet you change the styling of the various page elements.

    Ctrl-Shift-Y will allow you to hover over a section of the page and see the class and id names for that section in the box at the top. The statements in the stylesheet that begin with # are id's and the ones that begin with dots are classes.

    Ctrl-Shift-E will open the CSS editor and allow you to edit the stylesheet and see the changes in real time without changing anything permanently. A very handy tool.

    These may help, too:

    https://www.zen-cart.com/tutorials/index.php?article=38
    https://www.zen-cart.com/tutorials/index.php?article=39

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

    Default Re: Where can i find the files that let me customize my template?

    /includes/templates/your_template/common/tpl_main_page.php is the file that brings in the major sections of the page.

    Most of the things you mention will be accomplished not by editing this file, but by admin settings and other control features built into Zen Cart.

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

    Default Re: Where can i find the files that let me customize my template?

    Lotsa tutorials available: https://www.zen-cart.com/tutorials/i...hp?article=142 and related links
    Reference on adding more stylesheets: http://www.zen-cart.com/wiki/index.p..._-_Stylesheets
    .

    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.

  5. #5
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Where can i find the files that let me customize my template?

    There are free templates available for Zen Cart which you can use as a starting point or as a guideline to creating your own template. You can see them in action at http://(sorry, site offline)/. Use the pulldown menu to change templates.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

 

 

Similar Threads

  1. v139h Changing Payment Gateway: Where can I find the correct template to replace the URL?
    By pgram in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 15 May 2015, 10:49 PM
  2. v150 Where can I find the file to edit product listing template ?
    By hagohn in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 18 Aug 2012, 07:28 AM
  3. v139g Looking for an Attribute Module That Will Let You Customize a Product
    By TheGuild in forum General Questions
    Replies: 1
    Last Post: 10 Feb 2012, 10:47 PM
  4. Replies: 3
    Last Post: 28 May 2006, 09:00 AM
  5. where can I find an patch or mod that I can put in my admin panel so I can actually e
    By cyber1store in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 May 2006, 06:12 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