Developers/Order plugins

An activated order plugin performs actions or checks in the basket of each customer or during the checkout process. This can be granting free shipping when a certain total amount is reached, setting a minimum order value or checking the basket integrity before the customer can buy the articles (products still available, prices still the same, etc.). There are no limits regarding the number of used plugins and the things they should do. Everything that can be programmed in PHP is possible with plugins.

More abstract speaking, an activated order plugin is automatically instantiated, it registers itself at the basket and executes actions on defined events in the basket. An event can be the adding of a product to the basket, removing a product from the basket, starting the checkout process etc.

Creating new plugins

 * Understanding plugins
 * Dummy example plugin provider
 * Register plugin and perform actions
 * Create decorators for plugin providers
 * Write a unit test for your plugin

Note: In order to get your new plugin working, you have to create a corresponding entry for it. See the user manual for more.