-- HikaShop version -- : 5.1.0
-- Joomla version -- : 5
-- PHP version -- : 8
-- Browser(s) name and version -- : Chrome
Hello
I've tried to create an hikashop plugin in hplugins/hikashop/checkGift/ but it seems doesn't work
My xml File : checkGift.xml
<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" version="2.5" method="upgrade" group="hikashop">
<name>CheckGift</name>
<creationDate>19 aout 2024</creationDate>
<version>5.0.4</version>
<author>Bob</author>
<authorEmail>robert.bitoun@gmail.com</authorEmail>
<authorUrl>http://www.le-monde-sensible-massages.fr</authorUrl>
<copyright>(C) 2010-2024 LMS SOFTWARE. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<description>This plugin enables you to check a gift</description>
<files>
<filename plugin="checkGift">checkGift.php</filename>
</files>
</extension>
my php file : checkGift.php<?php
/**
* @package HikaShop for Joomla!
* @version 5.0.4
* @author hikashop.com
* @copyright (C) 2010-2024 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
class plgHikashopCheckGift extends JPlugin
{
public function onHikashopBeforeDisplayView(&$view)
{
echo 'success';
exit;
}
}
i will obtain a blanc page no with "succes" no ?
Could you help me ? it's my first try of Plugin