CodeIgniter based e-shop, shipping and gift address design problem
Posted
by
alexander
on Stack Overflow
See other posts from Stack Overflow
or by alexander
Published on 2010-12-18T14:17:10Z
Indexed on
2010/12/23
4:53 UTC
Read the original article
Hit count: 333
While building an ecommerce platform I have run into design problems. I'm working with the built-in CodeIgniter's cart class. It stores all the cart information in session. Let say that cart has already been filled with products and user clicks checkout. When should I store order in database? Just after that click or after several steps of gathering information and stoing it in session? How to deal with additional features like different shipping methods? Should I add it to the basket first and get additional (gift address) to session? I dont want to store it in database because of the relation between gift address and order is needed and since I dont know what's the ID of the order. I'm puzzled :) Additionally I think its crucial to keep cart aware of shipping methods and additional bought services (by selecting gift address there is an extra fee) because the cart content is just like an reciept?
In brief, what is the best practice to process checkout?
© Stack Overflow or respective owner