Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Duplicating buttons from bottom to top & vice versa


Guest

Recommended Posts

Posted

Help!

 

When working with a large catalog I have to keep scrolling or using the page down button to get to the back, add new catagory or new product button. It really is starting to get to be a ...Pain in the.... scrolling finger!

 

Desperately need help either duplicating the back, add new category and product buttons to the top as well as the bottom of the page in the catalog.

 

Since all button(s) code are probably the same I would also like to duplicate the location of some other buttons and can't find any specific information in the knowledge base or add-ons, etc.

Posted

To duplicate "new category" and "new product" buttons in the catalog section of admin panel:

 

Open catalog/admin/categories.php

 

Find this code:

 

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top">

 

Add Below:

 

<?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>'; ?>

 

not all buttons are the same so to duplicate each one you need to look for the specific code in the right file

Santa's little freelancer

Archived

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

×
×
  • Create New...