freshcomm icon indicating copy to clipboard operation
freshcomm copied to clipboard

[FEATURE] Redefine product quantity selection

Open roopeshsn opened this issue 2 years ago • 14 comments

Is your feature request related to a problem? Please describe. As of now to order a product in Freshbey you can select a quantity in a sequence. For example, If you're going to order a Tomato you can select 1 kg, 2kg, and so on. But in reality, 90% of the customers won't buy more than 2kg. There's an unexpected behaviour here. If an admin updates the count in stock as 100 kg. The quantity input select component renders from 1kg to 100kg. This is shown in the below screenshot.

quantity_select_input_freshbey

Describe the solution you'd like Also, product selection is to be redefined. Currently, the products in Freshbey are vegetables so they're defined as Kg in the quantity input select dropdown. What if the product is a Refined oil? The denotation here is liters. Similarly, if the product is an egg of 6 pieces or 12 (eggs won't be sold as 1 or 2 in Freshbey as it affects the business) appropriate denotation should be rendered.

Take a look at his screenshot. This is taken from Big Basket.

qty_field_redefined_freshbey

qty_carrot_bigbasket

Here for every product, you can find a dropdown with their respective weight. For example, the product carrot will only be sold for 250 g, 500 g, and 1kg. There is another field called Qty (quantity) where you can select how many you need. For example, if you need 3 packs of 250g then you can select 250 gm in the dropdown and you can enter 3 in the Qty input.

Similarly, for Onion, you can find 5 options in the dropdown.

onion_qty_bigbasket

Similarly, for Eggs, we have 2 options.

eggs_qty_bigbasket

The conclusion is same functionality should be added in Freshbey. User should have an option to select only the defined grams or kilograms or items of a product. Also there should be a Qty field which is an integer to denote the quantity of the same product.

Here's an video to explain the functionality.

https://user-images.githubusercontent.com/70762571/194712901-217e938e-13ee-4498-b1d2-b5d68e068c84.mp4

So, come up a with a solution for the problem statement mentioned.

Describe alternatives you've considered No response

Additional context No response

roopeshsn avatar Oct 08 '22 14:10 roopeshsn

Hi, I'd like to work on this feature

Potato-29 avatar Oct 08 '22 17:10 Potato-29

Hi, @Potato-29 Could you explain your approach to solving this problem?

roopeshsn avatar Oct 09 '22 00:10 roopeshsn

I'm thinking firstly I'll remove the issue where if the admin adds for example 100kg then the selection has 100 options as kgs

then, I'm thinking something like fixed weight for veggies (250g, 500g, 1kg, 2kg, 5kg) then, the measuring unit changing as per the product so if its oil then it changes to litres and so on and all of this will be data that can be sent to the databse

Potato-29 avatar Oct 09 '22 05:10 Potato-29

Hey, @Potato-29 You can neglect the unexpected behavior rendering 1 to 100. Because you're going to build from scratch. As I explained in the problem statement we need two inputs for a product. One is pre-defined quantities and the other one is the actual quantity. The actual quantity is an integer. I highly encourage you to again go through the problem statement and raise queries (if any) before working on this feature.

roopeshsn avatar Oct 09 '22 05:10 roopeshsn

@roopeshsn, if this is still open can I work on it? I would start with adding 2 input fields for the item, one would be dropdown of fixed quantity and other will be the user requested quantity of type text (number).

akshat-rawat avatar Oct 12 '22 07:10 akshat-rawat

Hi, @akshat-rawat Have you gone through my intuition and what I want to be done through the above problem statement and conversations? What's your approach on the backend to implement this functionality?

roopeshsn avatar Oct 12 '22 14:10 roopeshsn

Hi @roopeshsn, In backend we have to add a column availableQuantities which will tell that the items is available in what all quantities like for 1kg, 2kg or in 500ml, 1 L and so on. Then we can have a dropdown menu for the same.

akshat-rawat avatar Oct 12 '22 14:10 akshat-rawat

So is that an array of quantities or what? We have a page for admins to add products. How will you take care of that?

roopeshsn avatar Oct 12 '22 14:10 roopeshsn

In that case, the admins will have the option to add the availableQuantities which will be saved as an array in backend.

akshat-rawat avatar Oct 12 '22 15:10 akshat-rawat

Will you take care of the product admin page too?

roopeshsn avatar Oct 13 '22 01:10 roopeshsn

Yeah, ofcourse.

On Thu, 13 Oct, 2022, 7:06 am Roopesh Saravanan, @.***> wrote:

Will you take care of the product admin page too?

— Reply to this email directly, view it on GitHub https://github.com/roopeshsn/freshbey/issues/84#issuecomment-1276915645, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUFDFVB3O7BHZQSTIBFVJTWC5RRLANCNFSM6AAAAAARAJAD7U . You are receiving this because you were mentioned.Message ID: @.***>

akshat-rawat avatar Oct 13 '22 05:10 akshat-rawat

Go ahead @akshat-rawat

roopeshsn avatar Oct 13 '22 14:10 roopeshsn

Hi, @akshat-rawat Any updates related to your work on this issue?

roopeshsn avatar Oct 20 '22 10:10 roopeshsn

This issue is up for grabs!

roopeshsn avatar Nov 01 '22 10:11 roopeshsn