Hello everyone, I am setting up a woocommerce shop and one of the things we would like to offer our customers is an ‘Order Completed’ email that tells them their tracking number and their shipping service once we have confirmed that we have shipped the package.
However, I am having some trouble. I set up something with ACF that lets employees select a shipping service and enter a tracking number. When we set the status of the order to complete and select the option in WooCommerce to update the customer, the values don’t show up initially. We have to send it twice for the values to actually come through. I have shared my code below and I am begging for someone to help me understand how to fix this issue. I think I need to find a filter or something that defines a new property for the $order once those values are entered or selected, but I’m not too too sure on how to do that.