rusty1001 Posted December 4, 2006 Posted December 4, 2006 Hi I would like to change the product listing image size something like this SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT or is small_image etc not sure Anyway where is the code that the size of the image of the product listing, I have tried the product_listing.php and other 's does not seem to change, I have swapped over a few so that I have used the small image height as the size of th product page image but this also sets the product listing image size --- I have used the heading image for the box images etc etc All is good but need to set the productlist to the subcat image size or similar ...anyone know where the hard code is to change or similar ? Thanks Russell Rusty -------------------------------------------
bill110 Posted December 4, 2006 Posted December 4, 2006 in catelog/includes/modules/pr0duct_listing.php $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'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</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> '; Try changing both refrences to SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
rusty1001 Posted December 5, 2006 Author Posted December 5, 2006 in catelog/includes/modules/pr0duct_listing.php $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'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</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> '; Try changing both refrences to SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT Hi Bill Thanks I did actually try that and for what ever reason it does not work, any ideas? I did actually also try in the style sheet and create an TABLE.productlisting img {etc }; and that worked except there is no way to constrain the images ratios that way ? or is there, if you just have one side it keep the other old size... or is there a way? thanks for the help, regards Rusty -------------------------------------------
rusty1001 Posted December 5, 2006 Author Posted December 5, 2006 in catelog/includes/modules/pr0duct_listing.php $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'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</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> '; Try changing both refrences to SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT Hi Bill Thanks I did actually try that and for what ever reason it does not work, any ideas? I did actually also try in the style sheet and create an TABLE.productlisting img {etc }; and that worked except there is no way to constrain the images ratios that way ? or is there, if you just have one side it keep the other old size... or is there a way? thanks for the help, regards Rusty -------------------------------------------
rusty1001 Posted December 5, 2006 Author Posted December 5, 2006 Hi Bill Thanks I did actually try that and for what ever reason it does not work, any ideas? I did actually also try in the style sheet and create an TABLE.productlisting img {etc }; and that worked except there is no way to constrain the images ratios that way ? or is there, if you just have one side it keep the other old size... or is there a way? thanks for the help, regards ps it is the boxed area just below '''Displaying 1 to 1 (of 1 products) """ where is the settings for that ? thanks Russell Rusty -------------------------------------------
rusty1001 Posted December 5, 2006 Author Posted December 5, 2006 ps it is the boxed area just below '''Displaying 1 to 1 (of 1 products) """ where is the settings for that ? thanks Russell Hi I sorted it out....productlisting_col.php module....changed in there and worked,, now I have I am using the small image to adjust the product page, and the subcat sizes all others, works well, I have read a lot about this issue,,perhaps a simple module to adjust/set the product image size would be a good contrib....:-) thanks for the help Rusty -------------------------------------------
Recommended Posts
Archived
This topic is now archived and is closed to further replies.