Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

BIG Image (Big Image Mod) on Product Info Page possible?


Guest

Recommended Posts

Hi there,

 

I have been toying with the idea of putting a BIG Image (bimage..from the Big Image Mod)) straight on to a product's information page. I tried changing various things on the product_info.php to no avail. Has anyone any ideas at all please? :roll:

 

Thanks in advance,

 

Adam

Link to comment
Share on other sites

If you did then try this:

 

Find this in /product_info.php

 

<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']) . '">' . 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>

 

And replace it with this:

 

<tr>

<td align="center" class="smallText">

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

?>

</td>

</tr>

 

Tony

 

Haven't tested it - might be OK. My product_info.php is too heavily modified to be able to test

:shock:

Link to comment
Share on other sites

Hi Tony,

 

Ahh yes, I didn't realise you had that sort of thing running on your site. :roll:

Thanks once more for the code, I'll try that out soon. Must get to sleep now though, work and all....

 

Thanks again!

 

Adam

Link to comment
Share on other sites

You can also apply the Sm, Med, Lg Images contribution and then not specify a size in Admin for the Medium image height and width. Then the actual image size from the file will be displayed.

 

I just retrofitted this contribution to a recent snapshot and put it out on contributions tonight. Might want to check it out. It is pretty simple to implement and gives you three varieties, if you need them.

 

HankFrid

If I build it...they will come.

If I don't try to build it.....I will never know!

Link to comment
Share on other sites

  • 2 weeks later...

I set all of the image height width sets to nothing, and I have sm med lg image mod with latest snap.

 

It still displays small image in item product info page.

 

I tried it with calculate image size on and off.

 

What am I doing wrong?

 

Thx

Link to comment
Share on other sites

Have you gone into your products and given it three different image files to display?

 

I have my "calculate" turned on (true).

 

Are you sure the three image files you created are different sizes?

What are you seeing in MySQL in your database?

 

HankFrid

If I build it...they will come.

If I don't try to build it.....I will never know!

Link to comment
Share on other sites

I set all of the image height width sets to nothing, and I have sm med lg image mod with latest snap.

 

It still displays small image in item product info page.

 

I tried it with calculate image size on and off.

 

What am I doing wrong?

 

Thx

 

What size are your image files?

[no external urls in signatures please, kthanks]

Link to comment
Share on other sites

Thanks for the work in updating this contribution, it looks great.

 

Can I store the images in 3 different directories with the sm, med, lg mod?

 

For example...

 

images/small/ for small images

images/medium/ for med images

images/large/ for large images

 

I assume I could just add the relevant sub directory name in after the

DIR_FS_CATALOG_IMAGES references in categories.php and product_info.php etc?

 

Thanks

 

Del

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