Home > Net >  Dynamic storage data
Dynamic storage data

Time:11-27

I am getting a product ID according to the session, and then literally get a commodity ID, how to keep the two ID, and, and so on commodity ID, are dynamically access,

CodePudding user response:

Listen to your statement should be a shopping cart function, you can be in front such as JS, JQ storing these ids in a local cookies, submitted to the background when the final settlement to submit to save and subsequent operations, if all in SESSION, the user visits a large, a tight system resources,

CodePudding user response:

You can search for "jq shopping cart", a lot of ready-made examples of reference, the number of price calculation on the client,
  • Related