TomTees Posted October 22, 2010 Share Posted October 22, 2010 I could use some suggestion on how to model the Checkout Process for my e-commerce site. As I see it, when a person "checks out" there are 5 steps... 1.) Create an Account/Log-In 2.) Enter Addresses 3.) Choose Shipping Options 4.) Enter Payment Details 5.) Review & Place Order I'm trying to avoid having gigantic "God classes" and struggling to figure out how to abstract things in good OOP terms. My Head First: Design Patterns book talked about the "State Pattern" and I'm wondering if that might be a good approach? Maybe each of the 5 steps above could be a "state" in the Checkout Process? What do you think? TomTees Link to comment https://forums.phpfreaks.com/topic/216578-modeling-the-checkout-process/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.