marthaegrimaldi / marthaegrimaldi/zomato-clone-app-source-code
The application is processing orders with an amount less than the minimum order value.
- Dominant language
- JavaScript
- Stars
- 5
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
The application is processing orders with an amount less than the minimum order value.
**To Reproduce**
1. Open the application and select items to add to the cart.
2. Ensure the total order amount is below the minimum order value set by the restaurant.
3. Proceed to checkout and place the order.
**Expected behavior**
1. The application should validate the total order amount during checkout.
2. If the order amount is less than the minimum required value, the user should see a message like: "The order amount is below the minimum required value of [amount]. Please add more items to proceed."
3. The order should not be processed until the minimum order value is met.
**Proposed Solution**
1. Add a validation check at checkout to compare the total order amount with the minimum order value.
2. If the amount is below the threshold, disable the checkout option and display a clear error message.
**Smartphone (please complete the following information):**
- Device: iPhone15pro
- OS: iOS17.6.1
Contributor guide
Research direction
Start at the checkout and order-placement entry points, then trace where the restaurant's minimum order value and cart total are available. Reproduce an order below the threshold and verify that checkout shows the required message, prevents placement, and allows valid orders to proceed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- full-stack
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100