GithubHelp home page GithubHelp logo

Comments (14)

Potato-29 avatar Potato-29 commented on May 26, 2024

Hi, I'd like to work on this feature

from freshcomm.

roopeshsn avatar roopeshsn commented on May 26, 2024

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

from freshcomm.

Potato-29 avatar Potato-29 commented on May 26, 2024

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

from freshcomm.

roopeshsn avatar roopeshsn commented on May 26, 2024

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.

from freshcomm.

akshat-rawat avatar akshat-rawat commented on May 26, 2024

@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).

from freshcomm.

roopeshsn avatar roopeshsn commented on May 26, 2024

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?

from freshcomm.

akshat-rawat avatar akshat-rawat commented on May 26, 2024

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.

from freshcomm.

roopeshsn avatar roopeshsn commented on May 26, 2024

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?

from freshcomm.

akshat-rawat avatar akshat-rawat commented on May 26, 2024

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

from freshcomm.

roopeshsn avatar roopeshsn commented on May 26, 2024

Will you take care of the product admin page too?

from freshcomm.

akshat-rawat avatar akshat-rawat commented on May 26, 2024

from freshcomm.

roopeshsn avatar roopeshsn commented on May 26, 2024

Go ahead @akshat-rawat

from freshcomm.

roopeshsn avatar roopeshsn commented on May 26, 2024

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

from freshcomm.

roopeshsn avatar roopeshsn commented on May 26, 2024

This issue is up for grabs!

from freshcomm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.