Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fimble's excellent Lightbox working with Multi Images?


Guest

Recommended Posts

  • 1 month later...

Hi, I just got lightbox working with the MaxiDVD multi product image contribution and had to modify the module file that was installed as part of the MaxiDVD contribution. I'm not familiar with the exact files your mod includes, but it looks like your links are all referencing the same image:

 

$product_info['products_image'],

 

So for example if we take some of the code that you pasted, I think the following lines are causing lightbox to show the same image, as the link for each is referencing products_image on all of them (the standard product image).

 

$product_info['products_image_2']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image']

$product_info['products_image_3']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image']

$product_info['products_image_4']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image']

$product_info['products_image_5']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image']

$product_info['products_image_6']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image']

 

If you changed them to something like this, they would show a different image for each line:

 

$product_info['products_image_2']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image_2']

$product_info['products_image_3']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image_3']

$product_info['products_image_2']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image_4']

$product_info['products_image_3']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image_5']

$product_info['products_image_2']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image_6']

 

However, you may have something like products_image_2_large or something for the additional images pop up, depending on the contribution. As a test, try changing the lines above to see if different images appear.

 

What is the name of the multi image contribution you are using and I'll see what the correct name for the additional image pop up is.

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