Skip to content

Commit cd81689

Browse files
committed
Fix readme
1 parent f33664f commit cd81689

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ $searchFilters = $searchBuilder->getFilters();
8787

8888
$firstPage = $client->getProductApi()->listPerPage(50, true, ['search' => $searchFilters]);
8989

90-
echo $page->getCount();
90+
echo $firstPage->getCount();
9191

92-
foreach ($page->getItems() as $product) {
92+
foreach ($firstPage->getItems() as $product) {
9393
// do your stuff here
9494
echo $product['identifier'];
9595
}
9696

97-
$nextPage = $page->getNextPage();
97+
$nextPage = $firstPage->getNextPage();
9898

9999
$firstPage = $nextPage->getPreviousPage();
100100
```

0 commit comments

Comments
 (0)