If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / new product sidebar (whats new) image size problem

new product sidebar (whats new) image size problem

Locked

Started by jonnyboy22 on 13 Mar 2009, 7:03 PM · Views: 1,844

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

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**

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

Post #2 by jonnyboy22

sussed it

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

Want to switch servers? see our how to migrate Zencart guide
Supercharge your website with our **Fast Zencart Hosting**