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.
- useful
- zencart forum
- tutorials
- wiki
- 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
_
- beginner reads (zencart wiki)
_- 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
- setting up a new template
- 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.
- most common template files
are inside your_template_dir/common.
copy all the files from template_default/common there and start playing around
- all other template files
are found inside your_template_dir/templates.
copy the ones you need to change from template_default/templates/ there.
_
- rewriting parts of the code
- 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.
- most of the time you find the files for the background-code of a page inside /includes/modules/
__
_- database infos
__
- use phpMyAdmin, a web-interface for database-administration
_- make frequent backups, either with phpMyAdmin or by hand:
mysqldump db_name > ~/zencart_backup.sql
_- restore a database again:
mysql db_name < ~/zencart_backup.sql
__
_- programming tools
_
- 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)
_- of course a good text-editor with syntax-highlighting is a must.
i currently use bluefish (linux) and notepad++ (win)
_- more useful tools (@ zencart wiki)
_
i know, this just scratched the surface, so please add your infos too!
Bookmarks