Answer the question
In order to leave comments, you need to log in
How to build order logic in the store?
I watch the ordering process in some stores. For example, the order page /checkout
- why is this page not linked to an order number, for example, not /checkout/88
. Or is the order number stored in the session?
It is also not clear how to generate order data before sending it to the payment service. For example, I take the data from the cart before sending. But I also need to empty this basket. So, for example, if the user decides to refresh the page before sending the data, then there will be no data because the basket has already been cleared.
I would be grateful for an explanation of the logic of the sequence of actions for the implementation of the order.
Answer the question
In order to leave comments, you need to log in
For example, the /checkout order page - why is this page not linked to an order number, for example, not /checkout/88. Or is the order number stored in the session?
/checkout/88
no sense - since this is a one-time operation and there is no need to be able to get there by link at any time (which GET provides)Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question