I apologize if I am reposting this:

I am looking to have multiple images (thumbnails) under each main product image - the product for example being a tshirt and I would like to have a front and back image and when you click on each it will change on the screen. (I have attached a screenshot of an example I found - which is exactly what I am looking for)

Not necessarily looking for a lightbox effect but if there is a module that could achieve this or a different way I should go about it.

Thanks again, I appreciate your time and help.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jeff Burnz’s picture

Hmmm, you got me there, not something I am highly familiar with, if it were I would build it myself, but I assume that is out of the question, so I think your recourse is to search the modules looking for something or maybe ask or move this to the Drupal Commerce queue - when I need modules I might ask in IRC or search drupalmodules.com

Stan Turyn’s picture

josephsergio, to achieve what you want you only need Views and Views Slideshow.

Stan Turyn’s picture

FileSize
14.14 KB

Here is a ready-made view for you - install Views Slideshow and import this view. Keep in mind that this view also uses Cloud Zoom for image zoom effect - unfortunately Cloud Zoom module for Drupal does not work out of the box so if you do decide to use it too and get issues, post here and I'll upload the code

josephsergio’s picture

Stan thanks for your help, however after uploading views slideshow and everything else needed. I go to import the presented code and this is what I am seeing. Any advice?

josephsergio’s picture

Stan

I had solved that problem a module option was not enabled. Lastly, I am still new to Drupal and the language but what is the next step as far as setting up the view and applying it to my product pages. Please see basic screenshot

josephsergio’s picture

Stan

Your gonna kill me - so I apologize in advance. I messed with the view briefly and got this (please see screenshot) the bottom image keeps rotating on its own
Also it appears something is missing below the bottom image - as indicated by the 2 box outlines

Ultimately what I would like is to have one main image with (2) thumbnails beneath it and when click the above image would change.

Is there a way to do this so there is only the 1 large and 2 thumbnails showing instead of (3) large - or does this require altering the css

Thank you again for all your help - much appreciated

josephsergio’s picture

So I tried some tweaking and got the (2) thumbnails to appear - only thing is my images show up multiple times - for the product and for the gallery (Any fix)

attached screenshot below

Stan Turyn’s picture

josephsergio,

You shouldn't be displaying product image field at all, only the view. In your content type for product display go to display and disable image field, leaving only the view.

Also, your thumbnails are stacked below each other - if you want them to show in a row, apply css float:left

josephsergio’s picture

Stan

Now just how can I display the image gallery above the price/ size / and add to cart button

Thank you very much for your help

Stan Turyn’s picture

It's impossible to answer without knowing how you are displaying it now. Remember - it's an endlessly flexible Drupal where one can achieve the result in a number of different ways .

Personally I add that view as a field to a product display content type and then manage fields display with Display Suite (but I utilise Panels layouts when prototyping/building the site from within Display Suite rather than its own built-in layouts as Panels gives me more flexibility).

josephsergio’s picture

Stan - what info could I provide to have you better help me with this situation?

Also as you had said to add the view as a field in my product display - I think that is my best bet but how would I go about doing that? Add new field?

I greatly appreciate your help

Stan Turyn’s picture

2 ways you can your View to content type fileds display (well, there are other ways as well)

You can use Drupal module called Viewfield.

Or you can do what I do - use Display Suite, go to Display Suite > Fields admin page, select 'add a block field' and choose your View block from the dropdown. Simple when you know how :)

josephsergio’s picture

If only it was all that simple... haha
Please bare with me I hope this is the last post - I had created that view as a field however I am running into trouble as far as finding it when I add a field to my product display

I had attached (3) screenshots for above
____

Finally once I can figure this out, how would I make it so that the first item (Lin Test Tee) only displays one image then when you click on it, it shows the multiple images (front and back)

please see 4th screenshot

Stan Turyn’s picture

Your first screenshot - you are in 'manage fields' tab but you need to go to 'manage display' tab instead. Since you added that through Display Suite, it's not a 'real' field and it will only show in 'manage display' tab which DS has taken over.

(By the way your 2nd and 3rd screenshots - you only need to enable that field for nodes)

josephsergio’s picture

Stan

Im sorry if im getting lost on you but where do I add that field on the Product Display > Manage Display or is it somewhere else?

See screenshot

Also do you have any workaround for my last question?

Stan Turyn’s picture

Your last screenshot - yes, you are in the right place; once you add a field in Display Suite it will appear there, initially in Disabled section.

You last question - I'm not sure what you mean by a workaround. From your OP: "...and I would like to have a front and back image and when you click on each it will change on the screen.". The View I attached will achieve that (although it changes images on the screen on mouse hover but you can change that to on click).
See here for a working example (that's a prototype of a site I am currently working on that uses the view I posted above):
http://brac.servehorizon.net/product/green-trio

josephsergio’s picture

Stan - Only issue is I am not getting that as an option after I created the field in display suite. I have attached a screenshot of the field I created in display suite as well as a screen shot of my product display > manage display field to show you that it is not present - any advice?

Also what I was asking regarding the product is when you are brought to the specific product page I want the multiple images shown (ex. thumbnails as different views) however when ultimately looking at the products both of those images are showing (please see 3rd screen shot) example is the Lin Test Tee - In that case I only want (1) image showing as in the (3) examples to the right of it.

Does this make sense?

by the way I like the site - looks good

josephsergio’s picture

Regarding my last issue I went thru some forums online and found my problem - I did not have a layout selected first - so thats why my custom block field was not visible. Looks like I am rolling now - except for the issue of multiple images showing in my teaser which was indicated by the following screenshot

Please let me know

Thank you

Stan Turyn’s picture

Looking at your last screenshot the question is, as ever, - what's in use to produce that page and, more precisely, that specific product? Is that a view? Or are you using default Drupal's 'river of news' front page and AT Commerce's grid layout? If these are teasers for nodes, have you looked at teaser display settings in 'Manage display' for that content type?

josephsergio’s picture

Not really - I believe they are teaser for a product display but are showing both images I had uploaded -
I am going to try and go into the code before prelaunch and just comment out the image so that only one will show

Another question, as it never ends -
For my links I would like to have ( Tees / Tanks / Hoodies / Vnecks ) Tanks and Vnecks would ultimately have a dropdown with Mens and Womens. My question is - when a visitor hovers over Tanks for instance a dropdown will appear for Mens and Womens - now if they click either they will be brought to that specific page (mens tanks or womans tanks) with those products however if they click Tanks they will be brought to a page with (2) images - a mens tank and womans tank and from there those images would link to the respected mens or womens page. How would I go about doing this? A little confused as it seems I need to create a product and product display for every item and then reference it to a catalog

I included a link to a site that portrays this accurately

http://www.dickssportinggoods.com/category/index.jsp;jsessionid=QZQpPS9S...

Please let me know

Thanks again Stan

Stan Turyn’s picture

"I am going to try and go into the code before prelaunch and just comment out the image..." - what the hell? Why?!
"Another question, as it never ends..." - there is a line between asking for assistance and abusing my willingness to help so I'm going to give a generic advice - building Drupal Commerce store requires reasonable knowledge of Views and Rules at the very least (and that's on top of understanding content types and fields) otherwise you are better off using a shopping cart like Magento, PrestaShop etc. There is plenty of good training material for all sorts of Drupal topics and that would be a good place to start.

Jeff Burnz’s picture

Stan: shivers man, this is looking great: http://brac.servehorizon.net/product/green-trio

Really like your image viewer scripts you got running there, its like Magento which I always liked this sort of advanced image viewing out the box. Like the way you treated the top menu as well, with the links sitting right in there snug with the draw handle.

What script are you using for the image hover/viewer?

Stan Turyn’s picture

Thanks a lot Jeff. (it's just a rough prototype for now though, done in Panels, far from ready)

The script and Drupal module is Cloud Zoom; I needed to make a couple of minor changes though, one of which was a z-index issue with IE and the other one had something to do with Views, which I can't recall but I'll find it in Git history if needed.

josephsergio’s picture

Stan

Hello again

A problem has arisen using the view you had provided a while back. The best way to explain is I have multiple products within 1 product display (for small, medium, large, etc.) I have a separate field for the teaser, as displayed in the 1st screenshot and as you can see in the 2nd I have 2 images (a front and back view) which fade into the other when you hover. Now my issue - images also fade on there own from front view to back view then blank. I know this is caused by the fact that I only uploaded images for 1 of the however many products that make up that display. Not sure if there is any way to fix that but is there any way to make it so the images fade only when hovered and not on there own?

josephsergio’s picture

Just wondering if there was any input for this to stop the image from rotating beyond the 2 images.

My site is: www.mjmroyalties.com

Please let me know

Thanks in advance

johnflower’s picture

Hi Joseph,

Could you create an image field in your Product Display instead? This would be completely independent of the Products that you add to the display.

You may also be interested in the Views Fluid Grid which may tidy up your catalogue a little. Install as usual, go to your catalgogue view and change your format from whatever it is to Fluid grid. Please don't ask for support for this here. The place to go would be the issue queue for that module.

Also, make your catalogue images link to the products. If you're having trouble with this google for Views tutorials or documentation. Test everything on a development server!

Joseph, many of your questions are better addressed to other forums. For instance anything to do with Drupal Commerce would be better dealt with at http://www.drupalcommerce.org/ either in their forums, or by reading their documentation. This is what both Jeff and Stan have suggested.

Regards,
John