Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Move products_qty and SAVE button in categories.php


René H4

Recommended Posts

When I get new stock in, and need to update it, and I don't want to scroll through the entire screen for every product.

Is there a module that only displays the product name, the quantity and a save button?

I suppose not, so:

Can I move the following lines up in the categories file without doing the database any harm?

First piece of the code (input field for quantity):

<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>

Second piece of the code (save-cancel button):

      <tr>
        <td class="smallText" align="right"><?php echo tep_draw_hidden_field('products_date_added', (tep_not_null($pInfo->products_date_added) ? $pInfo->products_date_added : date('Y-m-d'))) . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link('categories.php', 'cPath=' . $cPath . (isset($_GET['pID']) ? '&pID=' . $_GET['pID'] : ''))); ?></td>
      </tr>

I know I'd be changing the core but scrolling is a pain all the time.....

Cheers, Rene

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...