News:

Looking for documentation? Take a look on our wiki

Main Menu

Plugin event trigger on order_done.php

Started by Joomloo1, April 27, 2014, 12:34:00 PM

Previous topic - Next topic

Joomloo1

Hi everyone,

I m trying to create a plugin in which the event will trigger when the payment is done! I have this code now on order_done.php which is working great for my website but i would like to convert it to a plugin.
Thing is, i tried those event triggers plgVmOnConfirmedOrderStorePaymentData() and plgVmConfirmedOrder() and for some reason they dont trigger :S

*The Class of the plugin extends vmPSPlugin

I dont want to create a payment plugin just a plugin that will trigger after payment action! I noticed when i create the plugin its automatically added as an option in Payment Options in Virtuemart Control panel. Perhaps i must use another class and another event trigger?

Thanks in advance!

GJC Web Design

just make it a system plugin..

class plgSystemPayment_done extends JPlugin {

and use a function

function plgVmConfirmedOrder(VirtueMartCart $cart, $order) {

//do your stuff

}

}
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