|
|
|
|
|
by yawaramin
551 days ago
|
|
> when the user has tweaked as necessary they can just check out. And what happens after the user spent all that time adjusting their order, submits it, and then is told at the very end that some items are out of stock? Do you think they're going to be happy about that? What if their browser crashes and the order they had built up carefully is lost? Will they bother to try again? Will you do price calculations properly with a proper decimal library or allow the user to see what IEEE754 floats think '0.1 + 0.2' should be? Lot of questions come up with the client-only approach. |
|
Stock doesn't matter for my case.
The browser has storage options to handle close and reopens.
Prices in each currency are all in ints (i.e. cents) to avoid float issues.
There are problems to address on either end that you have to be aware of.