Are there any triggers that can be used to develop a plugin? If yes, would it be possible to have a list of them? I'm referring to AwoCoupon and AwoAffiliate for VirtueMart.
Plugin triggers
- Hello,There are triggers in AwoCoupon but no official documentation for them. What exactly are you trying to do?
- I'm planning to make a plugin to do some actions when commissions are earned and/or when commissions status changes to "paid"
- There are no triggers in AwoAffiliate that you can use for commissions, but you can use the same trigger that AwoAffiliate uses for when an order changes. Is this Virtuemart? If so you can create a plugin:- type: vmcoupon- function: plgVmCouponUpdateOrderStatusJust make sure you order it after the awoaffiliate plugin so when called you can check if the order has a commission from AwoAffiliate before executing your processing.
- Ah, ok! AwoAffiliate works by using VM triggers. I will use them. Because there aren't specific triggers inside AwoAffiliate, in case of need I will place my custom triggest inside AwoAffiliate functions. Thank you!