Changing VM Order Status (to shipped) by ERP System in order to trigger Affiliate Email / Payout Coupon Email to affiliate

  • Default avatar
     8 years ago

    Hello Seyi,

    to change the VM Order Status to "shipped" I use a ERP System (JTL Wawi) which is connected to VM.

    The changing of the Order Status works and it shows up in virtuemart but no Affiliate Email / Payout Coupon Email is sent to affiliate.

    Only after opening the order with the shipped status (Purchase Order view) in Virtuemart backend itself and changing the status to "shipped" again triggers the Affiliate Email / Payout Coupon Email.

    So is it only possible to change the order status in virtuemart backend manually or is there any chance that this can be done from the ERP System?

    Best Regards,

    Joomla 2.5.8
    Virtuemart 2.0.8
    AwoCoupon Pro Version 2.1.5
    AwoAffiliate 2.1.1
  • Your avatar
     8 years ago

    Hi Kay,

    It sounds like the ERP system is directly changing the order status of the order, which it should not. It should be calling the order_status_update function in Virtuemart, which will change the order status, as well as trigger the plugins that need to run, such as AwoAffiliate plugin. In order to not change it manually the code in the ERP system has to be updated in one of 2 ways:

    1) call the virtuemart order status update function instead of updating manually
    2) add the plugin trigger into the ERP system in which virtuemart calls