@@greasemonkey
I have added the code as you have specified in the post #5. I can see the quantity box and can add items to the card, however no matter whether I use the line or grid layout the quantity box display is very long (it should only have size=3) and therefore the whole layout looks messed up. I am using oscommerce 2.3.3.4 with MTS if this is of any help.
Please advice what should be done to have a nice neat box displayed.