Westsideman Posted March 13, 2008 Posted March 13, 2008 If I click on some of subcategory, the previous one will be open. For example: http://www.orientalni-darky.cz/vodni-dymky.html and if you click on link "Uhlíky" the previous one "Tabáky" will be open:/ Please help me with this problem.
darko886 Posted April 25, 2010 Posted April 25, 2010 If I click on some of subcategory, the previous one will be open. For example: http://www.orientalni-darky.cz/vodni-dymky.html and if you click on link "Uhlíky" the previous one "Tabáky" will be open:/ Please help me with this problem. Same thing happens to me =/ Did you find a fix?
darko886 Posted April 25, 2010 Posted April 25, 2010 Same thing happens to me =/ Did you find a fix? I solved it. If anyone else is having the problem, here's how I fixed it (sooooo easy too, just took forever to pinpoint): Open index, and find this piece of code (this is how mine used to look): $number_of_categories = tep_db_num_rows($categories_query); $rows = 0; while ($categories = tep_db_fetch_array($categories_query)) { $p_pic_sub = '<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) . '</a>'; $p_name_sub = '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories['categories_name'] . '</a>'; $rows++; $cPath_new = tep_get_path($categories['categories_id']); $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; All you have to do is put the $p_pic_sub and $p_name_sub variables beneath the $width line. So it looks like this instead: $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) . '%'; $p_pic_sub = '<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) . '</a>'; $p_name_sub = '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories['categories_name'] . '</a>'; Good luck!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.