We want to ensure that the order should have a tracking number added to it before its marked as Shipped in the status. how can this be done ?
Use the change_order_status hook in the fn_change_order_status function (app/functions/fn.cart.php)
Use the change_order_status hook in the fn_change_order_status function (app/functions/fn.cart.php)
If i find an shipment ID for an order then i can continue with the status change so should i return true and false for this condition or is it something else i need to do like exit or break from the code.
If i find an shipment ID for an order then i can continue with the status change so should i return true and false for this condition or is it something else i need to do like exit or break from the code.
Just set $status_to to $status_from. In this case no any changes will be made