Here is the situation. I have a woocommerce site used as a market. I sell games on it because some buyers get a steam key. To do this, I’m working on a key attribution system, therefore, going to the page, the key will be an attribute for the user.
To do this, I want to check all the orders made by the current user (at the login and on the page), and check the game that he bought.
I find here very useful information: How to get WooCommerce order details
However, I am unable to receive all orders of the current user. I first think to make a SQL query, but I did not find a link in the database between the order and the user.
Do you have leadership?
source
share