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".

Command icon 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

thePanz created an issue. See original summary.

thepanz’s picture

StatusFileSize
new4.06 KB

Patch attached.

thepanz’s picture

StatusFileSize
new6.44 KB

Refactored 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.

Status: Needs review » Needs work

The last submitted patch, 3: entityreference_filter_2548603-3.patch, failed testing.

thepanz’s picture

Status: Needs work » Needs review

Test are failing due to no test have been defined for this module :)

maximpodorov’s picture

Thanks for the patch.

czigor’s picture

StatusFileSize
new6.23 KB

Rerolling patch as it does not apply any more.

dtamajon’s picture

Hi! 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

kimlop made their first commit to this issue’s fork.