Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Best way to separate image sizing options?


Recommended Posts

We'd like to reduce the width of the image that appears under "What's New?", but without reducing the image widths for the items that appear under "Featured Products". What's the best way to approach this?

Link to comment
Share on other sites

You could also modify /includes/modules/boxes/bm_whats_new.php.


Around line 47, you'll see this bit of code:


$data = '<div class="ui-widget infoBoxContainer">' .
'  <div class="ui-widget-header infoBoxHeading"><a href="' . 
tep_href_link(FILENAME_PRODUCTS_NEW) . '">' . MODULE_BOXES_WHATS_NEW_BOX_TITLE . '</a></div>' .
'  <div id="piGal" class="ui-widget-content infoBoxContents" style="text-align: center;"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . 
$random_product['products_id']) . '">' . tep_image(DIR_WS_IMAGES . 
$random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . 
'</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . 
$random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br />' . 
$whats_new_price . '</div>' .


Change "SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT" to the values you prefer. ;)




Link to comment
Share on other sites


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

  • Create New...