Ok, you can do this:
Close to where you have the article, create the following HTML objects: Three radios and a textbox. Now, one of the radios is going to be useful for ADDING elements to the cart. Adding elements of the same type, of course.
The other, you use it for DELETING elements from the cart.
And other for DELETING ALL of the elements of that same type.
Now, in the textbox, you insert the number, choose your radio and hit a button that will make the FORM (All of this has to be between <FORM> and </FORM>) to another page that will process your modifications, going back to the showing cart page when done.
Hope it helps
fLIPIS