SPECIAL OFFER: Only $69 for access to everything in OSTraining for 1 year! You save $75!  1
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

Drupal Commerce: Product List & Field_Images

4 years 10 months ago #118824 by keb805
Steve,

This evening, I did a refresh of Rod's Drupal Commerce tutorial to seek guidance on how to gain better control over the "All Products" and "Product Collection" views.

I used the "field_images" field to upload multiple images for a given product variation. When I do this, the product display looks good. However, when in the Commerce Kickstart-based catalogue views all the images show.

As seen in the tutorial, the views are accessible from Content >> Settings>>Content Types>>"Example Product Display">> Manage Display.

The "Product: Images" field is managed at the Product Variation level, instead. (Rod mentions that he sees this as a bug in Commerce, but I think this is related to uploading different images to match the Product Variation (blue / green / orange shirts), instead of the "parent" Product Display.)

While I think it makes sense that the image is managed at the Product Variation level, I can't figure out how to manage it. There doesn't seem to be a corresponding "view mode", e.g. teaser that is created when a new Product Variation is created.
  • How do you recommend getting control of this view?
  • Can you please remind me how to create another view mode? (Is this in Views?)
I can't remember the terminology about what those view modes are called to get good search results to point me in the right direction. All help is very appreciated!

Thanks,
Katie

Please Log in to join the conversation.

4 years 10 months ago #118867 by steve
Hi Katie

Is it possible to get a login to check your site with a link to the problem page?

If not, I'll install a fresh copy of Commerce Kickstart and try to debug from here.

Please Log in to join the conversation.

4 years 10 months ago #118868 by keb805
Steve,

Absolutely. What level of access do you need? I can create a user account for you. What email address do I send the login info to?


Part of the message is hidden for the guests. Please log in or register to see it.


Thanks,
Katie

Please Log in to join the conversation.

4 years 10 months ago #118869 by Nick
Hi Katie,

Admin level's always good, that way we can check the backend setup. You can email it to support@ostraining.com

Thanks,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

4 years 10 months ago #118870 by keb805
Great! Just sent a login your way!

Thank you so much for delving into this one! I'm stumped.

Thanks,
Katie

Please Log in to join the conversation.

4 years 10 months ago #118882 by steve
Got it - thanks. Logging in now.

Please Log in to join the conversation.

4 years 10 months ago - 4 years 10 months ago #118887 by steve
Wow, that one got my brain going this morning.

Must have taken me an hour or more to untangle this one. I should have had more coffee.

So I opened up Panels and found this Add to Cart formatter:


Finally, I realized that Drupal Commerce ...
1) Wasn't actually using "Add to Cart" as a formatter name anywhere except that screen
2) Was treating that area of the page as a form

So, the format for that area is controlled in "Manage Fields", not "Manage Display":

Here's the URL: admin/commerce/config/product-variation-types/cranks/fields

That's where this is being controlled:

This message has attachments images.
Please log in or register to see it.

Please Log in to join the conversation.

4 years 10 months ago - 4 years 10 months ago #118918 by keb805
Steve - Looks like we got our wires crossed due to terminology :) My question is on the (Product List) view that displays all products in a store, instead of the "Add to Cart" form; please check out the attachment to see the view in question. (This one is also part of Rod's tutorial and is a bit of a stumper.)

I am having trouble controlling field_images, which Commerce uses to upload all images associated with a Product Variation. This field does two main things:
  • Provides content for the product gallery with Image#1 being the main gallery image and Images#2-n as the thumbnails
  • shows all images in a store when called out on the Product Display's (Product List) view, which then indicates that the view is controlled in manage display

In the demo store, this (Product List) view shows all products with just the Image#1 from field_images showing. On Product Variations/Product Displays that I created, all images in field_images show.

On the Product Variation >> Manage Display admin screen, there is a view mode (Product List), alongside (Default), (Node:Teaser), etc. For products that I created that view mode did not pop up. (In the tutorial, Ron mentions that we will need to create a new view for that, but doesn't do that in the tutorial.)

I'm lost on this view too :)


PS - Looks like my upload with my original question didn't make it. Sorry for the confusion.

This message has an attachment file.
Please log in or register to see it.

Please Log in to join the conversation.

4 years 10 months ago #118952 by steve
Hi keb805

Yes, a lot of these are not clearly named.

I believe this extra images are there because Cloud Zoom is being used. Here's what it does:
www.ostraining.com/blog/drupal/cloud-zoom/

You can disable the Cloud Zoom formatter in "Manage Display"

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!