Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

matusstafura
Copy link
Contributor

we tried to add additional filters but they are ignored in Products api,

$magento = new Magento();

$response = $magento->api('products')->all($pageSize = 2, $currentPage = 1, [
    'searchCriteria[filterGroups][0][filters][0][field]' => 'status',
    'searchCriteria[filterGroups][0][filters][0][value]' => '2'
]);

it does work by merging array with default filters

@ahinkle ahinkle merged commit be97f62 into grayloon:master Apr 17, 2021
@ahinkle
Copy link
Contributor

ahinkle commented Apr 17, 2021

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants