Minimum Order Amount
Budget: $30 – $250 USD
Requirements:
Tech Stack: please use Node.js and React
We need to create a custom app that allows the store admin to set a minimum purchase amount that will be applied to customers tagged as “wholesaler”
1. In the admin panel the app must create a section with an input field and instructions where the store admin can define and update the store’s “minimumPurchaseAmount”
2. In the front end, in both the cart and checkout pages the app must validate if the customer has the “wholesale” tag, if they do, then it should look at the total amount of the cart or order (excluding shipping) and validate if said amount is equal or greater than the “minimumPurchaseAmount”
3. If the total cart amount is equal or greater than the “minimumPurchaseAmount” then the user is allowed to go to the checkout and place an order
4. if the total cart amount is smaller than the “minimumPurchaseAmount” then the user should not be allowed to to proceed with their purchase and the store must display a message saying “The minimum purchase amount for wholesalers is %defined_amount%, your current total amount is %users_current_total_amount%, please add some more items to your cart and try again”
5. Under no circumstances a user tagged as “wholesaler” can be allowed to place an order if the order total is smaller than the defined “minimumPurchaseAmount”
6. Please provide the code in a github repository
Tech Stack: please use Node.js and React
We need to create a custom app that allows the store admin to set a minimum purchase amount that will be applied to customers tagged as “wholesaler”
1. In the admin panel the app must create a section with an input field and instructions where the store admin can define and update the store’s “minimumPurchaseAmount”
2. In the front end, in both the cart and checkout pages the app must validate if the customer has the “wholesale” tag, if they do, then it should look at the total amount of the cart or order (excluding shipping) and validate if said amount is equal or greater than the “minimumPurchaseAmount”
3. If the total cart amount is equal or greater than the “minimumPurchaseAmount” then the user is allowed to go to the checkout and place an order
4. if the total cart amount is smaller than the “minimumPurchaseAmount” then the user should not be allowed to to proceed with their purchase and the store must display a message saying “The minimum purchase amount for wholesalers is %defined_amount%, your current total amount is %users_current_total_amount%, please add some more items to your cart and try again”
5. Under no circumstances a user tagged as “wholesaler” can be allowed to place an order if the order total is smaller than the defined “minimumPurchaseAmount”
6. Please provide the code in a github repository