VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: manuelrocha88 on February 04, 2015, 21:49:32 PM

Title: [SOLVED] Problem With Plugin Dev
Post by: manuelrocha88 on February 04, 2015, 21:49:32 PM
Hello My Good Friends,

I've trying to develop a payment plugin for a well known payment method in Portugal.

The problem is, when I create the payment method a try to assign the configurations the values are saved to database but not loaded to the configuration interface.

Send plugin in attach
Title: Re: Problem With Plugin Dev
Post by: GJC Web Design on February 04, 2015, 22:10:41 PM
for vm3 or 2??

if vm3 you have no

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



Title: Re: Problem With Plugin Dev
Post by: manuelrocha88 on February 05, 2015, 10:50:35 AM
Quote from: GJC Web Design on February 04, 2015, 22:10:41 PM
for vm3 or 2??

if vm3 you have no

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

Thanks GJC Web Design. Problem Solved.

I didn't find any documentation how to make plugins to VM3 version...
Title: Re: [SOLVED] Problem With Plugin Dev
Post by: GJC Web Design on February 05, 2015, 11:15:15 AM
this is my bible http://reinhold.kainhofer.com/software/tutorial-vm2-plugin-vm3.html

plus http://docs.virtuemart.net/tutorials/development/175-code-adjustments-for-virtuemart-3.html

plus pull apart the std. payment plugin
Title: Re: [SOLVED] Problem With Plugin Dev
Post by: manuelrocha88 on February 05, 2015, 11:22:28 AM
Quote from: GJC Web Design on February 05, 2015, 11:15:15 AM
this is my bible http://reinhold.kainhofer.com/software/tutorial-vm2-plugin-vm3.html

plus http://docs.virtuemart.net/tutorials/development/175-code-adjustments-for-virtuemart-3.html

plus pull apart the std. payment plugin

Thanks once again. I have already read all that documentation before post here but the function you show has passed for some reason.
Title: Re: [SOLVED] Problem With Plugin Dev
Post by: GJC Web Design on February 05, 2015, 11:25:33 AM
have to admit I missed it also on my early attempts at VM3 plugs...  ;)

so yes - seems undocumented - only found it by checking the std. ones