nekotachi Posted August 7, 2006 Share Posted August 7, 2006 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 More sharing options...
nekotachi Posted August 11, 2006 Author Share Posted August 11, 2006 Anyone know how to do this? Link to comment Share on other sites More sharing options...
Guest Posted August 11, 2006 Share Posted August 11, 2006 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.