Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Bestseller Image doesn't been shown as a Thumbnail


Guest

Recommended Posts

hallo,

 

I have installed the Best Sellers v1.4 contribution. Installing was succesful but the image in the bestsellers box isn't a thumbnail. It scrolls the image in the original size, so the image is showen partial or not at all !!! :huh:

 

Any Help ?! :'(

 

Thanks

Link to comment
Share on other sites

  • 3 weeks later...
hallo,

 

I have installed the Best Sellers v1.4 contribution. Installing was succesful but the image in the bestsellers box isn't a thumbnail. It scrolls the image in the original size, so the image is showen partial or not at all !!! :huh:

 

Any Help ?! :'(

 

Thanks

 

Same problem here, I am dying to know the answer

Link to comment
Share on other sites

  • 7 months later...

I think this is because in includes\boxes\bestseller2.php this line

'text'  => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers["products_id"], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $best_sellers['products_image'], $best_sellers['products_name']) . '</a><br>' .  ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id'], 'NONSSL') . '">' . $best_sellers['products_name'] . '</a><b><br>' . $currencies->display_price($best_sellers['products_price'], tep_get_tax_rate($best_sellers['products_tax_class_id'] . '</b>')));

 

calls the tep_image function without the image dimensions. As a test replace that line with this:

 

'text'  => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers["products_id"], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $best_sellers['products_image'], $best_sellers['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br>' .  ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id'], 'NONSSL') . '">' . $best_sellers['products_name'] . '</a><b><br>' . $currencies->display_price($best_sellers['products_price'], tep_get_tax_rate($best_sellers['products_tax_class_id'] . '</b>')));

Link to comment
Share on other sites

1000x thx m8 I have search a long time i go try it right away.

 

 

 

 

I think this is because in includes\boxes\bestseller2.php this line

'text' ?=> '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers["products_id"], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $best_sellers['products_image'], $best_sellers['products_name']) . '</a><br>' . ?' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id'], 'NONSSL') . '">' . $best_sellers['products_name'] . '</a><b><br>' . $currencies->display_price($best_sellers['products_price'], tep_get_tax_rate($best_sellers['products_tax_class_id'] . '</b>')));

 

calls the tep_image function without the image dimensions. As a test replace that line with this:

 

'text' ?=> '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers["products_id"], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $best_sellers['products_image'], $best_sellers['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br>' . ?' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id'], 'NONSSL') . '">' . $best_sellers['products_name'] . '</a><b><br>' . $currencies->display_price($best_sellers['products_price'], tep_get_tax_rate($best_sellers['products_tax_class_id'] . '</b>')));

Link to comment
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...