News:

Looking for documentation? Take a look on our wiki

Main Menu

While migrating FROM VM2 -> VM3 : plgVmOnAddToCart

Started by welrachid, December 15, 2014, 13:58:43 PM

Previous topic - Next topic

welrachid

Hi everyone.

im trying to migrate an old customplugin to work on VM3. Therefore i need to know what happened to plgVmOnAddToCart event. It is never called and i in the components/com_virtuemart/helpers/cart.php it is no longer found. NONE of the documentation i have found about VM2 -> VM3 says anything about removing such calls.

Has anyone found a solution to this?

Thanks
Best regards,
Wel

alatak

Hello
This trigger has been replaced by plgVmPrepareCartProduct.

welrachid

Hello

Thanks for the reply. I've been looking some more into this, and it seems like my plgVmPrepareCartProduct method is ONLY called if i have enabled the textinput module, but it is only called once with wrong parameters
      if ($customfield->custom_element !==$this->_name) return ;

$customfield->custom_element is never set to the name of my customfield
Is there a place that i should "register" that my plugin is using this?


Layout position for BOTH plugins is
addtocart
Best regards,
Wel