Add qty box
in custom option row:
By default Magneto only provide custom options without ant
qty, if you want to customize with Qty then you must change in following files:
1.
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>'+
Add these after just after
'<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>'+
Add these after just after
'<td><input
type="text" class="input-text" name="product[options][{{id}}][values][{{select_id}}][qty]"
value="{{qty}}"></td>'+
2.
app\code\core\Mage\Adminhtml\Block\Catalog\Product\Edit\Tab\Options\Option.php
·
Find the below code:
$value['sku'] =
$this->htmlEscape($option->getSku());
Add these code just after
$value['qty'] =
$this->htmlEscape($option->getQty());
·
Find the below code:
'sku' =>
$this->htmlEscape($_value->getSku()),
Add these code just after
'qty' =>
$this->htmlEscape($_value->getQty()),
3.
Add field in “catalog_product_option_type_value”
table
`qty` int(11) unsigned NOT NULL DEFAULT '0'
COMMENT 'Qty',
That’s all….