Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn when ordering excessive quantities? #85

Open
julian-git opened this issue Jan 29, 2014 · 0 comments
Open

Warn when ordering excessive quantities? #85

julian-git opened this issue Jan 29, 2014 · 0 comments
Milestone

Comments

@julian-git
Copy link
Collaborator

We should think about warning people when they order unusually high quantities.
This could mean (a) more than 5 if the order_unit_measure is "kg" or (b) exceed the average consumption today by 200% if that is non-zero, among other things;
also, we'd have to think about when this is going to fire:

  • a listener in each quantity box? (expensive DOM)
  • before sending the query to the database, ie in a validation step. This involves another query if we use the average consumption; otherwise, for method (a), an entry in config.php for each unit_measure. so maybe tha't the best way to go...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant