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

Commit be97f62

Browse files
authored
Merge pull request #57 from svartsvan/master
fix Product filters
2 parents e7d79b6 + 8b710b8 commit be97f62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Api/Products.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ class Products extends AbstractApi
1212
*
1313
* @return array
1414
*/
15-
public function all($pageSize = 50, $currentPage = 1)
15+
public function all($pageSize = 50, $currentPage = 1, $filters = [])
1616
{
17-
return $this->get('/products', [
17+
return $this->get('/products', array_merge($filters, [
1818
'searchCriteria[pageSize]' => $pageSize,
1919
'searchCriteria[currentPage]' => $currentPage,
20-
]);
20+
]));
2121
}
2222

2323
/**

0 commit comments

Comments
 (0)