Moved the order history logic to the shoppingcart's api.py