GoTTi Posted May 1, 2012 Share Posted May 1, 2012 (edited) Well I finally did my own modification without asking for help. It's a step in the right direction :) If you have 1 product that can work with multiple categories, you need to link/copy that item to those categories. When you start copying the item to other product categories, the list gets quite full on the list and you have to keep scrolling to the bottom to click the drop down to choose another category and to click copy or cancel...well this easy mod will move those fields to the top of the list so you don't have to scroll anymore. Modification Download: http://addons.oscommerce.com/info/8431 Install Time: 30 seconds 1. open the file /admin/categories.php - search for case 'copy_to': In this block of code, look for $contents[] = array('text' => '<br />' . TEXT_INFO_CURRENT_CATEGORIES . '<br /><strong>' . tep_output_generated_category_path($pInfo->products_id, 'product') . '</strong>'); highlight that line, right click and copy. then delete the line. then go down a few lines and paste it below this line: $contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_COPY, 'copy', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id))); so it should look like this: case 'copy_to': $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_COPY_TO . '</strong>'); $contents = array('form' => tep_draw_form('copy_to', FILENAME_CATEGORIES, 'action=copy_to_confirm&cPath=' . $cPath) . tep_draw_hidden_field('products_id', $pInfo->products_id)); $contents[] = array('text' => TEXT_INFO_COPY_TO_INTRO); $contents[] = array('text' => '<br />' . TEXT_CATEGORIES . '<br />' . tep_draw_pull_down_menu('categories_id', tep_get_category_tree(), $current_category_id)); $contents[] = array('text' => '<br />' . TEXT_HOW_TO_COPY . '<br />' . tep_draw_radio_field('copy_as', 'link', true) . ' ' . TEXT_COPY_AS_LINK . '<br />' . tep_draw_radio_field('copy_as', 'duplicate') . ' ' . TEXT_COPY_AS_DUPLICATE); $contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_COPY, 'copy', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id))); $contents[] = array('text' => '<br />' . TEXT_INFO_CURRENT_CATEGORIES . '<br /><strong>' . tep_output_generated_category_path($pInfo->products_id, 'product') . '</strong>'); break; doing this small movement of code puts all the categories that load as a reference where the item is already copied to to the bottom of the actual stuff we need, like the copy/cancel button and the drop down menu to choose another category enjoy this shortcut Edited May 1, 2012 by GoTTi 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.