Zen Follower
- Join Date:
- Jun 2008
- Location:
- Sheffield South Yorkshire
- Posts:
- 165
- Plugin Contributions:
- 1
Post #1 by jonnyboy22
hello, Im having trouble with my whats new sidebar.
Its displaying the image of my product but in its actual size not the specified size in config >> images >> small image size
here is the code from the whatsnew php
<?php /** * Side Box Template * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_whats_new.php 2982 2006-02-07 07:56:41Z birdbrain $ */ $content = ""; $content .= '<!--content_col4 cell3 --> <div class="dt content_col4_cell3_t" > <div class="dr"> <div class="dc h1_text" > <br style="line-height:8px;"> '.BOX_HEADING_WHATS_NEW.' </div> </div> </div> <div class="dt content_col4_cell3_b" > <div class="text" style="margin-left:11px;"> <br style="line-height:10px;">'.zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name']) .'<br> <br style="line-height:15px;"> <a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product->fields['products_id']), 'products_id=' . $random_whats_new_sidebox_product->fields['products_id']) . '" style="color:#00A5BC">' . $random_whats_new_sidebox_product->fields['products_name'] . '</a><br /> <br /> </div> </div> <!-- <div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">'; $content .= '<a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product->fields['products_id']), 'products_id=' . $random_whats_new_sidebox_product->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $random_whats_new_sidebox_product->fields['products_name'] . '</a><br />' . $whats_new_price; $content .= '</div>-->'; ?>any ideas why the image is huge?
Want to switch servers? see our how to migrate Zencart guide
Supercharge your website with our **Fast Zencart Hosting**