Plugin triggers


  • Default avatar
    gpalmas    
     2 years ago
    0

    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.
  • Your avatar
    seyi    
     2 years ago
    0

    Hello,

    There are triggers in AwoCoupon but no official documentation for them.  What exactly are you trying to do?
  • Default avatar
    gpalmas    
     2 years ago
    0

    I'm planning to make a plugin to do some actions when commissions are earned and/or when commissions status changes to "paid"
  • Your avatar
    seyi    
     2 years ago
    0

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

    Just 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.
  • Default avatar
    gpalmas    
     2 years ago
    0

    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!