Using a related product in magento, you can select various types of options - a dropdown, for example, adds a Qty field so that you can select the number of items from the drop-down list.
Instead, I use checkboxes as I need a lot of options and need to bind a Qty field - how is this possible? I spent hours trying to code this.
source
share