VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: quayfee on April 20, 2012, 16:50:50 PM

Title: Definitive list of event hooks
Post by: quayfee on April 20, 2012, 16:50:50 PM
Hi All,

Is there a definitive list somewhere of the current event hooks that are available for plug-in development?

I've just completed a project which integrates a web services with both ordering and verification stages into an VM1.1 site, activating code when the product was added to the cart, then another bunch of code to fulfill the order when the status changed to 'Confirmed'.

The next stage for me is to convert this to VM2. So what I'm hoping is that there re two event hooks: onVMProductAddToCart and onVMOrderSatusUpdate($newStatus), or something like them, where I can basically invoke the same web service calls that I have already written.

Any help or guidance on this would be great.

Many Thanks

Keith
Title: Re: Definitive list of event hooks
Post by: iantrobbins on July 21, 2012, 07:58:37 AM
Bump
Title: Re: Definitive list of event hooks
Post by: Milbo on July 23, 2012, 14:47:49 PM
Just use an IDE and search in whole joomla for "plgvm" (not casesensitive). Then you should get all triggers.
Title: Re: Definitive list of event hooks
Post by: ereallstaff on September 23, 2013, 12:14:16 PM
Hello I have searched debugging to see which events are thrown with

libraries/joomla/event/dispatcher.php

in function : trigger()

I have seen that no events are thrown on product opening or on product saving.

Is that correct or I am seeing somewhere wrong?

Virtuemart 2.0.22c
Joomla: 2.5.14

Thanks
Title: Re: Definitive list of event hooks
Post by: Lexiboy on August 28, 2015, 21:19:47 PM
Quote from: Milbo on July 23, 2012, 14:47:49 PM
Just use an IDE and search in whole joomla for "plgvm" (not casesensitive). Then you should get all triggers.

FYI, I only saw them with plgVm (so capitol V), do you think I looked well enough?
Title: Re: Definitive list of event hooks
Post by: HelloMcFly on December 22, 2016, 19:27:40 PM
I would like to find a list of event hooks for VM 3.

Can anyone recommend an IDE?  I assume in this context we are referring to an Integrated Development Environment.  I am not familiar with that term . . . I do all of my PHP programming in NotePad++ . . . seriously!  :)
Title: Re: Definitive list of event hooks
Post by: GJC Web Design on December 22, 2016, 21:48:07 PM
So do I (Notepad++) but to find the triggers I just search the VM install for plgVm (I use Directory Opus)

//admin
plgVmBuildTabs
plgVmOnUpdateOrderBEPayment
plgVmOnUpdateOrderBEShipment
plgVmOnShowOrderLineBEShipment
plgVmOnUpdateOrderBEShopper
plgVmOnUserStore
plgVmAfterUserStore

//calc
plgVmGetPluginInternalDataCalc
plgVmGetPluginInternalDataCalcList
plgVmOnStoreInstallPluginTable
plgVmDeleteCalculationRow
plgVmInGatherEffectRulesProduct
plgVmInGatherEffectRulesBill
plgVmInterpreteMathOp
plgVmOnDisplayEdit
plgVmAddMathOp

//not specific
plgVmCalculateDisplayedCartOptions
plgVmOnCheckAutomaticSelected
plgVmOnViewCartModule
plgVmOnViewCart
plgVmDisplayInOrder
plgVmConfirmedOrder
plgVmOnSelfCallBE  (type passed)
plgVmOnSelfCallFE  (type passed)
plgVmAfterUserStore

//coupon
plgVmCouponHandler
plgVmCouponUpdateOrderStatus

//custom
plgVmOnAddToCartFilter
plgVmOnRemoveFromCart
plgVmOnCheckoutCheckStock
plgVmDeclarePluginParamsCustomVM3
plgVmOnStoreInstallPluginTable
plgVmGetTablePluginParams
plgVmOnDisplayProductFEVM3
plgVmOnProductEdit
plgVmPrepareCartProduct
plgVmOnStoreProduct
plgVmGetProductStockToUpdateByCustom
plgVmBeforeProductSearch
plgVmCloneProduct
plgVmOnDeleteProduct
plgVmOnDisplayEdit
plgVmSelectSearchableCustom

//shipment
plgVmOnSelectedCalculatePriceShipment
plgVmOnSelectCheckShipment
plgVmOnCheckoutCheckDataShipment
plgVmOnShowOrderBEShipment
plgVmOnUpdateOrderShipment
plgVmOnShowOrderFEShipment
plgVmOnUpdateOrderLineShipment
plgVmDeclarePluginParamsShipmentVM3
plgVmSetOnTablePluginParamsShipment
plgVmSetOnTablePluginShipment
plgVmOnStoreInstallShipmentPluginTable
plgVmShipmentWeight_countries (in migration script)
plgVmDisplayListFEShipment
plgVmOnProductDisplayShipment
plgVmOnShipmentResponseReceived



//payment
plgVmonSelectedCalculatePricePayment
plgVmOnSelectCheckPayment
plgVmOnCheckoutCheckDataPayment
plgVmgetPaymentCurrency
plgVmDisplayLogin
plgVmOnShowOrderBEPayment
plgVmOnUpdateOrderPayment
plgVmOnCancelPayment
plgVmOnShowOrderFEPayment
plgVmOnUpdateOrderLinePayment
plgVmDeclarePluginParamsPaymentVM3
plgVmSetOnTablePluginParamsPayment
plgVmSetOnTablePluginPayment
plgVmOnStoreInstallPaymentPluginTable
plgVmPaymentStandard  (in migration script)
plgVmDisplayListFEPayment
plgVmgetEmailCurrency
plgVmOnProductDisplayPayment
plgVmOnPaymentResponseReceived
plgVmOnUserPaymentCancel
plgVmOnPaymentNotification


//coupon
plgVmValidateCouponCode
plgVmRemoveCoupon
plgVmCouponInUse

//calc, payment, shipment, custom
plgVmConfirmedOrder

//shipment, payment, extend, userfield, coupon
plgVmOnCheckoutAdvertise

//userfield
plgVmInitialise
plgVmPrepareUserfieldDataSave
plgVmDeclarePluginParamsUserfieldVM3
plgVmOnBeforeUserfieldSave
plgVmOnStoreInstallPluginTable
plgVmOnGetUserfields
plgVmOnUserfieldDisplay

//shopper, extended
plgVmOnUserOrder
plgVmOnUserStore

//shopper, payment, extended
plgVmOnUserInvoice

//system, userfield, extended
plgVmOnAskQuestion

//extended, userfield
plgVmOnBeforeUserfieldDataSave

//vendor
plgVmOnVendorStore
plgVmAfterVendorStore



Title: Re: Definitive list of event hooks
Post by: seyi on December 23, 2016, 15:50:38 PM
If you are on a windows box, traverse to the root of your vm project in cmd prompt and you can search with the command:

findstr /sinc:"plvm" *
Title: Re: Definitive list of event hooks
Post by: razor7 on February 22, 2018, 16:07:16 PM
Quote from: GJC Web Design on December 22, 2016, 21:48:07 PM
So do I (Notepad++) but to find the triggers I just search the VM install for plgVm (I use Directory Opus)

//admin
plgVmBuildTabs
plgVmOnUpdateOrderBEPayment
plgVmOnUpdateOrderBEShipment
plgVmOnShowOrderLineBEShipment
plgVmOnUpdateOrderBEShopper
plgVmOnUserStore
plgVmAfterUserStore

//calc
plgVmGetPluginInternalDataCalc
plgVmGetPluginInternalDataCalcList
plgVmOnStoreInstallPluginTable
plgVmDeleteCalculationRow
plgVmInGatherEffectRulesProduct
plgVmInGatherEffectRulesBill
plgVmInterpreteMathOp
plgVmOnDisplayEdit
plgVmAddMathOp

//not specific
plgVmCalculateDisplayedCartOptions
plgVmOnCheckAutomaticSelected
plgVmOnViewCartModule
plgVmOnViewCart
plgVmDisplayInOrder
plgVmConfirmedOrder
plgVmOnSelfCallBE  (type passed)
plgVmOnSelfCallFE  (type passed)
plgVmAfterUserStore

//coupon
plgVmCouponHandler
plgVmCouponUpdateOrderStatus

//custom
plgVmOnAddToCartFilter
plgVmOnRemoveFromCart
plgVmOnCheckoutCheckStock
plgVmDeclarePluginParamsCustomVM3
plgVmOnStoreInstallPluginTable
plgVmGetTablePluginParams
plgVmOnDisplayProductFEVM3
plgVmOnProductEdit
plgVmPrepareCartProduct
plgVmOnStoreProduct
plgVmGetProductStockToUpdateByCustom
plgVmBeforeProductSearch
plgVmCloneProduct
plgVmOnDeleteProduct
plgVmOnDisplayEdit
plgVmSelectSearchableCustom

//shipment
plgVmOnSelectedCalculatePriceShipment
plgVmOnSelectCheckShipment
plgVmOnCheckoutCheckDataShipment
plgVmOnShowOrderBEShipment
plgVmOnUpdateOrderShipment
plgVmOnShowOrderFEShipment
plgVmOnUpdateOrderLineShipment
plgVmDeclarePluginParamsShipmentVM3
plgVmSetOnTablePluginParamsShipment
plgVmSetOnTablePluginShipment
plgVmOnStoreInstallShipmentPluginTable
plgVmShipmentWeight_countries (in migration script)
plgVmDisplayListFEShipment
plgVmOnProductDisplayShipment
plgVmOnShipmentResponseReceived



//payment
plgVmonSelectedCalculatePricePayment
plgVmOnSelectCheckPayment
plgVmOnCheckoutCheckDataPayment
plgVmgetPaymentCurrency
plgVmDisplayLogin
plgVmOnShowOrderBEPayment
plgVmOnUpdateOrderPayment
plgVmOnCancelPayment
plgVmOnShowOrderFEPayment
plgVmOnUpdateOrderLinePayment
plgVmDeclarePluginParamsPaymentVM3
plgVmSetOnTablePluginParamsPayment
plgVmSetOnTablePluginPayment
plgVmOnStoreInstallPaymentPluginTable
plgVmPaymentStandard  (in migration script)
plgVmDisplayListFEPayment
plgVmgetEmailCurrency
plgVmOnProductDisplayPayment
plgVmOnPaymentResponseReceived
plgVmOnUserPaymentCancel
plgVmOnPaymentNotification


//coupon
plgVmValidateCouponCode
plgVmRemoveCoupon
plgVmCouponInUse

//calc, payment, shipment, custom
plgVmConfirmedOrder

//shipment, payment, extend, userfield, coupon
plgVmOnCheckoutAdvertise

//userfield
plgVmInitialise
plgVmPrepareUserfieldDataSave
plgVmDeclarePluginParamsUserfieldVM3
plgVmOnBeforeUserfieldSave
plgVmOnStoreInstallPluginTable
plgVmOnGetUserfields
plgVmOnUserfieldDisplay

//shopper, extended
plgVmOnUserOrder
plgVmOnUserStore

//shopper, payment, extended
plgVmOnUserInvoice

//system, userfield, extended
plgVmOnAskQuestion

//extended, userfield
plgVmOnBeforeUserfieldDataSave

//vendor
plgVmOnVendorStore
plgVmAfterVendorStore





Great list! thanks!