Can someone help me with the code of the Basket class?
(Snippets by category: Shopping Carts)
I am beginner into working with classes and manipulating data within arrays.
The sample that comes with the code enables you to add and remove items to/from a cart.
After adding,
- the quantity is not showed
- the itemname is not showed
After removal of the last item, there is an error
Somehow it doesn't work; if you are willing to help you can take a look at my sample at
sample of cart
I will be very happy if someone will help me understanding this code and make it work!
Arjo