Y
Y
yativ_sobb2021-04-01 15:28:23
Software design
yativ_sobb, 2021-04-01 15:28:23

What is the best way to implement getting the price of delivery from a cafe?

I can not decide how best to deliver the shipping price when placing an order?

The situation is this, let's add we have several cafes and each cafe has its own delivery, what is the best way to get it when we place an order?

Options:
1) We make a new request for shipping information on the checkout page.
2) We store information in the cafe object and when adding an item to the cart, we save delivery information.

I'm leaning towards option 2 so we don't make a second request, but on the other hand option 1 has more flexibility as the delivery may not belong to the coffee and be region specific.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question