I've been testing Colorbox with Drupal commerce to show the product image in a pop-up ("lightbox style").
Displaying the image in the pop-up works without any problem if (switch the display of the field to colorbox and select the right imagecache presets). However, if you have a product display that contains multiple products with a color attribute, the default product image is always shown under the normal image. Eg on the screenshot you see the purple T-shirt (ok), while there is also the green one which shouldn't be there. (the green one is the first product in the list for that product display) Could that be fixed? :)

It would be great if we could use a colorbox gallery (or lightbox2, but the dev release for drupal 7 was published only a few days ago) for products that have more than one image in combination with the product attributes. Having those extra images in a colorbox/lightbox gallery is probably the most clean way to display them.

CommentFileSizeAuthor
colorbox.png121.48 KBstroobl
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stroobl’s picture

Status: Closed (fixed) » Fixed

Part of this problem was caused by a class in my theme: the colorbox pop-up works fine if you have only one image in a product. The other part of the problem (showing additional images for a product in the same colorbox) can be solved by adding an extra image field in the product and hiding images from that field with a css a class. You can display the hidden images in the colorbox with the colorbox gallery feature.

Status: Active » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.