Hi,
To create a new plugin, you can find some documentation here:
www.hikashop.com/en/support/documentatio...r-documentation.html
When you create a plugin for HikaShop, you have to extends your plugin from JPlugin.
In the plugin create the functions with the name of the triggers.
Here you can see an example using two triggers: onBeforeOrderCreate and onAfterOrderCreate.
class plgHikasshopName extends JPlugin {
function plgHikasshopName(&$subject, $config){
parent::__construct($subject, $config);
}
//Call a trigger, in this example: onBeforeOrderCreate
function onBeforeOrderCreate(&$order,&$send_email){
//Actions to do when my trigger is called
}
//Another trigger
function onAfterOrderCreate(&$order){
//Actions to do when my trigger is called
}
}
You can too see how the other plugins works.