You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification
Quote from: Jumbo! on Today at 13:47:08 PM....
Quote from: vdweb.cz on Today at 11:58:01 AMGuys, i dont understand what:
"register listeners in your plugin"
or
"extend vmPlugin"
I have clasic joomla system plugin:
class plgSystemVD_matomo extends JPlugin {
and for this plugin i have listener plgVmConfirmedOrder:
class plgSystemVD_matomo extends JPlugin {
function plgVmConfirmedOrder($cart, $order) {
//do something
But joomla dont run this listener.
I speak about plugins from folder plugins/system/*
My plugin is in here: plugins/system/vd_matomo
<?php
defined('_JEXEC') or die;
class PlgSystemVD_matomo extends JPlugin {
public function __construct(&$subject, $config)
{
parent::__construct($subject, $config);
// For Joomla 4 and Joomla 5
if (version_compare(JVERSION, '4.0.0', 'ge')) {
$this->registerLegacyListener('plgVmConfirmedOrder');
}
}
public function plgVmConfirmedOrder($cart, $order)
{
// Do whatever you want
}
}
Quote from: Dud3 on May 07, 2024, 16:34:35 PMI've slightly added your code and it works ;-)
Page created in 0.098 seconds with 12 queries.