Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Larger Image on product_info.php


hatman

Recommended Posts

Posted

Hi Dudes,

 

Working on OS Commerce sure takes it otta ya!!!

 

Anyways........ how do you edit the image in product_info.php, so that rather than clicking on the image to enlarge it on the pop-up. It displays the automaticly large on the product_info.php page.

 

The image need to be centred with the item information under it.

 

Thanks for any help.

:lol:

Posted

I disable the existing code that displays the image and add an <img> tag the way I want it in the product description text. If you want it centered, add the appropriate tags. It's all HTML. You'll still want at least a small image (with dimensions as specified in admin under Images) if your store shows "thumbnail" images elsewhere.

Posted

Thanks.....buts thats not what I need......

 

Basically, I on the current piece of code:-

 

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

 

I want to replace....

 

SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT,

 

With this HTML code....

 

width="267" height="400"

 

Plus I don't want it to be a hyper link aswell.

 

I hope this helps!!!

Posted

Remove all the lines you posted. Replace the following lines:

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

with:

<?php echo  tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], '', '', 'hspace="5" vspace="5"'); ?>

and set Calculate Image Size in admin..Configuration..images to true.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...