News:

Looking for documentation? Take a look on our wiki

Main Menu

[SOLVED] Problem With Plugin Dev

Started by manuelrocha88, February 04, 2015, 21:49:32 PM

Previous topic - Next topic

manuelrocha88

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

GJC Web Design

for vm3 or 2??

if vm3 you have no

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



GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

manuelrocha88

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...

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

manuelrocha88

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.

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation