Discussions

Commerce views display one image of product

Hi!

I use these data:
product: SKU,TITLE,SIZE,COLOR,IMAGE,STATE...
product_display: TITLE,BODY,PRODUCT (product reference),PRODUCGROUPS (taxonomy terms)

Example, the product variations:
S Red T-shirt
M Red T-shirt
L Red T-shirt
S Black T-shirt
M Black T-shirt
L Black T-shirt

---------------------------------------------------------------------
Now, the view settings:

Format:
Format: Fluid grid
Display: Fields

Fields:
Content: Title (hidden)
Content: Path (hidden)
(Products referenced by field_termek) Field: Image

Filter creation:
Content: Published (yes)
Content: Type (=Product Display)

Relationship:
Content: Product
---------------------------------------------------------------------
Now, all images of product (product_display) appear in view. :(

I would like to display one image of product_display in views module.
How can I do that?

--
G.

Posted: Jun 22, 2014

Comments

dono1 on June 25, 2014

Inside of your view, click on your image field.
Once open, there is a field set that says "Multiple Field Settings"
Open that up scroll down > Look for "Display"

By default this should say "All" > all you need to do is enter "1"
Press save, you're good to go.

makgab on June 25, 2014

No template.
I would like to setup the view displays the product_display as one product variations.

For example:
product variations:
S Red T-shirt
M Red T-shirt
L Red T-shirt
S Black T-shirt
M Black T-shirt
L Black T-shirt

Now the view displays the product_display 6 times (because of 6 product variations). But I would like to display one product_display.