eSales - Reorder Process
The workflow for reordering is shown in the following image. It works similarly to modifying an order.

The eSales - Reorder Process is called when a customer clicks Reorder in the Order History Summary view. The following events happen:
The process determines whether the Shopping Cart is empty.
If it is empty, a new quote (Shopping Cart) is created from the order and the SS - Start Checkout Process (see SS Start Checkout Process) is called.
If it is not empty, the Reorder Confirmation view appears, where the user has three choices:
Cancel. The process determines whether the quote is for an existing customer. If it is, the Customer Order Detail View appears and the process ends. If it is not, the Order History Summary View appears and the process ends.
Discard Cart. The Shopping Cart is emptied and a new Shopping Cart is created from the order. The eSales - Checkout Process is called.
Save Cart. If there is an error, the eSales - Display Error Process (see eSales - Display Error Process) is called, and then the user is sent back to the Reorder Confirmation view. For example, this would happen if the user tried to save a quote with a name that was already being used.
If there is no error, the Shopping Cart is saved as a quote (see eSales - Save Cart Process) and a new Shopping Cart is created from the order. The SS - Start Checkout Process is called.