Guest Posted February 17, 2005 Share Posted February 17, 2005 i understand that the software has an option in the admin panel to change the initial state of photos to a smaller or larger size. I would like for the photos in "whats new" to be 200 * 200. When a category is selected, the photos remain 200* 200. I can't figure out where the setting is specified to have the photos initially open to a smaller size when listed in bulk. ex. "when a category is selected, i have 20 items appear and would like for them to be listed as 100 * 100 thumbnail images and when selected to open at 200 * 200 and if the user wants, then select that 200* 200 image and open to the actual photo size. if anyone can help it would be greatly appreciated. everyone is really helpful here and i really thank you all. Link to comment Share on other sites More sharing options...
Guest Posted February 17, 2005 Share Posted February 17, 2005 Hi lasteelo, osC has three image sizes set in the db 1- Small image size, ie the images in he boxes 2 - Large image size, ie the rest of the pictures on the site 3 - The sub category (lov em or hate em) images. The image sizes you want can be se in the db. For altering of where these image sizes apear you have to alter the code. In your case you want the category/subcategory images to appear in the small image sizes. When you choose a category your doing a search. The results of this search are displayed from within includes/modules/product_listing.php. Towards the end of the file look for case 'PRODUCT_LIST_IMAGE': $lc_align = 'center'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], [B]SMALL_IMAGE_WIDTH[/B], [B]SMALL_IMAGE_HEIGHT[/B]) . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; } break; Change the values in bold to one of the three options. - SMALL_IMAGE_ ..... height and width LARGE_IMAGE_ ..... height and width SUB_CATEGORY_ ..... height and width worst cast secenario hard code. Hope this helps PhilipH Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.