News:

Looking for documentation? Take a look on our wiki

Main Menu

Payment Plugin constructor never called

Started by tlahtine, December 30, 2011, 17:01:59 PM

Previous topic - Next topic

tlahtine

I'm developing a new payment plugin and have succesfully installed it. However, when setting the parameters, the payment plugin constructor is never called. As if the observer system is not working for my class.

Not being too familiar with Joomla and Virtuemart I don't know where to start debugging this.
How the registration system works, i.e. what could be wrong here?

alatak

Hi,


Did you add those two functions:


function plgVmDeclarePluginParamsPayment($name, $id, &$data) {
return $this->declarePluginParams('payment', $name, $id, $data);
    }

    function plgVmSetOnTablePluginParamsPayment($name, $id, &$table) {
return $this->setOnTablePluginParams($name, $id, $table);
    }

tlahtine

Quote from: alatak on December 30, 2011, 18:31:04 PM
Did you add those two functions:

Yes.

But we are not on the right track here, if the class is never even created, the problem is not missing methods.

How does the plugin system work, where the observer registration happens?

tlahtine

OK, solved this one, I had a stupid error in sys.ini files.


However, I would still be interested in understanding a bit how this observer plugin system works.