Yesterday and two days ago, I worked on payment.html. I spent a lot of time trying to figure how to ensure the count variable of each product does not reset across pages (apparently they do, which was surprising). I tried many solutions, cannot figure out, so I got help to know how to save the cart’s contents.
Now it works as intended, and have the code segment dealing with saving the cart across pages. That let me print the Review Order page and list every product in the cart, and have buttons to reset the count and go back the shopping part. The trouble is, I still don’t know how to allow users to remove individual items from the list (e.g. remove just one product without deleting the entire cart). It probably uses an if condition; I’d have to investigate further to know how that works.
The other thing I wanted to do, but was unable to do, was things like dropdowns or spinboxes. Then, the user can add multiples of the product at the same time and that would become more useful. Shame on me for not knowing so much about website design, but I have to deal with what I have.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.