Jump to content

Modeling the Checkout Process


TomTees

Recommended Posts

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?  :shrug:

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.