I am trying to get all the order data. So I came across these three different types of methods to get items from an order
I tried the first two
getAllItems , they give me double entries of order
One with no size
Another with 0 price
foreach ($orderInfo->getAllItems() as $item):?> // code to get all order attributes <?php endforeach; ?>
and when I tried last option
getAllVisibleItems() I get a single entry(which I need), but
size is missing.
foreach ($orderInfo->getAllVisibleItems() as $item):?> // code to get all order attributes <?php endforeach; ?>
So on some exploration, I found that
getAllVisibleItems() gives me
configurable product which doesn't have the size,
So how can I get all order details in a single entry which contain every order related details
Item Name , Size , Quantity , Price I am puzzled how can I get all these details.