Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Double image....


Guest

Recommended Posts

Hi,

 

I'm trying to change the php code (but I do not understand much of php...), to do this:

 

When a user clicks the image to open the popup window (zoom), to use another directory. for example:

 

NOW: .../catalog/images/brand/1.jpg

 

I would like the popup window open .../catalog/images/second/brand/1.jpg

 

I just want to add that little piece of text "second/" in the url...

 

With this, I would get a different image, with this little change. Oh, I have been looking to the contributions and there are even with 3 images...

 

...but, if my idea is possible to do, great!

 

Thank you.

Afonso

Link to comment
Share on other sites

Edit the popup_image.php file and change the line:

 

 

echo tep_image(DIR_WS_IMAGES . $products_values['products_largeimage'], $products_values['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT);

 

to :

 

echo tep_image(DIR_WS_IMAGES . "second/" . $products_values['products_largeimage'], $products_values['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT);

Link to comment
Share on other sites

PERFECT! PERFECT! PERFECT!

 

Thank you.

I had been around a bit to make it work, but with your confirmation, I got it why didn't work: because i didn't had the image in the directory!

 

Thank you.

Afonso

Link to comment
Share on other sites

  • 1 month later...

Hi jaysin,

 

I didn't use a contribution, I just added a button and put some javascript in to make it go back one page:

 

<a href=java script:history.back()><?php echo tep_image_button('button_back.gif', IMAGE_BACK) ?></a>

 

:D

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...