Difference between revisions of "X-Cart:Code"

From X-Cart 4 Classic
Jump to: navigation, search
Line 1: Line 1:
 +
==Overview ==
 +
 +
1. PHP scripts:
 +
a) Customer related scripts are located in the ./ (root) directory.
 +
b) Administrator related scripts are located in the ./admin directory.
 +
c) Provider related scripts are located in the ./provider directory.
 +
d) Common scripts are located in the ./include directory.
 +
e) Modules related scripts are located in the ./modules directory.
 +
f) Customer/Administrator/Provider related scripts location is configured in the ./top.inc.php script.
 +
 +
2. Smarty class scripts are located in ./include/lib/smarty directory.
 +
 +
3. CSS styles are described in ./skin1/*.css file.
 +
 +
4. Smarty templates configuration can be found in ./skin1/skin1.conf file.
 +
 +
5. Templates directory:
 +
a) Common templates are located in the ./skin1 and ./skin1/main directories.
 +
b) Templates for the Customer area are located in the ./skin1/customer directory.
 +
c) Templates for the Admin area are located in the ./skin1/admin directory.
 +
d) Templates for the Provider area are located in the ./skin1/provider directory.
 +
e) Mail templates are located in the ./skin1/mail directory.
 +
f) Templates for X-Cart modules are located in the ./skin1/modules directory.
 +
 +
6. Compiled templates (for cache and Smarty internal use): ./var/templates_c
 +
 +
7. Dump of MySQL database is in ./sql/*.sql file.
 +
 +
8. Website images are located in ./skin1/images directory.
 +
 +
9. Product images, category images, manufacturer images etc are located in the ./images directory.
 +
 +
10. Files related to integrated shipping modules are located in the ./shipping directory.
 +
 
==Access points==
 
==Access points==
 
===func.php===
 
===func.php===

Revision as of 11:57, 23 December 2009

Overview

1. PHP scripts: a) Customer related scripts are located in the ./ (root) directory. b) Administrator related scripts are located in the ./admin directory. c) Provider related scripts are located in the ./provider directory. d) Common scripts are located in the ./include directory. e) Modules related scripts are located in the ./modules directory. f) Customer/Administrator/Provider related scripts location is configured in the ./top.inc.php script.

2. Smarty class scripts are located in ./include/lib/smarty directory.

3. CSS styles are described in ./skin1/*.css file.

4. Smarty templates configuration can be found in ./skin1/skin1.conf file.

5. Templates directory: a) Common templates are located in the ./skin1 and ./skin1/main directories. b) Templates for the Customer area are located in the ./skin1/customer directory. c) Templates for the Admin area are located in the ./skin1/admin directory. d) Templates for the Provider area are located in the ./skin1/provider directory. e) Mail templates are located in the ./skin1/mail directory. f) Templates for X-Cart modules are located in the ./skin1/modules directory.

6. Compiled templates (for cache and Smarty internal use): ./var/templates_c

7. Dump of MySQL database is in ./sql/*.sql file.

8. Website images are located in ./skin1/images directory.

9. Product images, category images, manufacturer images etc are located in the ./images directory.

10. Files related to integrated shipping modules are located in the ./shipping directory.

Access points

func.php

home.php

cart.php

product.php

Directory /admin/

Directory /catalog/

Directory /customer/

Directory /files/

Directory /images/

Directory /include/

file1.php

file2.php

file3.php

Directory /mail/

Directory /modules/

Directory /payment/

Directory /provider/

Directory /schemes/

Directory /shipping/

Directory /skin1/

Directory /skin1_original/

This directory contain backup of default skin, JavaScripts, CSS and some images used by that skin.

Directory /sql/

Directory /upgrade/

Directory /var/