4seer / openflutterecommerceapp

Open Flutter E-commerce App
GNU General Public License v3.0
849 stars 387 forks source link

5. Product Cart screen #79

Open 4seer opened 4 years ago

4seer commented 4 years ago

5.1. Product cart use-case: List of products in the cart is displayed. If there is a promo code set as default and was not used yet then it is applied to current order in the cart.

5.2. Change product quantity use-case: User clicks on “+” or “-” buttons and changes quantity. The cart item price changes and total amount changes.

5.3. Add product cart item to favorites use-case: User clicks on top right icon of the product cart item and clicks “Add to Favorites” in the popup. The product is added to favorites with the same color and size as the cart item.

5.4. Remove from cart use-case: User clicks on top right icon of the product cart item and clicks “Remove from Cart”. The item is removed from cart and local database cart. Total amount is recalculated.

5.5. Enter promo code use-case: User clicks on button next to “Enter your promo code”. The promo code popup appears with the list of promos available for the user. User can enter promo code into the input in the popup or click “Apply” button in the promo tile. If the code entered in the input is valid or user clicked “Apply” button then the popup hides and selected promo code appears in the “Enter your promo code” input. The discount is applied to each product (product price is crossed and new price shown) and affect total amount.

Product cart and checkout discussion.

E-commerce App Use-Case Description

Within this task you need to do the following:

  1. Pull all data from local database and render it on the screen.

  2. At this time mock remote repository calls for fetching data from a local JSON file. The data structure and method names should be taken from WooCommerce REST API docs.