By default in magento there is no qty field of simple product for custom option. If you want to add qty as per your custom option you can add now using this post.
Suppose you have custom option 'Color: Red, Blue, White' of your simple product and you want to add different qty option for your color option you can do it now.
1. go to app\design\adminhtml\default\default\template\catalog\product\edit\options\type\select.phtml
Find the below code:
2. go to app\code\core\Mage\Adminhtml\Block\Catalog\Product\Edit\Tab\Options\Option.php
Find the below code:
Find the below code:
'sku' => $this->htmlEscape($_value->getSku()),
3. Add field in “catalog_product_option_type_value” table
Suppose you have custom option 'Color: Red, Blue, White' of your simple product and you want to add different qty option for your color option you can do it now.
1. go to app\design\adminhtml\default\default\template\catalog\product\edit\options\type\select.phtml
Find the below code:
'<th class="type-sku"><?php echo Mage::helper('catalog')->__('SKU') ?></th>'+
Now add following code just after above code.
'<th class="type-qty"><?php echo Mage::helper('catalog')->__('Qty') ?></th>'+
Find the below code:
'<td><input type="text" class="input-text" name="product[options][{{id}}][values][{{select_id}}][sku]" value="{{sku}}"></td>'+
Now add following code just after above code.
'<td><input type="text" class="input-text" name="product[options][{{id}}][values][{{select_id}}][qty]" value="{{qty}}"></td>'+
$value['sku'] = $this->htmlEscape($option->getSku());
Now add following code just after above code.
$value['qty'] = $this->htmlEscape($option->getQty());'sku' => $this->htmlEscape($_value->getSku()),
Now add following code just after above code.
'qty' => $this->htmlEscape($_value->getQty()),
`qty` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Qty',
Now clear your cache and check in you magento admin. You can hit below if post is help full for you.
