• Resolved spiderric

    (@spiderric)


    Why is the Dibs plugin for Woocommerce changing the order status directly, without calling the normal “action” like:

    do_action( ‘woocommerce_order_status_processing’, $order_id, $order );
    All other payment services that I have used like Vipps etc. is using this action
    The reason that I am asking is that I am using a plugin that is sending an email, depending on the order status. The problem now it that this plugin is not noticing changes in order status, because the Dibs plugin is changing this status directly.
    Why is this plugin changing the order status directly and do you have any plans to fix this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Krokedil

    (@krokedil)

    Hi,

    The DIBS Easy plugin is using the WooCommerce function payment_complete in order to set the orders as “Processing”. This is the WooCommerce standard flow of handeling orders. On every status update WooCommerce is doing this dynamic action.
    Therefore we are not hooking into it manually in the plugin.?

    Why are you using a seperate plugin for sending emails depending on order status when this kind of functionality already exists in WooCommerce’s settings?

    Best Regards,
    Kristian Andersson

    Thread Starter spiderric

    (@spiderric)

    It is sending out an email depending on what product is in the order and the order status + many other triggers.

    This plugin is called:
    WooCommerce Email Notifications Pro

    It is working fine with VIPPS but not with your DIBS plugin

    Plugin Author Krokedil

    (@krokedil)

    Hi,

    I have tested to hook into the “woocommerce_order_status_processing” action and it is getting triggered when finalizing a purchase with DIBS Easy. When an order is saved in WooCommerce this action is runned. Doing this action manually as you described some other plugins does, is not following the standard WooCommerce flow because it will potentially run twice due to WooCommerce are already doing this action. Im not sure why the WooCommerce Email Notifications Pro plugin won’t work with DIBS Easy but i do not think it’s because we are not doing this action manually.

    Best Regards,
    Kristian Andersson

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Why is the Dibs plugin for Woocommerce changing the order status directly?’ is closed to new replies.