I am looking at how to implement upsell checkout functionality, this is how it should work.
**Step 1*8. User go to the site then add product to the cart, and click the “checkout” button take them to the checkout page (one page checkout).
Step 2. User enter their shipping, billing and credit card information then click the “Process Order” button. Once user click the “Process Order” button the initial purchase is completed and take them to the first post up sell page.
Step 3. On the first post up sell page user have an option to buy additional product with “Yes” or “No” button.
Step 4. If user click the “No” button they will see the second post up sell page. If user click the “Yes” button they will see the post up sell confirmation page.
Step 5. On the post up sell confirmation page, user have option to continue with the initial purchase (step2) or they can update the order with additional item they purchased on the post up sell page.
I need to figure it out how to process the initial purchase (step2) and store the order details on the database and send the order confirmation email to the user if user close the browser on step 3.
How can I achieve this?