Indexing
...
Entities
Products
Custom Product Types
3min
Product types are injected via this virtualType Klevu\IndexingProducts\Service\Provider\EntityProviderProvider in the indexing products module etc/di.xml
Merchants can add to this EntityProviderProvider e.g.
There are 2 ways in which this CustomTypeProvider can be generated.
1. (Recommended) Use virtualTypes, as the Klevu module does, and pass your custom productType e.g
2. Create a class. This is recommended if you need to filter the returned products on more than the product type. The provider must implement Klevu\IndexingApi\Service\Provider\EntityProviderInterface e.g.
Create the provider
Here ProductCustomTypeEntityCollection is a class that returns a collection of the custom product type.
Updated 12 Nov 2024
Did this page help you?