iLLuSiOnS Posted July 21, 2007 Share Posted July 21, 2007 I am having trouble, when i create new subproducts it lists all the sub products in 1 column, one LONNGG column. Is there anyway i can make it into 2 or 3 columns? This is the code that needs to be changed. // MOD begin of sub product $sub_products_sql = tep_db_query("select p.products_id, p.products_price, p.products_image, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_parent_id = " . (int)$HTTP_GET_VARS['products_id'] . " and p.products_quantity > '0' and p.products_id = pd.products_id and pd.language_id = " . (int)$languages_id); if (tep_db_num_rows($sub_products_sql) > 0) { ?> <tr> <td align="left" ><table> <?php while ($sub_products = tep_db_fetch_array($sub_products_sql)) { $subname = substr( $sub_products['products_name'], strlen( $product_info['products_name'] . ' - ' )); ?> <tr > <td style="padding-left:50px;" ><?php if ($sub_products['products_image']) echo "<img src='images/" . $sub_products['products_image'] . "' />"; ?> <br> <b><?php echo $subname; ?></b></td> <td align="right" class="smallText">Qty: <input type="text" name="sub_products_qty[]" value="" class="input3" size="1" /> <br> <?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_template_image_submit('jh', IMAGE_BUTTON_IN_CART); ?></td> </tr> <?php echo '<input type="hidden" name="sub_products_id[]" value="' . $sub_products['products_id'] . '">'; } ?> </table></td> </tr> <?php } // MOD end of sub product Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.