1
Answers
Vote up!
0
Vote down!

Product Image´s Display Format in a view of product types with product variants

I have a view of product displays (content types) with a field "rendered node".
The configuration of this field is "Show complete entity" and a special display mode of my product display type (content type).

The reason why I use the field "rendered Node" is that - as far as I found out - this is THE ONLY WAY the selection of product variants is shown correctly (e.g. no problem with multiple values).

Now I want to show some product displays with their referenced product variants.
Everything seems to be fine - except the images of the products: they show up in the same size as configured in the standard display mode of the product type´s display settings (the product type´s, NOT the content type´s).
In the display settings of the content type I have no choice of switching the product imge´s display format - it says that I have to configure it via the display settings of the product type. OK.

What I want to achieve (and already almost completely did) with this view is:
- show some fields of the product display (content type) - e.g. title, description
- let the user select the product variations (I use Commerce Fancy Attributes for choosing the color)
- show some fields of the products (variations)
- have a different (smaller) sized product image then in the node´s full-view mode

Just to clarify:I already got this view with all the product fields showing within the rendered node.
The only thing I need is another display format of the product image.

Or should I go another way?

Thanks!

Asked by: 4kant
on March 4, 2014

1 Answer

Vote up!
0
Vote down!

Wow, that's a lot of levels of display formatters.

I assume you're using an entity reference and you want "field injection" to work, you must reference the product display node and not the products entities. Technically there are many other ways to do this, including using display suite, or panels, or even just a views block that has properly set up references.

Personally, I'd use a views block to get at any fields that I really needed that were many levels deep in a relationship. If you are looking for field injection such that if you choose color attribute the product's image changes, I would do what you are doing with entity reference field and reference a full product display node that renders the add to cart form.

Josh

Josh Miller
Answer by: Josh Miller
Posted: Mar 6, 2014