Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2008
    Location
    Sheffield South Yorkshire
    Posts
    165
    Plugin Contributions
    1

    Default 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?

  2. #2
    Join Date
    Jun 2008
    Location
    Sheffield South Yorkshire
    Posts
    165
    Plugin Contributions
    1

    Default 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

 

 

Similar Threads

  1. Changing Image Size in Whats New
    By spikypunker in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Jan 2010, 05:55 PM
  2. IE(Problem) with the whats new list
    By fR4G in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Oct 2009, 07:41 PM
  3. How to toggle between Whats New Box and Whats New on Main page?
    By Asdesign in forum Basic Configuration
    Replies: 0
    Last Post: 12 Aug 2009, 06:37 PM
  4. modifying the whats new sidebox centering image
    By Richard.Tung in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 30 Jul 2009, 07:01 PM
  5. Whats New Sidebox Problem
    By Winks in forum Basic Configuration
    Replies: 1
    Last Post: 23 Apr 2007, 05:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg