2

I am using Drupal 7.14, Commerce 7.x 1.3 and Views 7.x 3.3 I have created several products and also the corresponding content. Fields in the product type are the default fields - Product SKU, Title, Price and Status. The content type upon which the related content is based contains some extra fields - image, product reference, author and type. The products display singly perfectly with all the fields (image, Body, price, author, add to cart button and type). If I create a view to display this content the available fields do not contain the price field. All the others, however, display correctly. Why is the price field missing? Would be most grateful for anyone's help.

6

You should add Content: Product as a relation to this view. Then you'll have all the fields from the product available in the view.

  • Hi Marius,Thanks for you rapid reply. Have installed the Relation module and set permissions. I gather I need to create a relation type. When I do this it appears I have to define a Source Bundle. Can you guide me on this? – Brian O'Gorman Jun 26 '12 at 18:48
  • Have now noticed that, in Source Bundle and under Node there is Publications Display which is the name of the content type I have defined. Should I salect that? – Brian O'Gorman Jun 26 '12 at 18:51
  • 1
    you don't need the relation module. just go to the view in the advanced section (right hand side) and add a relation there – Marius Ilie Jun 27 '12 at 8:42
  • Hi Marius, now realise what you meant. Have set (under Advanced) Relationships to Content: Publication Reference and the field is now available. – Brian O'Gorman Jun 27 '12 at 10:08
  • Its really a useful answer @MariusIlie – Fahad Sep 9 '13 at 13:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.