Or maybe the order ID, customer ID, billing info, payment method, total
The answer to the question asked initially is: you don't have a Order ID yet in the cart. Only after checkout is complete the Order ID exists.
Try this: cart->get_cart (); ?>.
In this case, you have to find a way to “get the $product object from $product_id” – you find this example below. Other examples might be the order or the cart ...
(mixed) (required) The WC_Order object or ID of the order to get the corresponding subscriptions for. $args: (array) (optional) A set of name value pairs to filter the ...
id : id
If instantiated using a bundled item ID, the object will
How to Get Order ID in WooCommerce Code · //Declare the global WooCoomerce Object & Post Object · //Assign the order ID using the $post->ID.
taxes between all other items, and will not make the cart total go below zero
And how do I get the user's cart object from only the order ID? Not MY cart object but the cart object of the user that placed the order. This topic was modified 2 ...