Author Topic: Definitive list of event hooks  (Read 3924 times)

quayfee

  • Beginner
  • *
  • Posts: 17
Definitive list of event hooks
« 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

iantrobbins

  • Beginner
  • *
  • Posts: 4
  • General Joomla! and CMS Developer
Re: Definitive list of event hooks
« Reply #1 on: July 21, 2012, 07:58:37 am »
Bump

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9741
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Definitive list of event hooks
« Reply #2 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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

ereallstaff

  • Jr. Member
  • **
  • Posts: 147
  • InnovaIlweb CEO
Re: Definitive list of event hooks
« Reply #3 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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ì
Try out our new joomla background rotator ( for joomla 1.x or 2.x), for only 14,99 eur @ innovailweb.it

Lexiboy

  • Jr. Member
  • **
  • Posts: 65
    • Lemongrass House Moscow
Re: Definitive list of event hooks
« Reply #4 on: August 28, 2015, 21:19:47 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?
With kind regards,
Alex Stienstra

HelloMcFly

  • Beginner
  • *
  • Posts: 25
Re: Definitive list of event hooks
« Reply #5 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!  :)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8556
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Definitive list of event hooks
« Reply #6 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



GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

seyi

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 397
    • AwoDev
Re: Definitive list of event hooks
« Reply #7 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:

Code: [Select]
findstr /sinc:"plvm" *
Seyi A
--------------------
Promotion enhancement for Virtuemart:
   - AwoCoupon FREE - http://www.awocoupon.com/starter
   - AwoCoupon Pro - http://awodev.com/products/joomla/awocoupon
   - AwoRewards - http://awodev.com/products/joomla/aworewards
   - AwoAffiliate - http://awodev.com/products/joomla/awoaffiliate

razor7

  • Jr. Member
  • **
  • Posts: 323
    • MGSCreativa - Professional VM!
Re: Definitive list of event hooks
« Reply #8 on: February 22, 2018, 16:07:16 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!
MGS Creativa - VirtueMart Payment Plugin Experts
http://www.mgscreativa.com

Take a look at our downloads section for VirtueMart payment plugins and mouch more!
http://www.mgscreativa.com/en/online-store