Closed (won't fix)
Project:
Commerce Core
Version:
7.x-1.0
Component:
Cart
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2011 at 17:29 UTC
Updated:
13 Sep 2017 at 19:41 UTC
Jump to comment: Most recent
Comments
Comment #1
rszrama commentedYou just need to make it a View of Content instead of Commerce Products. Look at the default Cart block for an example.
Comment #2
craigtockman commentedDid you ever find a solution for this. I'm having the same issue.
Comment #3
brockfanning commentedSorry, I had settled for a simpler DIY approach (custom module) before I got rszrama's response. It sounds promising though. Has making a View of "Content" instead of "Commerce Products" not worked for you?
Comment #4
quotesbro commentedHow is it possible? The default Cart views (including Cart block) have type 'Commerce Order'. If I create a new view of Content, it doesn't have Commerce Order in contextual filters.
brockfanning, could you share your module's code?
Comment #5
rszrama commentedHonestly, I'm not sure what I was talking about, but since this issue was opened, there's a new place for Commerce Q&A: http://www.drupalcommerce.org/questions - or search drupalcommerce.org or Drupal Stack Exchange, as there's been quite a lot of discussion about front end configuration already.
Comment #6
raphael apard commentedYou can add a relation to cart view
(Produit) Commerce Product : Elément !entity_tape référençant des produitsdepuis field_product and then add fieldContent: Title.Comment #7
ace11 commented#6 Does not work, because there is no Product (product display) relation in that view.
Any tips/help?
**EDIT**
I got this. You need to add two relationships.
1. Add relationship: Commerce Line item: Product
2. Add relationship: Commerce product: Node referencing products from field_product
3. Add field: Field: Title and set Relationship to "Node referencing products from field_product"
This shows product node title in views.
Comment #8
edaa commentedInstall Inline Entity Form module > leave "Auto generate the product title" checked.
Then create a module to override the save() method of CommerceProductInlineEntityFormController class of Inline Entity Form module. In this way, the product type title is same as the node title.
It's petty cool if the Inline Entity Form module can work with Token module.
Comment #9
grougy commentedThanks #7
I can confirm that the edit in #7 is working very well and allow to display any field from product display node in the cart view. (Quite simpler than #8 solution)
Comment #10
hottaco commented#7 kind of works for me. But it's showing all content attached to that product.
I just want the node's title that's referenced in the path that hyperlinks the PRODUCT field on checkout.
I have a single product called "Voting on a Dog"
I created a new content type and referenced the product "Voting for a Dog".
I created 12 pieces of content that have the dogs pics, bio etc.
When I go to checkout it shows all the content I created vs just the one I'm checking out with when I add all the relationships as described in #7
I dumped all the variables from this hook to see if the title was already there since the nid is listed.. but can't find it.
Any guidance would be appreciated.