Usage Of Change_Order_Status_Child_Order

How to use "change_order_status_child_order" in correct ways? Could someone give an example.

I want to cancel an order status before changing its status if expected conditions are not proivded.

Please note that this hook is used for multi-vendor only and for child orders (orders of vendors). Get $change_child_status variable by link and change it to false if you do not want to change child order status

Please note that this hook is used for multi-vendor only and for child orders (orders of vendors). Get $change_child_status variable by link and change it to false if you do not want to change child order status

Hi. Thanks. I understand of usage of thi,s function:

is_parent_order Y—yes / N—no
Multi-Vendor uses parent orders internally to process the initial order via the payment processor. Parent orders don’t appear on the order list in the Administration panel.
parent_order_id integer: If an order includes products from several vendors, then a parent order and separate orders for each vendor are created. These separate orders are linked to the ID of the parent order.

Hello

You should do it in the hook. Remember to give the character & before the variable $change_child_status.

Best regards

Robert

You are welcome!

Hello

You should do it in the hook. Remember to give the character & before the variable $change_child_status.

Best regards

Robert

Thanks.