Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Differenr image for main page's image and popup image


smithveg

Recommended Posts

Hello, I'm not sure whether i can apply a different images to thumbnails and popup images

 

That's i want to use an small image that will display in main page. Ideally we just add the image while we add new product.

By now, i would like to use the a different images for 'view large image' which is popup image.

 

I try to create a new folder named 'largeview' in root directory and upload some images which is same name as the images.

The reason i use the same file name is to avoid my confusion.

 

I had also change the code in popup_image.php

From

<?php echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name']); ?>

To

<?php echo tep_image(DIR_WS_LARGEVIEW . $products['products_image'], $products['products_name']); ?>

 

Then i try to click on that product image from main page, then i click enlarge. It cannot show the images.

Why?

Do i need to do others code changing in others' .php file?

 

I you my question make sense and hope someone can helps me.

Thank.

****

Hello World! ^.^ I'm a Internet naive. Browse my working profile

Malaysia Web Services - OPerion Website Marketing System

Link to comment
Share on other sites

try this contribution. it may be what you're looking for:

 

http://www.oscommerce.com/community/contri...ons,2997/page,6

 

Ohya, it worked perfectly.

Very easy to use... Thank you MJP.

 

smith

****

Hello World! ^.^ I'm a Internet naive. Browse my working profile

Malaysia Web Services - OPerion Website Marketing System

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...