freshcomm icon indicating copy to clipboard operation
freshcomm copied to clipboard

Need more context about the delivery process

Open roopeshsn opened this issue 3 years ago • 1 comments

As of now in Freshbey one can order items using COD and UPI. In both methods, the manual intervention is needed to update the status. In delivery status, there is only one of the two messages "Delivered" or "Not delivered" which are shown to the user.

Here's the order page. order_page_freshbey

The plan is to give more context about the delivery like where the product is right now when it will get to reach the customer something like that.

Imagine Freshbey has one or more stores in every city. It need not be a store. It can also be a warehouse. So once we get the location from the user, we'll map the nearest store or warehouse to deliver the products to the customer. Accordingly, the details will be shown to the customer as I stated above.

Come up with a solution to address this problem.

roopeshsn avatar Oct 21 '22 11:10 roopeshsn

One approach i can think of is to use socket-IO to update order notifications pushing them from server to the client as sockets allow bidirectional communication. we can also use geolocation API in JavaScript to get the current location of the customer as latitude and longitude and use any geocoding service to get the client address. To implement nearest distance search we need to save the coordinates of the warehouses or stores in the database. I am willing to contribute on this or any other idea.

vishu2222 avatar Apr 24 '23 11:04 vishu2222