QuestionQ37

VerifiedWorking with Databases and EAV

An Adobe Commerce developer needs to generate a product list with ProductRepositoryInterface and search products using a supplier_id filter whose data is kept in a standalone table (that is, not as an EAV attribute).

With maintainability in mind, how can the developer add the supplier ID to the search?

Explanation

Adobe Commerce collection processors support field-specific custom filters. A custom supplier_id filter registered on the product filter processor can join the standalone supplier table to the product collection and apply the requested condition during ProductRepositoryInterface::getList processing.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!