Total Posts: 76
Johan, the problem with showing all of the steps at once is that each step is reliant on the previous (eg. You cannot show the customer the proper shipping methods/pricing until you know their ship to information.).
My thought on how the AJAX should degrade is:
Now for the core of the page, you would add additional hooks to try and determine what step they are at. I believe I posted about this once before, but here is how I tend to do it (not the BEST way, but this is pseudo code):
- Validate billing info: If there are any errors, show the billing step again and flag for errors. Else, continue on to the next step, shipping info.
If billing is the same as shipping, update the shipping details
- Validate shipping info: If there are any errors, show this step and flag errors. Else continue to the next step, shipping methods.
- Validate shipping method selected. If there are any errors, show this step and flag errors. Else continue to the next step, payment method.
- Validate payment method. If errors, highligh. Else review order!
This also would solve the problem of leaving checkout and then coming back. Which is a very big problem IMO.
Also, see here: http://www.magentocommerce.com/boards/viewthread/58/ and http://www.magentocommerce.com/boards/viewthread/96/