Skip to main content

4. State Diagram

Sơ đồ trạng thái

Explanation:
  1. The initial state is the home page of the online store.
  2. From the home page, the user navigates to the product page.
  3. From the product page, the user can either add the product to the cart or go back to the home page.
  4. If the user adds the product to the cart, they are taken to the cart state.
  5. From the cart state, the user can proceed to checkout.
  6. From the checkout state, the user chooses their payment method and is taken to the payment state.
  7. In the payment state, the user confirms their payment, and the state changes to processing.
  8. From the processing state, the online store requests shipment, and the state changes to shipment.
  9. In the shipment state, the online store either indicates that the shipment is in progress or that the shipment has been delivered.
  10. If the shipment has been delivered, the state changes to delivered, and the order is complete.
  11. If the shipment is still in progress, the state changes back to processing until the shipment is delivered.
  12. The final state is the home page, indicating that the order process is complete.