Jump to content

Blackhex87

Members
  • Content count

    4
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Andréas Karlsson
  1. Blackhex87

    Product listing

    Found the solution quickly =) This code: echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $pi['image'], '', KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, 'hspace="5" vspace="5" id="piGalImg_' . $pi_counter . '"'); Should look like this ( at the end): echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $pi['image'], '', KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, 'hspace="5" vspace="5" id="piGalImg_' . $pi_counter . '"') . '</a>'; Best regards / Andy
  2. Blackhex87

    Product listing

    Once again =) Sorry, but there is indeed an error.. The whole product description is wrapped inside an hyperlink reference... not as intended.. Looking for a solution.. Best regards / Andy
  3. Blackhex87

    Product listing

    Hello again =) I fixed my product_info.php with this: Replace: echo tep_image(DIR_WS_IMAGES . $pi['image'], '', '', '', 'id="piGalImg_' . $pi_counter . '"'); With this: echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $pi['image'], '', KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, 'hspace="5" vspace="5" id="piGalImg_' . $pi_counter . '"'); Open: Catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php Replace: case self::IMAGETYPE_PNG : $quality = is_null ( $quality ) ? 0 : $quality; $filters = is_null ( $filters ) ? null : $filters; return imagepng ( $this->_image, $save_in, $quality, $filters ); break; With this: case self::IMAGETYPE_PNG : $quality = is_null ( $quality ) ? 7 : floor ( $quality / 10 ); $filters = is_null ( $filters ) ? null : $filters; return imagepng ( $this->_image, $save_in, $quality, $filters ); break; That did it for me =) Hope this helps! Best regards / Andy
  4. Blackhex87

    Product listing

    Hello all, First, thanks for this great contribution! I'm also trying to install this on a 2.3.4 store and I've currently only come up with the following fix for the main image: echo tep_image(DIR_WS_IMAGES . $pi['image'], '', '', '', 'id="piGalImg_' . $pi_counter . '"'); I changed this code to: echo tep_image(DIR_WS_IMAGES . $pi['image'], '', KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, 'id="piGalImg_' . $pi_counter . '"'); I'm yet to try the other images in the PhotosetGrid... Any ideas to this or how to install it? This first line change did cause me this error: Warning: imagepng() [function.imagepng]: gd-png error: compression level must be 0 through 9 in /home/akvaries/public_html/OsCommerce234/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 146 But I think the fix is in an earlier post =) Best regards / Andy
×