Hello,
Please modify the HikaShop category class in order to place the trigger call after the category_id is set in the object
Replacing
if($new)
$dispatcher->trigger( 'onAfterCategoryCreate', array( & $element ) );
else
$dispatcher->trigger( 'onAfterCategoryUpdate', array( & $element ) );
if(empty($element->$pkey)) {
$element->$pkey = $status;
if($ordering) {
/* ... */
}
}
By
if($new) {
$element->$pkey = $status;
$dispatcher->trigger( 'onAfterCategoryCreate', array( & $element ) );
} else
$dispatcher->trigger( 'onAfterCategoryUpdate', array( & $element ) );
if($new && $ordering) {
/* ... */
}
So you will have that information in the "onAfterCategoryCreate" event.
We will update the package in our side.
Regards,