Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

In order to have smooth users experience with extension installation and management all extension developers need to comply and follow requirements for AbanteCart extension API and distribution.
Below is a Checklist with some suggestions and guidance to extension construction:

  • All code provided in the extension needs to be clean, well organized and free of bugs.
  • Avoid inclusion of unused or untested codes or files.
  • Avoid replacement of files and limit logical replacement of files.
  • If your extension is dependant on some other extension, make sure to include dependency in configuration. Installation process will check that for you.
  • Place all text in language files and include in the package
  • Include all configuration that is necessary to set up the extension
  • Include all necessary instruction for installation and configuration
  • Include a disclaimer or legal document for the extension. It will be shown before installation.
  • Include .htaccess and index.php in all directories under your extension to prevent unauthorised access to files.
  • Perform check in every PHP file for blocking direct access from the browser. Use code below or similar in all PHP files:
if (! defined ( 'DIR_CORE' )) {
	header ( 'Location: static_pages/' );
}
  • Do testing of the extension and it installation and uninstall process.

Distribution should include the following items. Items marked “required” needs to be included.

  • config.xml (required)
  • install and uninstall php and/or sql
  • image (directory to keep preview images and icon) (required)
  • main.php (required )
  • admin (code for control panel)
  • storefront (code for store front)
  • core (core code for the extension)
  • documentation ( any documentation needed for extension)

Details about most of extension components are covered in extension API development documentation.
In image directory include icon and preview images for your extension. Icon will be shown in market place and the extension menu and preview will be shown in extension details page before download and in the extension configuration section. Naming for icon and preview images:

icon image:            	image/icon.png (Size: 57x57 px)
       	main preview:       	image/preview.jpg (Size: 350 x 350 px)
       	additional preview: image/preview1.jpg (Size: 350 x 350 px)
                                          	image/preview2.jpg (Size: 350 x 350 px)
                                          	more images as needed ...


  • No labels