Re: Fetch Cart Content
I believe you don't need the $count variable as "$listItems[] = array(...)" will work too.
Also, it is a bad idea of doing this: "$orderTotalAmount += $item->calculateTotal();". You should use "$order->getTotal()" and "$order->getSubtotal()" methods instead.
|