Total : 0.00 €

Before contacting us, please make sure to check our F.A.Q

Please, login or register to our website in order to be able to post a presale question in the forum.

Access Item Meta from New Order hook and thank-you hook

More
2 months 2 weeks ago #2242 by david
david replied the topic: Access Item Meta from New Order hook and thank-you hook
Dear Mike Whant,
Sorry, but our information says that your last purchase was some days before 2017 July 17.
That means that your annual subscription is surely expired and this is the reason why your credentials to grant access in our forum are revoked.

The other effect of this situation is that you are not able to download new versions anymore and we can give you pre-sales support, only.
Sorry again for that.

Anyway we opened a ticket so that you will receive some support from one of our specialists

David
At1323

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago #2239 by Mike Whant
Mike Whant created the topic: Access Item Meta from New Order hook and thank-you hook
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?

Please Log in or Create an account to join the conversation.

Moderators: david
Time to create page: 0.161 seconds

Cart

Total : 0.00 €