Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have no idea whether it is possible. Right now the product displays are chosen in the view. Is it possible to create the view, so it just includes all product display types, so new display types you create are automatically included in the result for the view without the developer having to manually add new product display types.
Comments
Comment #1
bojanz CreditAttribution: bojanz commentedOn which view is that?
We have a "Is this node a product display?" views filter, so it can be used anywhere. If there's a list of node types used instead of that filter, then that needs to be fixed.
Comment #2
lsolesen CreditAttribution: lsolesen commentedView: Commerce Backoffice: Products
But it is also in the Facet Search API, where you have to choose your bundles and need to make sure, that you choose the correct bundles, and because of that the Display Products (Search Commerce Display) does not show all products if you add another product display type.
Comment #3
vasikethis could be done by using "Product Display type" filter.
imho The issue here is that this filter is built in "Commerce Kickstart Content UI".
I think this filter should be moved in Drupal Commerce package in Product Reference module, before we start using it.
Comment #4
bojanz CreditAttribution: bojanz commentedLet's move that filter from Content UI to Commerce itself.
There's already an open issue: #1031494: Product Display views filters: Is Product Display? & Product Displays Content types.
We should then make sure that all relevant views are using it (I believe the Backoffice products view doesn't use it currently, which is a problem).
Comment #5
vasikepatch posted on Drupal commerce issue #1031494-6: Product Display views filters: Is Product Display? & Product Displays Content types.
Should i rebuild the view Drupal commerce patched?
Comment #6
GuGuss CreditAttribution: GuGuss commented@vasike : yes, our views should use that filter !
Comment #7
vasikehere is the commit : https://code.drupalcommerce.org/#/c/201/
Changed the filter for Product displays for the Products view, in the Commerce Backoffice module. Drupal commerce patch included
Comment #8
vasikeQuestion:
Actually do you really need an extra filter as we have "Content: Referenced product" Relationship REQUIRED.
which means we'll get only nodes with referenced products only.
Of course this filter could be usefull, for view without this relationship (and/or required).
Comment #9
vasikethis issue will be covered by others issues
#1031494: Product Display views filters: Is Product Display? & Product Displays Content types - the views filters
&
#1701652: Rebuild and retheme the product listing view - implementation
so, should we make this duplicate or closed somehow?
what about the gerrit commit? should we abandone it?
Comment #10
bojanz CreditAttribution: bojanz commentedOkay, so we're handling the product display part in #1701652: Rebuild and retheme the product listing view.
In this issue we can try to solve:
I don't know if this is possible. Assigning it to Jonathan, he'll know if this is doable (and will be able to implement it if it is).
Comment #11
bojanz CreditAttribution: bojanz commentedComment #12
jsacksick CreditAttribution: jsacksick commentedThis could be done by extending the bundle filter data alteration to make that dynamic, for now what you can do lsolesen is "Go to admin/config/search/search_api/index/search_commerce_display/workflow" and check the product display types you want to index.
Comment #13
jsacksick CreditAttribution: jsacksick commentedhttps://code.drupalcommerce.org/#/c/270/
Comment #14
bojanz CreditAttribution: bojanz commentedMerged!