Home > Net >  The.net how to implement a shopping cart function
The.net how to implement a shopping cart function

Time:09-22

The.net how to implement a shopping cart function, a great god told

CodePudding user response:

What do you think of a sentence or two can be said clearly realize the shopping cart function?
CSDN or 51 aspx download some of case study research, or find a sort of book deal with XX day learn to asp.net about your final exam,

CodePudding user response:

+ 1, upstairs quickly as the new examination, BBS is full of question which no head no tail estimation is to deal with the exam...

CodePudding user response:

Hum simple, first of all, you need to have an member table and then a product table and then order a table (also) memory cache member login and then buy the products add to cart table and then access pay pay back pay state change order table directly join (cache) read out with respect to ok

CodePudding user response:

Imitate the taobao

CodePudding user response:

Use session to store a list, the inside of the item defines a cartitem classes, including product id, quantity purchased two fields,
The front-end add to cart to join this list
The shopping cart with a repeater list is displayed

CodePudding user response:

Have a shopping cart product information in the database table, and then users to add products to cart, insert the product information, quantity, and other information,
When the user opens the shopping cart, implement the price of the product, inventory and other necessary to refresh the task, to ensure the user to open the shopping cart to see the latest information on products,
The shopping cart to place the order process is still need to check the product information such as number of inventory, the product is pulled from the shelves,
Check ok after the product ID list into your order process,

CodePudding user response:

Before you can use cookies, you can now use sessionStorage.. People prefer using sessionStorage,,, big companies generally use the database directly,

CodePudding user response:

With the database directly, to design a special table, associated userId,
So, to add, modify, delete are very intuitive, and next time the user log data is not lost,

CodePudding user response:

.net is, of course, to achieve with the Session, the Session lifetime automatically management server
  • Related