VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: webgobe on March 30, 2024, 17:09:08 PM

Title: plgVmOnDisplayProductFEVM3 not triggering
Post by: webgobe on March 30, 2024, 17:09:08 PM
Hi! I am trying to port some of my old plugins to latest VM, Joomla 4 and I have difficulties with couple of vmcustom plugins. The short version is, that the code I used to insert my needed code, namely something like this:

class plgVmCustomMyproduct extends vmCustomPlugin {
...
function plgVmOnDisplayProductFEVM3($product,&$group) {
      vmdebug('myproduct: plgVmOnDisplayProductFEVM3 ');
....
}

]

seems to not work. And I have no idea what I am doing wrong here.
Title: Re: plgVmOnDisplayProductFEVM3 not triggering
Post by: Jumbo! on April 01, 2024, 14:49:22 PM
It works fine with us on both Joomla 4 and Joomla 5. Are you using a third-party template?
Title: Re: plgVmOnDisplayProductFEVM3 not triggering
Post by: webgobe on April 04, 2024, 17:37:36 PM
Clean J4 with Cassiopeia
Title: Re: plgVmOnDisplayProductFEVM3 not triggering
Post by: Jumbo! on April 04, 2024, 22:31:17 PM
Do the other methods/functions are triggered correctly in this custom plugin?
Title: Re: plgVmOnDisplayProductFEVM3 not triggering
Post by: webgobe on April 07, 2024, 11:15:48 AM
Yes
Title: Re: plgVmOnDisplayProductFEVM3 not triggering
Post by: webgobe on May 01, 2024, 17:24:58 PM
Turned to be a conflict with another (badly written) vmcustom plugin. Thank you to anyone who contributed and gave me hints. All works since I removed the other plugin.