Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2007
    Location
    Vienna
    Posts
    38
    Plugin Contributions
    0

    Idea or Suggestion How-To: zc Modification / Programming Basics

    hey all,

    maybe offtopic, but i wanted to sum this infos up, just to have a quick overview of the basic techniques for modifying and re-writing parts of zencart.
    1. useful

      1. zencart forum
      2. tutorials
      3. wiki
      4. developer toolkit (get used to it!)
        it's located in the admin area -> tools -> developer toolkit
        since there are plenty of files, it's used to quickly find the ones you want to modify
        _
    2. beginner reads (zencart wiki)
      _
      1. top 10 questions asked by new zencart users
      2. customisation
      3. administration howto
      4. visual overview of zencart

        _

    3. templates
      they reside in /includes/templates/.
      inside your_template_dir/ (/includes/templates/your_template_dir/) you can safely experiment and change or delete everything you like


      1. setting up a new template

      2. stylesheets
        any file with .css extension inside your_template_dir/css will be loaded in zencart. i'd suggest creating some more like stylesheet_newelements.css and stylesheet_sideboxes.css to quickly find your own changes.

      3. most common template files
        are inside your_template_dir/common.
        copy all the files from template_default/common there and start playing around

      4. all other template files
        are found inside your_template_dir/templates.
        copy the ones you need to change from template_default/templates/ there.

        _

    4. rewriting parts of the code

      1. it's most important to get an idea of where to find the files. use the developer-toolkit!
        a good way to find the right files is to search for the id's of the elements, you want to change the content of.

      2. most of the time you find the files for the background-code of a page inside /includes/modules/
        __

        _
    5. database infos
      _
      _
      1. use phpMyAdmin, a web-interface for database-administration
        _
      2. make frequent backups, either with phpMyAdmin or by hand:
        mysqldump db_name > ~/zencart_backup.sql
        _
      3. restore a database again:
        mysql db_name < ~/zencart_backup.sql
        __

        _
    6. programming tools
      _
      1. use svn/subversion to keep control of your changes
        (also import the database-dumps). once tried out, you'll like it
        _

        here are some howtos: Version Control for Non-Programmers, Subversion e-book

        i can also recommend SmartSVN, as a good interface (TortoiseSVN might be another choice)
        _
      2. of course a good text-editor with syntax-highlighting is a must.
        i currently use bluefish (linux) and notepad++ (win)
        _
      3. more useful tools (@ zencart wiki)

    _

    i know, this just scratched the surface, so please add your infos too!
    Last edited by Ajeh; 24 Feb 2007 at 03:29 AM.

  2. #2
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: How-To: zc Modification / Programming Basics

    Very nice guide!

    Except that you forgot the manual...( ARE YOU CRAZY?... oh yea, I uh guess you are. )

    e-Start your web store with zencart. See the ad at the top right of the site.

    STICKY PLEASE!!!

 

 

Similar Threads

  1. How insert info SQL? Script basics?
    By Feznizzle in forum General Questions
    Replies: 3
    Last Post: 20 Jul 2010, 09:00 PM
  2. How much Object Oriented Programming is in Zencart ?
    By DogTags in forum General Questions
    Replies: 2
    Last Post: 25 Nov 2009, 04:51 PM
  3. How did you hear about us modification
    By deb in forum Managing Customers and Orders
    Replies: 3
    Last Post: 10 Nov 2008, 03:43 PM
  4. How to avoid missing my new modification ? + rtl problem !
    By alhakeem2001 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Nov 2007, 09:56 AM
  5. Admin modification vs. .php file modification??
    By recordshow in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 Nov 2006, 05:00 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR