Hello.
How do I access calculator values (e.g. wooprice calculator fields values) from woocommerce new order hook and thank-you hook?
In other words, I need to access the customers field selections when a new order is created and when the order completes payment.
I have tried everything I can find online such as:
add_action( ‘woocommerce_new_order’, ‘action_woocommerce_new_order’, 10, 3 );
function action_woocommerce_new_order( $order_id ) {
$order = wc_get_order($order_id);
$order_items = $order->get_items();
$item_dump = implode($order_items);
};
However the above and everything else I’ve tried returns empty. Can I access the cart session or anything like that?
Thanks in advance.
Do I have to re-purchase to receive support?