-- HikaShop version -- : 2.3.5
-- Joomla version -- : 2.5
I built a plugin that triggers under this functions:
function onAfterProductCreate(&$element) {
$this->fillProductDescription($element);
}
function onAfterProductUpdate(&$element){
$this->fillProductDescription($element);
}
It works fine both from Frontend and Backend when creating or updating a product, BUT, when publishing or unpublishing from the product list action button it gets triggered too without passing the product as $element so my plugin works wrongly as it has no reference on which product fields it has to use.
Is this a bug?
How can I change the code to pass the porduct ID as a parameter form product listings?