Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

resizing poduct info image


forest1

Recommended Posts

Hi

I have couple of issues still left to fix

One is image size for product info pages

 

mystore.com/product_info.php?cPath=3_10&products_id=12

 

at the moment it is picking up the size from the small image width and height parameters in the admin panel

 

This is fine for the tumbnails on the product list page but I want a larger image on the product info pages

 

I have tried messing with the php files but I keep getting errors.

What the store is selling is very visual so i would like a larger image

 

Thanks

Link to comment
Share on other sites

You can make some new db values for larger images and then modify product_info.php to use the new values.

 

or

 

You can also simply hard-code size values directly in products_info.php

Edited by toyicebear
Link to comment
Share on other sites

Hi

where can I hard code the sizes in the product info file

the code that relates to the images as far as I can see is

 

    <table border="0" cellspacing="0" cellpadding="2" align="right">
           <tr>
             <td align="center" class="smallText">
<script language="javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>
             </td>
           </tr>
         </table>

Link to comment
Share on other sites

change these

 

SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT

 

to something like this

 

'200', '200'
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...