locked
Best way to implement shopping cart in asp.net RRS feed

  • Question

  • User351619809 posted

    I am trying to implement shopping cart in my asp.net application. What will be the best way to  implement the shopping cart. Should I save every adding and deleting to the shopping cart in the database or should I use session variables or is their any way other way to implement the shopping cart?

    Tuesday, August 4, 2020 6:18 PM

Answers

  • User-939850651 posted

    Hi anjaliagarwal5,

    If you want to implement a shopping cart, you need to consider some situations:

    First, you have to make sure that each user’s shopping cart is unique.

    Second, have you considered shopping operations performed by users without logging in? etc.

    The implementation method will change as the requirements and design change.

    This is a simple tutorial for a shopping cart, or you need to Google to search for a solution that suits you.

    Best regards,

    Xudong Peng

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 5, 2020 4:55 AM