That didn't really do it. Because I had the initial error I then removed the add to cart buttons. There were also other includes which started with "virtual". This may have contributed to things being messed up. I am starting from the beginning again recreating the checkout page and cart pages etc.
I'll let you know how it goes.