Mooligan Posted June 18, 2003 Posted June 18, 2003 This contribution http://www.oscommerce.com/community/contri...ions,236/page,3 It hasn't been updated in awhile (November 2002) and it looks like the default.php has changed since he wrote the documentation on how to install it. The problem I have is with step 3: 3. Make the following addition to /catalog/default.php Find the following: <tr> <td class="main"><br><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_MAINPAGE); ?></td> </tr> And add this AFTER: <tr> <td><?php include(DIR_WS_MODULES . MAIN_CATEGORIES); ?></td> </tr> The section that it tells me to look for in default.php doesn't seem to exist anymore? Is there somewhere else I should put that little tidbit of code? Or maybe there is another contribution that serves the same purpose, rather than the front page having the New Product Box, have a browse by category box. I looked around and didn't see anything.. Thanks! Quote
AdamDuritz99 Posted June 18, 2003 Posted June 18, 2003 Look for this: <tr> <td class="main"><?php echo TEXT_MAIN; ?></td> </tr> and put this in afterwards: <!-- BOF: Main Categories Edit //--> <tr> <td><?php include(DIR_WS_MODULES . MAIN_CATEGORIES); ?></td> </tr> <!-- EOF: //--> That works for me at least except I get this problem right above the main Categories box: Warning: Invalid argument supplied for foreach() in c:program filesapache groupapachehtdocscatalog06-15-03includesmodulesmain_categories.php on line 52 This is the code on line 52 onwards: // Traverse category tree foreach ($foo as $key => $value) { if ($foo[$key]['parent'] == $cid) { // print "$key, $level, $cid, $cpath<br>"; preorder($key, $level+1, $foo, ($level != 0 ? $cpath . $cid . '_' : '')); } } Does anyone know how to fix this? peace sean Quote
Mooligan Posted June 19, 2003 Author Posted June 19, 2003 Your little fix worked for me thanks! I guess its only fair I help you! Check out this post for your error http://www.oscommerce.com/forums/viewtopic.php...t=41268&start=0 :D Quote
AdamDuritz99 Posted June 19, 2003 Posted June 19, 2003 Hey, thanks I apprecaite that. I got it working now. peace sean Quote
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.
Note: Your post will require moderator approval before it will be visible.