ilyarolf / AiogramShopBot

Aiogram Telegram bot shop with ways to deposit in BTC, LTC, USDT TRC-20, USDT ERC-20, USDD TRC-20, USDC ERC-20.
https://t.me/demo_aiogramshopbot
MIT License
63 stars 21 forks source link

Feature request: add cart workflow #69

Open 6R1M5L07H opened 1 week ago

6R1M5L07H commented 1 week ago

User Story

As a customer I want to be able to collect items in a cart and check them out all at once so that I have a good overview of my purchases from my "shopping spree".

Reason

It is not only pretty common to have a cart workflow in place in a shopping system, but it would also make it easier to accumulate orders which will make it easier for the shop owner to fullfill the orders.

Proposal for solution

Add a Cart containing CartItems to the shop system and integrate the cart into the purchase workflow

Solution design

1) add a model "Cart" 2) add "CartItems" to the "Cart" containing the information from "item" and "subcategory" in an entity 3) add a confirmation step if a customer wants to buy all CartItems in the Cart 4) continue with the existing buy workflow on confirmation