zowika Posted November 24, 2009 Share Posted November 24, 2009 Hey there people, I have 2 very annoying issues on my Oscommerce 2.2 webshop... - First issue: When on an category the box information on the right is missing: Information box present! http://erotiek-shop-online.nl/catalog/ Information box missing! http://www.erotiek-shop-online.nl/catalog/index.php/cPath/61 - The second issue: Once clicked on an category I want the uploaded images of the sub-categories to be shown but this aint happening. Seems like I am missing some code in some file any ideas? http://www.erotiek-shop-online.nl/catalog/index.php/cPath/61 Link to comment Share on other sites More sharing options...
zowika Posted November 25, 2009 Author Share Posted November 25, 2009 Any ideas??? Link to comment Share on other sites More sharing options...
celltoyz Posted December 9, 2009 Share Posted December 9, 2009 i hope this is the question you wanted answered. if i understand correctly you want people to be able to see the sub category images like it does with the main category on the top of the page. if that is the case all you have to do is open up your index.php page and enter the following code underneath // create column list $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL, 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME, 'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER, 'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE, 'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY, 'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT, 'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE, 'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW); For me that was line 187 but i have made alot of changes to my admin page Enter this code underneath <table> $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); $number_of_categories = tep_db_num_rows($categories_query); $rows = 0; while ($categories = tep_db_fetch_array($categories_query)) { $rows++; $cPath_new = tep_get_path($categories['categories_id']); $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n"; if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) { echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; } } </table> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td>We are still undergoing major renovations to our website; as such many products are not yet available online. If there is a product you are looking for please email us via the contact us button on the top corner of the screen use the live help button to the left. <?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?></td> </tr> <!--- BEGIN Header Tags SEO Social Bookmarks --> <?php if (HEADER_TAGS_DISPLAY_SOCIAL_BOOKMARKS == 'true') include(DIR_WS_MODULES . 'header_tags_social_bookmarks.php'); ?> <!--- END Header Tags SEO Social Bookmarks --> </table></td> it should work like it does here at Cellular Toy Shoppe Cell Toyz Link to comment Share on other sites More sharing options...
usascottwright Posted February 8, 2010 Share Posted February 8, 2010 Ok question: There are two boxes let's call the top box as box 1 and the second box below as box 2. I just installed this store and neither box 1 or box 2 is listed either one of these codes listed in box 1 and box 2 on my index.php. Could you tell me where to put the code from box 1 or box 2 where in my orginal file of my file tools -> Define Language -> index.php Just to be clear, when I click a catagory the subcatagories do not show up as shown on this template: http://5star.we.bs/index.php?cPath=1. This is day #2 on getting this up and running. Is there a nice generic template to copy and paste into my index file, that makes everything work correctly? I sorta like the way this company has there listing http://cellulartoyz.com/apple-c-22.html. i hope this is the question you wanted answered. if i understand correctly you want people to be able to see the sub category images like it does with the main category on the top of the page. if that is the case all you have to do is open up your index.php page and enter the following code underneath // create column list $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL, 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME, 'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER, 'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE, 'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY, 'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT, 'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE, 'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW); For me that was line 187 but i have made alot of changes to my admin page Enter this code underneath <table> $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); $number_of_categories = tep_db_num_rows($categories_query); $rows = 0; while ($categories = tep_db_fetch_array($categories_query)) { $rows++; $cPath_new = tep_get_path($categories['categories_id']); $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n"; if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) { echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; } } </table> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td>We are still undergoing major renovations to our website; as such many products are not yet available online. If there is a product you are looking for please email us via the contact us button on the top corner of the screen use the live help button to the left. <?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?></td> </tr> <!--- BEGIN Header Tags SEO Social Bookmarks --> <?php if (HEADER_TAGS_DISPLAY_SOCIAL_BOOKMARKS == 'true') include(DIR_WS_MODULES . 'header_tags_social_bookmarks.php'); ?> <!--- END Header Tags SEO Social Bookmarks --> </table></td> it should work like it does here at Cellular Toy Shoppe Cell Toyz Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.