-- HikaShop version -- : 5.0.3
-- Joomla version -- : 4.4.3
-- PHP version -- : 8.1.27
Hi,
I'm writing a plugin and I'm stuck at a very basic step : the plugin is not triggered.
My plugin is "discovered" installed and enabled.
It's inside the directory /plugins/hikashop/plgHikashopTest/
I've stripped the php file "plgHikashopTest.php" at the bare minimum as is :
<?php defined('_JEXEC') or die('Restricted access');
class plgHikashopTest extends JPlugin
{
public function __construct(&$subject, $config)
{
parent::__construct($subject, $config);
}
public function onAfterProductCreate(&$element, &$status)
{
die();
}
public function onAfterProductUpdate(&$element, &$status)
{
die();
}
}
?>
the xml "plgHikashopTest.xml" is :
<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" version="1.0.0" method="upgrade" group="hikashop">
<name>plgHikashopTest</name>
<creationDate>mars 2024</creationDate>
<version>1.0.0</version>
<author></author>
<authorEmail></authorEmail>
<authorUrl></authorUrl>
<copyright></copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<description>plgHikashopTest</description>
<files>
<filename plugin="plgHikashopTest">plgHikashopTest.php</filename>
</files>
<params addpath="/components/com_hikaserial/params">
</params>
<config>
<fields name="params" addfieldpath="/components/com_hikaserial/fields">
</fields>
</config>
</extension>
So if triggered when a product is created or updated it should, well… die.
Nothing is triggered! Nothing die.
Any idea?
Thanks