wickedworks Posted September 22, 2006 Posted September 22, 2006 Hello.. I hate to bother you guys, but i searched all night for a fix on this silly problem. Heres whats going on, my store is all setup with categories + subcategories in the main page, when i click on a category that has subs (and each one of those subs has an image) it takes me to the page titled "Categories" But because all the images of the subcategories, they all sit on one row next to each other! The page is too wide and u have to scroll to the right to see the rest of the page: How do i make all these images of the subs in that page fit inside the browser window and instead of all of them sitting on one row, i can spread them into 3 rows? Any help will be appreciated, thanks... time to go drink a cold one :D
wickedworks Posted September 23, 2006 Author Posted September 23, 2006 Hello.. I hate to bother you guys, but i searched all night for a fix on this silly problem.Heres whats going on, my store is all setup with categories + subcategories in the main page, when i click on a category that has subs (and each one of those subs has an image) it takes me to the page titled "Categories" But because all the images of the subcategories, they all sit on one row next to each other! The page is too wide and u have to scroll to the right to see the rest of the page: How do i make all these images of the subs in that page fit inside the browser window and instead of all of them sitting on one row, i can spread them into 3 rows? Any help will be appreciated, thanks... time to go drink a cold one :D Well i couldn't wait forever, so i played with it and used some common sense and fixed it :D in catalog/index.php i found these following lines: $number_of_categories = tep_db_num_rows($categories_query); $rows = 3; 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 Do you see the first line $rows=3... well, that number was 0 zero, which means everything had to fit on one row, so i changed it to 3, now all the images got reorganized and speaded out on 3 rowes... the page is back to normal size :) ... I Hope this helps anyone who gets this problem... Now, look at the like that starts with $widh= ... I think the number (100) is the maximum quantity of images to display per row.. i am still messing with it, will keep you updated.. Thanks
wickedworks Posted September 23, 2006 Author Posted September 23, 2006 Dude i feel so DUMB! I did more research and foundout that what i did with the $row= worked but not quite right, then it hit me, my answer was here (or just go to admin/configuration->maximum values->categories to list per row) all along !!!! Weel, i hope my experience will teach newbies like yours truly!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.