Hi again,
I started to try, but I don't managed to get a dynamic input field for the products quantities (I need that field at the marked place)
The field should read the products quantity and write it to the database table products_alt_options_to_products together with
the actual product ID as products_id,
$linecounter as products_alt_options_values_line_id and
$columncounter as products_alt_options_values_column_id,
Can anyone help me with that?
thx
here my current code from catalog/admin/categories.php starting around line 600
CODE
<tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_QUANTITY; ?></td>
<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_quantity', $pInfo->products_quantity); ?></td>
</tr>
<!-- BOF products alternative attributes -->
<?php
// manually set number of rows and lines
$columncounter=1;
$columns=2;
// manually set number of lines
$linecounter=1;
$lines=3;
?>
<tr>
<td></td>
<td><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td></td>
<td></td>
<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_pull_down_menu('products_alt_options_column_id', $products_alt_options_array, $pInfo->products_alt_options_id); ?></td>
</tr>
<td></td>
<td></td>
<?php
while ($columncounter < $columns+1){
?>
<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_pull_down_menu('products_alt_options_values_id', $products_alt_options_values_array, $pInfo->products_alt_options_values_id); ?></td>
<?php
++$columncounter;
}
?>
</tr>
<tr>
<?php
while ($linecounter < $lines+1){
$columncounter=1;
if ($linecounter == 1)
{
?>
<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_pull_down_menu('products_alt_options_line_id', $products_alt_options_array, $pInfo->products_alt_options_id); ?></td>
<?php
}
else
{
?>
<td></td>
<?php
}
?>
<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_pull_down_menu('products_alt_options_values_id', $products_alt_options_values_array, $pInfo->products_alt_options_values_id); ?></td>
<?php
while ($columncounter < $columns+1){
?>
<!-- HERE SHOULD BE THE INPUT FIELD -->
<?php
++$columncounter;
}
++$linecounter;
?>
</tr>
<tr>
<?php
}
?>
<tr>
</tr>
</table></td>
</tr>
<!-- EOF products alternative attributes -->
<tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_MODEL; ?></td>
<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_model', $pInfo->products_model); ?></td>
</tr>