File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff 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```
Original file line number Diff line number Diff line change 4141 },
4242 "suggest" : {
4343 "php-http/guzzle6-adapter" : " In order to use Guzzle v6 as the HTTP client"
44- },
45- "extra" : {
46- "branch-alias" : {
47- "dev-master" : " 1.1.x-dev" ,
48- "dev-1.0" : " 1.0.x-dev"
49- }
5044 }
5145}
You can’t perform that action at this time.
0 commit comments