primedelux Posted July 28, 2011 Posted July 28, 2011 When either going to a manufacturer or category listed page i want to source my thumbnails from the "medium" sized image rather than the small, ive been digging around in product_listing.php and can seem to solve this...any suggestions? The closest ive got to finding anything is under // function list_head end, is the source of the thmbnail defined somewhere else, even in another file? function list_box_data($listing, $column_list, $link) { global $PHP_SELF, $ttip, $head_title, $rows, $set_width, $multi_add; $alt_text = $listing['products_name']; $image = (file_exists(DIR_WS_IMAGES . $listing['products_image']) ? $listing['products_image'] : 'no-image.jpg'); $image = '<span class="ttip">' . $link . tep_image(DIR_WS_IMAGES . $image, $alt_text, PRODUCT_IMAGE_WIDTH, PRODUCT_IMAGE_HEIGHT) . ($ttip ? tep_image(DIR_WS_IMAGES . $image, $alt_text, IMAGE_TTIP_WIDTH, '', 'class="large"') : '' ) . '</a></span>'; $name = (!$head_title ? $link . '<span class="productListing-name">' . $listing['products_name'] . '</span></a>' : '');
vishalchauhan Posted August 2, 2011 Posted August 2, 2011 When either going to a manufacturer or category listed page i want to source my thumbnails from the "medium" sized image rather than the small, ive been digging around in product_listing.php and can seem to solve this...any suggestions? The closest ive got to finding anything is under // function list_head end, is the source of the thmbnail defined somewhere else, even in another file? function list_box_data($listing, $column_list, $link) { global $PHP_SELF, $ttip, $head_title, $rows, $set_width, $multi_add; $alt_text = $listing['products_name']; $image = (file_exists(DIR_WS_IMAGES . $listing['products_image']) ? $listing['products_image'] : 'no-image.jpg'); $image = '<span class="ttip">' . $link . tep_image(DIR_WS_IMAGES . $image, $alt_text, PRODUCT_IMAGE_WIDTH, PRODUCT_IMAGE_HEIGHT) . ($ttip ? tep_image(DIR_WS_IMAGES . $image, $alt_text, IMAGE_TTIP_WIDTH, '', 'class="large"') : '' ) . '</a></span>'; $name = (!$head_title ? $link . '<span class="productListing-name">' . $listing['products_name'] . '</span></a>' : ''); Hi, i can't get your question exactly.. but may be that will help you. exist line tep_image(DIR_WS_IMAGES . $image, $alt_text, PRODUCT_IMAGE_WIDTH, PRODUCT_IMAGE_HEIGHT) replace with tep_image(DIR_WS_IMAGES.'medium/' . $image, $alt_text, PRODUCT_IMAGE_WIDTH, PRODUCT_IMAGE_HEIGHT) where i wrote 'medium' you can define your own folder name in which all medium images are. If i m not on wrong way. :-) Please take backup of your files before do changes suggested by me
primedelux Posted August 2, 2011 Author Posted August 2, 2011 Hi thanks for your reply, i see what youve done but unfortunately it doesnt work as all images are in the same folder, im using v2.2. My guess is you are looking in the right area though... For front page images in index.php it seems to reference the medium files as such 'products_image_med" all you have to do to change the source is change it to products_image_small for example but the product_listing.php its different
Recommended Posts
Archived
This topic is now archived and is closed to further replies.