eddiev2001 Posted September 4, 2006 Share Posted September 4, 2006 Hey everyone, Im trying to change the whatsnew box to a certain dimension. My items are coming up at 150x113 but I would like the whatsnew box on my left menu to appear at a smaller size 128x96. The main items are controlled with the admin panel. Thank for your help Eddie Quote Link to comment Share on other sites More sharing options...
Terra Posted September 4, 2006 Share Posted September 4, 2006 Eddie - try this code in /includes/boxes/whats_new.php: Find this code: 'text' => '<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); and then change to this: 'text' => '<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'], 128,,) . '</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); I'd recommend only to set the width - if you set both width/height your images are likely to become distorted. NB: not tested on live site as my sites don't use this box - please back up your files first & if it ain't working, it might need tweaking. Terra Quote My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad) and how to solve the invoice already paid error General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email ** Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.