Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    11
    Plugin Contributions
    0

    Default I'm completely lost on zencart

    So here is my zencart setup: http://destroybmx.com/order/

    Not clean and not ready by any means, but it's getting there.

    Anyways, I'm just lost. I wanna edit the simple things, add a welcome greeting. But it seems when I edit one file, I change my template and it's gone. Then I read somewhere on here that you're not supposed to edit this file, you have to make a copy and put it somewhere else. It doesn't make sense how the site will just know where to look if I put a copy somewhere else. I think it comes down to the whole override system, just lost on how the whole structure works.

    I've read the wiki, tuts and everything else I can and I'm still lost. I guess I just wanna be able to make small edits and ad news bits to the main page. I'm pretty sure I'm just not grasping some simple little step. If anyone has something else for me to read or wants to chime in and open my eyes for me, I'd really love it!

    thanks a ton! I love the program so far, much better than the others I've tried(cubecart to name one).

    dustin

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: I'm completely lost on zencart

    Do not know what you have read???

    Short Primer on overrides:

    The basic concept is already part of the install - if you look at the templates folder you will see one named "classic" and one named "template_default".

    Now classic is a template - if in the admin > tools > template selection yu will see this "classic" template listed.

    Now being a template - you can create another in the includes/templates folder by creating a folder named for your template name choice. You must copy the template_info.php file into this folder and edit the template name in this file to match your template name. You have to select this new template in the admin > tools > template selection > edit > select the template > update AND tools > layout boxes controller > reset to reset the sideboxes to the default.

    Now look at the template_default folder - any file that exists there that you want/need to edit can be copied to your template folder (and the folder name that it was in also - only here can you also copy folder names).

    Now have a look around in the other folders - start with includes/languages you will see only one file - english.php and you will also see a classic folder.

    BIG point - all the files tha exist here and where there is a classic folder as there is here can be overridden (in this case there is only one file) by making a folder with your template name and copying the file to be edited into it.

    Now open the includes/languages/english folder - see the classic folder there - remember the BIG point - all files here can be copied edited and placed into a folder with your template name - overridden

    Every where there is a classic folder - the files that exist there(not folders) can be overriden in the same way.
    Zen-Venom Get Bitten

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

    Default Re: I'm completely lost on zencart

    Just to add to Kobra's fine explanation, this is a list of folders to create and files to copy to create a very basic custom template (you can build from there).

    • 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


    Anywhere 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. If the file doesn't exist in the /classic/ or /template_default/ folder, copy it from the parent folder - in the case of includes/languages/english/YOUR_TEMPLATE/index.php copy index.php from includes/languages/english/.
    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

  4. #4
    Join Date
    Apr 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: I'm completely lost on zencart

    I'll give it a try a little later tonight and see what happens.

    So basically, zen cart will look in the template folder first, if it's not there, it will go to the default folder? I don't have time to mess with it right now, but will a little later tonight for sure.

  5. #5
    Join Date
    Apr 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: I'm completely lost on zencart

    I'm looking at my file structure and it's starting to make some sense I guess, kind of, haha.

    I guess I need to get some examples and see how those work. So if I wanted to edit just the header for my logo and a few otehr things, which file would I need to edit and will that file need to be moved into my template folder or can it stay in the classic folder?

  6. #6
    Join Date
    Mar 2007
    Posts
    159
    Plugin Contributions
    0

    Default Re: I'm completely lost on zencart

    anything that 'can' be put into an override folder 'should'
    to play with the header info, copy tpl_header.php from /includes/templates/template_default/common
    into /includes/templates/insert_your_template_folder_name_here/common/
    feel free to beat the snot out of it, you can always recopy it over from template_default if it blows up to badly
    Um, or so I've been told. you know, not that I would completely hose a php file. You see, I've got this friend.......
    Last edited by TMC_Sherpa; 15 Apr 2007 at 05:33 AM. Reason: dang DOS slash

 

 

Similar Threads

  1. Completely LOST on how to upgrade
    By JTthebeeguy in forum Upgrading to 1.5.x
    Replies: 15
    Last Post: 11 Dec 2012, 11:51 PM
  2. Completely lost
    By jen549 in forum Installing on a Windows Server
    Replies: 11
    Last Post: 18 Mar 2011, 06:18 PM
  3. Super newbie, completely lost
    By bowhunter012004 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Aug 2009, 07:23 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