Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding the 3 buttons at the top of the page also?


nekotachi

Recommended Posts

Hello,

 

I was wondering what code I could add so that the "back", "new category" and "new product" buttons would be at the top of the page also? (when adding new stock in admin)

 

Currently one of my categorys has over 200 items and since I add stock the old fashioned way (I wanna use Easy Populate but am afraid I'll fux up my store) it becames a pain to always have to scroll to the bottom to click 'new product'.

 

I was hoping someone could help with the code to add those buttons to the top of the page also.

 

 

Thanks in advance!

Link to comment
Share on other sites

the code to copy is this with the default categories.php

 

					<td align="right" class="smallText"><?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&action=new_category') . '">' . tep_image_button('button_new_category.gif', IMAGE_NEW_CATEGORY) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&action=new_product') . '">' . tep_image_button('button_new_product.gif', IMAGE_NEW_PRODUCT) . '</a>'; ?> </td>

 

Now to insert it just go up several lines until you see

 

	  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr class="dataTableHeadingRow">
			<td class="dataTableHeadingContent"><?php echo TABLE_HEADING_CATEGORIES_PRODUCTS; ?></td>
			<td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_STATUS; ?></td>
			<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?> </td>
		  </tr>

 

 

Then make a new html row and insert it at the beginning like this:

<tr>
				<td align="right" class="smallText"><?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&action=new_category') . '">' . tep_image_button('button_new_category.gif', IMAGE_NEW_CATEGORY) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&action=new_product') . '">' . tep_image_button('button_new_product.gif', IMAGE_NEW_PRODUCT) . '</a>'; ?> </td>
</tr>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...