I am getting the order information after the checkout process is finished and I saw something that is strange for me.
I use :
$orderItems = $order->getAllItems();
and for configurable products I get the Parent Tshirt for example and the Selected Medium Tshirt. So I get 2 items instead of 1.
How do I get only the selected products from an order object?