This project an extension of a previous project - "Little Esty Shop." It adds functionality for merchants to create bulk discounts for their items. “Bulk discounts” are discounts based on the quantity of items the customer is buying, for example “20% off orders of 10 or more items”.
https://esty-shop-bulk-discounts.herokuapp.com/admin/dashboard
https://esty-shop-bulk-discounts.herokuapp.com/merchant/9/dashboard
Project is created with:
To run this program:
Open the browser of your choice and navigate to: https://esty-shop-bulk-discounts.herokuapp.com/
To run locally:
Connecting to the database & starting the server:
View in browser
List of features ready and TODOs for future development
To-do list:
Bulk discount logic handles the following cases:
Example 1
Merchant A has one Bulk Discount
Bulk Discount A is 20% off 10 items
Invoice A includes two of Merchant A’s items
Item A is ordered in a quantity of 5
Item B is ordered in a quantity of 5
In this example, no bulk discounts are applied.
Example 2
Merchant A has one Bulk Discount
Bulk Discount A is 20% off 10 items
Invoice A includes two of Merchant A’s items
Item A is ordered in a quantity of 10
Item B is ordered in a quantity of 5
In this example, Item A is discounted at 20% off. Item B is not discounted.
Example 3
Merchant A has two Bulk Discounts
Bulk Discount A is 20% off 10 items
Bulk Discount B is 30% off 15 items
Invoice A includes two of Merchant A’s items
Item A is ordered in a quantity of 12
Item B is ordered in a quantity of 15
In this example, Item A is discounted at 20% off, and Item B is discounted at
30% off.
Example 4
Merchant A has two Bulk Discounts
Bulk Discount A is 20% off 10 items
Bulk Discount B is 15% off 15 items
Invoice A includes two of Merchant A’s items
Item A is ordered in a quantity of 12
Item B is ordered in a quantity of 15
In this example, Both Item A and Item B is discounted at 20% off. Additionally,
there is no scenario where Bulk Discount B can be applied.
Example 5
Merchant A has two Bulk Discounts
Bulk Discount A is 20% off 10 items
Bulk Discount B is 30% off 15 items
Merchant B has no Bulk Discounts
Invoice A includes two of Merchant A’s items
Item A1 is ordered in a quantity of 12
Item A2 is ordered in a quantity of 15
Invoice A also includes one of Merchant B’s items
Item B is ordered in a quantity of 15
In this example, Item A1 is discounted at 20% off, and Item A2 is discounted at
30% off. Item B is not be discounted.
Project is: completed
Created by
~ feel free to contact me ~