Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Click to enlarge image


webwitch2003

Recommended Posts

Posted

Hi,

 

I do not get the click to enlarge text or option on my site when i have graphics listed - either in the categories or when it is a tiny thumnail in the products listing.

 

You can see what i mean here My Webpage if you click on Adults, you will see a list of photos - none of them can be enlarged. Then click on (for e.g.) Artnuvo and you will see the thumbnail in the corner - that cannot be enlarged either. I want a customer to be able to enlarge it but so that it opens in a new window! I know the coding for that is setting the targe= part.

 

I have looked in my catalog/product_info.php and I see that the coding does say the products must be enlarged. So why doesn't it do that? Here is my coding:

 

Lines 108 - 113

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

 

Thanks for any insight!

Angi :P

Posted
Hi,

 

I do not get the click to enlarge text or option on my site when i have graphics listed - either in the categories or when it is a tiny thumnail in the products listing.

 

You can see what i mean here My Webpage if you click on Adults, you will see a list of photos - none of them can be enlarged.  Then click on (for e.g.) Artnuvo and you will see the thumbnail in the corner - that cannot be enlarged either.  I want a customer to be able to enlarge it but so that it opens in a new window!  I know the coding for that is setting the targe= part.

 

I have looked in my catalog/product_info.php and I see that the coding does say the products must be enlarged.  So why doesn't it do that?  Here is my coding:

 

Lines 108 - 113

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

 

Thanks for any insight!

Angi :P

 

 

I do not see any product image on your product_info page.

Did you add an image to your products ?

Treasurer MFC

Posted
I don't see them either. You can't enlarge pics that aren't there :P

 

Christina

 

Thanks for replying :thumbsup:

 

Yes, i have images on my site go here: My Webpage

 

This is the catalog/product_info.php file. I wasn't aware that i need to add the images to this file, i just added the images in my admin section. I thought the point of the css and php was that i wouldn't need to add the pics to the coding on each page but it would be there because of the admin section. Am i like totally lost?

 

Angi

Posted
Thanks for replying :thumbsup:

 

Yes, i have images on my site go here: My Webpage

 

Angi

 

Hi Angi

 

The images you are refering to (the ones here are actually your category images. If you look at the heading on that page it says categories.

 

The reason for the confusion is that the product images are not usually displayed there, but on the product info page. If you select one of your categories - say, Artnuvo - and then select the top product in that category (12x26 Art Nuvo decorative pillow), it takes you through to the page for that product:

 

http://linensforus.netfirms.com/store/nfos...&products_id=85

 

This is the product_info.php page other people were checking for images (look in the address bar, you'll see it says product_info.php there), and as you can see there aren't any. It is usually here that an individual product image is displayed. The images here typically have "click to enlarge" under them (you seem to have disabled the option for product images or just left them blank, having large category images instead). Product images and Category images are both added through admin so you should be able to go and have a look on the individual product pages in admin - there should be an image box there.

 

Sorry for the long reply, the short answer would be that your site is working as it is supposed to. Category images do not usually enlarge and I guess you would have to write a special bit of code to make them do so.

 

Hope that is helpful to you

 

Simon

Posted

Wow, thanks Simon, that really explained it for me. You were a great help.

 

I want to be able to make the little thumbnail on each of these pages be able to click and be enlarged .... products page - see the little thumbnail... Does anyone have an idea on how i can enalble that picture to be clicked on and a new window open up with a big picture in it?

 

Alternately, i wouldn't mind them being able to click on any of the pages on this page main categorie and be able to view a larger image.

 

Either one will be fine! :)

 

Thanks for any help

Angi

Archived

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

×
×
  • Create New...