• Resolved ars111

    (@ars111)


    Hello,

    I tried to find a way to send a trigger when product that is on-hold is updated but I simply cannot find the way for this. I assume that your plugin cannot do this, but do you have a hint how this can be done?

    Thank you in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support annaszalkiewicz

    (@annaszalkiewicz)

    Hi,

    Here is how you can add support for other post statuses to trigger “post updated”.

    Thread Starter ars111

    (@ars111)

    Thank you Anna for your reply.

    May you tell me please are you sure this can work for Order statuses for products in woocoommerce? I tried this:

    add_filter( ‘notification/trigger/wordpress/post/updated/statuses’, function( $statuses, $order_status ) {
    if ( ‘product’ === $order_status ) {
    $statuses[] = ‘on-hold’;
    }

    return $statuses;
    }, 10, 2 );

    But seems like it is not working for sending notification every time when order that is on-hold is changed. If anyone can help, I will appreciate that.

    Thank you in advance.

    Plugin Support annaszalkiewicz

    (@annaszalkiewicz)

    Hi,

    Our free plugin cannot cover all custom post types and that’s why we wrote Notification: WooCommerce which has a trigger “Order Updated” that we suggest you use.

    In your code, $ order_status seems to be incorrect, it should be “order”, not “product”, but it depends on what trigger you are using.

    Thread Starter ars111

    (@ars111)

    Thank you @annaszalkiewicz
    I really did not see that you have premium upgrade. You should promote it better on your free version site since it has more features. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Trigger when product is updated’ is closed to new replies.