I am currently developing a little ecommerce application to help me get to grips with CodeIgniter and programming in general.
I have a 4 step checkout process.
- Customer name, email, shipping country
- Shipping option, shipping address
- Billing option, billing address
- Review and submit
Currently I am storing all this data in the session (cookie for now, db when live) as a JSON encoded array.
I was wondering, am I better off storing the information in the order table linked to cart items so that I can track abandoned carts (contents, step when user exited) or just retaining it in the session and transferring it all when they confirm on the review page.
I am trying to get to grips with some of the options available to me.