Zen Cart Logo
Forums / General Questions / new product sidebar (whats new) image size problem

new product sidebar (whats new) image size problem

Locked

Views: 1,843

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
13 Mar 2009, 7:03 PM
#1
jonnyboy22 avatar

jonnyboy22

Zen Follower

Join Date:
Jun 2008
Location:
Sheffield South Yorkshire
Posts:
165
Plugin Contributions:
1

new product sidebar (whats new) image size problem

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?

13 Mar 2009, 7:21 PM
#2
jonnyboy22 avatar

jonnyboy22

Zen Follower

Join Date:
Jun 2008
Location:
Sheffield South Yorkshire
Posts:
165
Plugin Contributions:
1

Re: new product sidebar (whats new) image size problem

sussed it

, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT was missing on the first section before the commented out one