Home | Docs  
 
 
   
  Categories



Home
  -  Addons  - 
Addons

Addons


Addons

Addon in SP-Cart 2.0 is a set of files that incorporates new features and/or improves standard functionality of the software.

Default structure of addon directories and files

Addon can include the following directories in any combination with the required directory:

  • /addons/[addon_name] – required directory with PHP files of the addon
  • /var/skin/base/customer/addons/[addon_name] – directory with templates for the customer area
  • /var/skin/base/admin/addons/[addon_name] - directory with templates for the admin panel
  • /var/skin/base/mail/addons/[addon_name] – directory with e-mail templates

Directory with PHP files of the addon - /addons/addon_name

  • addon.xml
  • func.php
  • init.php
  • config.php
  • /controllers
  • /schemas
  • Also, additional subdirectories and files can be created in this directory at a developer's discretion. Encryption standards require the name and structure to be identical to the structure of the main application.

addon.xml

File describes main addon data that is necessary to install and delete the addon.

func.php

Functions used by the addon controllers.

init.php

Primary function – registration of a list of hooks that will be used by the addon.

config.php

Configuration data of the addon.

/controllers

Directory contains files of the addon controllers and also files of pre- and postcontrollers of the program standard controllers.

/schemas

Directory with files extending standard schemas of the program.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
     
              << Read Previous                                                                                                        Read Next>>
     
Copyright © 2009 SP-CART.COM. All Rights Reserved.