My sad attempt at cart that I forgot to upload before giving up. For some reason it's overwriting session rather than pushing the id on to the array