Skip to content

AleBL/Shopping-Cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛒 Shopping Cart

🚚 Shipping Rules

  • All shipping calculations are made over the subtotal without the shipping costs and without any discounts.
  • For purchases above R$400.00, the shipping is free!
  • For purchases up to 10kg, the shipping cost is: R$30.
  • Each 5kg above 10kg will add R$7 to the shipping price.

🎟 Supported Coupon Types

  • Percentage Coupon: Coupons that reduce an amount in percentage of the cost on subtotal.
  • Fixed Coupon: Coupons with fixed amounts that should reduce over the total.
  • Free Shipping: Makes the shipping price become 0 when applied, and should have a minimum subtotal requirement.

🍎 Available Products

Product Price
Banana R$10 per kg
Apple R$20 per kg
Orange R$30 per kg

💰 Enabled Coupons

  • A: percentage coupon of 30%
  • FOO: fixed coupon of R$100.00
  • C: free shipping coupon with minimum value of R$300.50

⚙️ Setup

📦 Install Dependencies

yarn install

🧪 Run Tests

To run the test suite:

yarn test

🚀 Run the Application

yarn start

I hope this helps! If you need anything else, feel free to ask. 😉

About

Shopping Cart made with React.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published