== CPC Admin Menu System == This contribution changes the admin menu look/functionality to an improved menu that uses SmartClient ( http://smartclient.com ) and SCPHP ( http://smartclientphp.com ). == How to install? == First of all, backup your files. This is the most important step :-) Then, copy the files inside catalog folder ( of this package ) to your OsCommerce install folder. It is important to notice that we are considering that you have a clean OsCommerce install. If you have modifications on your menu, you will lose them when you copy the files but you may add them later, following the same structure that the new menu uses. Now you have to change one file. 1) On admin/includes/column_left.php: - Add BEFORE anything: require_once ('includes/SmartClient/ScGeneral.php'); require_once ('includes/SmartClient/ScTree.php'); require_once ('includes/SmartClient/ScTreeGrid.php'); $sc_general = new ScGeneral(); echo $sc_general->includeScripts('../js/isomorphic/', 'Enterprise', false , '../js/'); // Create a ScTree to represent our menu $sc_tree = new ScTree(); - Add at the END of the file: $sc_tree->showJsTags( false ); $options = array( 'openProperty' => 'isOpen' ); $tree = $sc_tree->create('children', 'name', 'children', $options); $sc_treegrid = new ScTreeGrid(); $options = array( 'ID' => 'menuTree', 'width' => 200, 'height' => 600, 'border' => 0, 'position' => 'relative', 'showHeader' => false, 'recordClick' => $sc_treegrid->addQuotesStr('function recordClick(viewer, record, recordNum, field, fieldNum, value, rawValue) { if ( record.url != undefined ) { window.location = record.url; } }'), 'data' => $sc_treegrid->addQuotesStr($tree) ); echo ''; echo stripslashes($sc_treegrid->create($options)); echo ''; If you have copied your files correctly, everything should be working fine on your admin area. You are done! == Need some help? == If you need some help with the installation of this module, feel free to contact us at our support forums: http://forums.consultorpc.com/. == FAQ == 1) I am using Firefox, my admin area uses SSL and the menu is extremely slow!!! This happens because Firefox doesn't cache anything ( by default ) when using SSL. Try to follow those steps: 1) Type about:config on your address bar 2) Search for the option "browser.cache.disk_cache_ssl" ( without quotes ) 3) Set this option to true