News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Definitive list of event hooks

Started by quayfee, April 20, 2012, 16:50:50 PM

Previous topic - Next topic

quayfee

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


Milbo

Just use an IDE and search in whole joomla for "plgvm" (not casesensitive). Then you should get all triggers.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

ereallstaff

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

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?
With kind regards,
Alex Stienstra

HelloMcFly

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

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

seyi

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" *
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

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