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
Bump
Just use an IDE and search in whole joomla for "plgvm" (not casesensitive). Then you should get all triggers.
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
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?
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! :)
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
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" *
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!