2
Answers
Vote up!
0
Vote down!

How to make a View of products with price

Using
Drupal 7.27
Commerce 7.x-1.9
Views 7.x-3.7

I have a product in different colors and different sizes, all with same price.

I have a content type for the product with name, info, image, size-selection,
color-selection, price and add-to-cart.

I have made a view of the content type product showing the name and image.
But I would like to show the price too.

I have tried Relationships in views using Content: Referenced products
but this makes a view with images of ALL the different variations of the product.

I only want one copy of the product shown with name, image and price.

How can I accomplish this?

Asked by: cord1
on May 20, 2014

2 Answers

Vote up!
0
Vote down!

I found the solution myself

In CONTEXTUAL FILTER
Content: Productreference (field_productreference: delta
Provide default value Type Fixed value = 0

In RELATIONSHIPS
Content: Productreference [referenced procucts]
Require relationships

In FIELDS
add field:
Content: Productreference delta (Productreference (field_productreference: delta)
Exclude from display

add field
Commerce Product: Price

Answer by: cord1
Posted: May 20, 2014
Vote up!
0
Vote down!

I was a little bit quick here.
Due to permissions only admins get to see the view.

Anyone who have a good solution for this?

Answer by: cord1
Posted: May 20, 2014