Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27
  1. #21
    Join Date
    Apr 2007
    Posts
    71
    Plugin Contributions
    0

    Default Re: Really really hard to customize - any easy hints?

    Quote Originally Posted by TShooters View Post
    Have you created a custom folder in includes/languages/english/html_includes/your_template_name,
    and copied the define_***.php pages from html_includes to it that you intend to
    customize/modify?

    If so, when you open them in admin/tools/define pages editor, it should
    say at the top above the edit box:
    Editing file: ..../includes/languages/english/html_includes/your_custom_template/define_***.php
    Thanks. That worked.

    doug

  2. #22
    Join Date
    Apr 2007
    Posts
    71
    Plugin Contributions
    0

    Default Re: Really really hard to customize - any easy hints?

    Quote Originally Posted by afo View Post
    Everyone starts out and . Once you get the hang of it you'll wonder why you thought it was so difficult and you'll feel and .

    To create a very basic custom template (you can build from there), you need:
    includes/languages/YOUR_TEMPLATE/english.php
    includes/languages/english/YOUR_TEMPLATE/index.php
    includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
    includes/templates/YOUR_TEMPLATE/template_info.php
    includes/templates/YOUR_TEMPLATE/common/tpl_header.php
    includes/templates/YOUR_TEMPLATE/common/tpl_footer.php
    includes/templates/YOUR_TEMPLATE/images/logo.gif
    includes/templates/YOUR_TEMPLATE/css/stylesheet.css

    Any where you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder or the /template_default/ folder.

    I recommend unzipping a copy of the latest ZC on your hard drive for two reasons.

    1) You can see the folder/file structure which will make things clearer
    2) You can edit files locally and FTP them to your site making an instant "backup"of your online store

    ALWAYS use a good text editor like Notepad or Crimson Editor when working with ZC.
    I found out what was causing that error before. In your instructions you mention there should be a

    includes/languages/english/YOUR_TEMPLATE/index.php

    file, but not where to get it from. I assumed it was the index.php at the top level of the store, but using that causes the error.

    If you use the in includes/languages/english/index.php instead then it works fine.

    doug

  3. #23
    Join Date
    Apr 2007
    Posts
    71
    Plugin Contributions
    0

    Default Re: Really really hard to customize - any easy hints?

    I think I figured out the basic philosophy of the override files. Correct me if I'm wrong:

    In any directory (includes/languages, includes/languages/english, includes/templates) there are files. If you want to override any of those files, create a custom sub-directory (giving it the name of your custom template), copy the files from the parent directory into your custom directory and override them there.

    Zen Cart will look first in the parent directory for a sub-directory with the name of your custom template. If it finds the required file in the custom directory it will use that file. Otherwise it will use the file from the parent directory.

    Does that sound like the gist of it?

    doug

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

    Default Re: Really really hard to customize - any easy hints?

    Very good statement of the override structure functionality.

    Just one thing - some files are not overrideable even if you put a /custom/ folder in the right place. If there isn't a /classic/ folder there, overrides will not work.
    Those are very few for the files most people need to edit.

  5. #25
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Really really hard to customize - any easy hints?

    Quote Originally Posted by gjh42 View Post
    Just one thing - some files are not overrideable even if you put a /custom/ folder in the right place. If there isn't a /classic/ folder there, overrides will not work.
    Those are very few for the files most people need to edit.
    Exactly. Here's a handy reference:
    Quote Originally Posted by DrByte View Post
    Also, the Overrides Chart is a helpful reference:
    http://www.zen-cart.com/index.php?ma...roducts_id=298
    .

    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.

  6. #26
    Join Date
    Apr 2007
    Posts
    71
    Plugin Contributions
    0

    Default Re: Really really hard to customize - any easy hints?

    Quote Originally Posted by DrByte View Post
    Exactly. Here's a handy reference:
    For some reason I can't unzip that file.

    doug

  7. #27
    Join Date
    Dec 2005
    Posts
    1,059
    Plugin Contributions
    2

    Default Re: Really really hard to customize - any easy hints?

    You can also get the chart here:

    https://www.zen-cart.com/tutorials/i...hp?article=143

    Welcome to Zendom!
    [FONT=Arial]Country Kitty Crafts[/FONT][FONT=Arial]
    [/FONT] [FONT=Garamond]
    [/FONT]

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Really Easy Question
    By dandaman992 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 May 2008, 01:14 AM
  2. Need advice. pages are really, really ssllooowwww to load
    By psgbuilder in forum General Questions
    Replies: 3
    Last Post: 12 Jul 2007, 11:49 PM
  3. How hard is it really to update?
    By bjraines in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 8 Jan 2007, 03:54 AM
  4. PLEASE HELP really really stuck with shipping
    By wolf99 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 25 Oct 2006, 08:38 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