Write functions to get/make order history. Fix Cart bug.