Filter products for a single vendor
Ecsodikas opened this issue · comments
Timo Netzer commented
Hello everyone,
maybe I don't understand the Akeneo API in general, but for my understanding it should be possible to get all products from a single vendor without getting all stored products and filtering afterwards (this takes a really long time). Like this:
$products = $client->getProductApi()->all();
foreach($products as $product) {
// filter here
}
I tried to go the filter route like this:
$searchBuilder = new SearchBuilder();
$searchBuilder
->addFilter('vendor', '=', "t.vendoroni@vendor.com");
$searchFilters = $searchBuilder->getFilters();
$products = $client->getProductApi()->all(10, ['search' => $searchFilters]);
This does not work either, because for some reason Filter on property "vendor" is not supported or does not support operator "="
.
Is there a way to do this, or am I not understanding the purpose of the Akeneo API in general?
Thanks in advance!