View Single Post
  #3  
Old 08-17-2015, 01:30 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote