Extend the module to couple with Commerce module.
The provided patch integrates entityreference_filters with fields defined by Commerce named "A bridge to node referenced by FIELD_NAME".
It is then possible filter products by "referenced nodes".
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | entityreference_filter_2548603-7.patch | 6.23 KB | czigor |
| #3 | entityreference_filter_2548603-3.patch | 6.44 KB | thepanz |
Issue fork entityreference_filter-2548603
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
thepanz commentedPatch attached.
Comment #3
thepanz commentedRefactored patch to include:
- Support for "SearchAPI Combined" fields
- Support for Commerce "A bridge to node" for Product to "Display Node" references
The patch also includes two hooks that modules can leverage to define their own field to base-table mappgings. the API documentation is included, as long as the "commerce" hook implementation.
Comment #5
thepanz commentedTest are failing due to no test have been defined for this module :)
Comment #6
maximpodorov commentedThanks for the patch.
Comment #7
czigor commentedRerolling patch as it does not apply any more.
Comment #8
dtamajon commentedHi! I have applied the patch on the last release, but I don't get it working. I think I'm missing something.
What I'm trying to do is a View based on Commerce Orders, with Line Item relation. From that relation I want the user can filter by Product, which is a product reference field of the Line Item. I have exposed the Product filter, but I can see a textbox instead a dropdown.
Please, can you explain how can I get a dropdown in my case?
Thanks