Closed mbaio94 closed 4 years ago
Issue-Label Bot is automatically applying the label type: bug
to this issue, with a confidence of 0.97. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
@mbaio94 thanks for reporting the issue. However, I can't reproduce it on my end.
My findings:
1) GET Request:
First product on Page 1 in Postman:
First product on Page 1 on the site:
Last product on Page 1 in Postman:
Last product on Page 1 on the site:
2) GET Request:
First and only product on Page 2 in Postman:
First and only product on Page 2 on the site:
Most likely one of the plugins on the site is causing the request not to work as expected. I recommend testing on the staging site (if you can't test on live site and you shouldn't) with all plugins deactivated except for WooCommerce.
@mbaio94 I am closing this issue due to inactivity. Please feel free to comment on it in case we missed something. We'd be happy to take another look.
I am facing the same issue reported by @mbaio94 . The first two page of the pagination query is working fine, but from third page I am finding previous products. I'm using per_page=3.
Describe the bug Sending a GET request to
<storeUrl>/wp-json/wc/v3/products?page=1&per_page=20
correctly returns the first 20 products. However, changing thepage
url parameter to any page value, returns the same data set in the result:<storeUrl>/wp-json/wc/v3/products?page=2&per_page=20
returns the SAME 20 products that page 1 returned.Notes:
X-WP-Total
andX-WP-TotalPages
are1500
and75
respectively, so I know there are more products to return, and the client has verified this as well.page
value of an astronomical number (50000000) still returns the first page set of dataTo Reproduce Steps to reproduce the behavior:
<storeUrl>/wp-json/wc/v3/products?page=1&per_page=20
<storeUrl>/wp-json/wc/v3/products?page=2&per_page=20
Expected behavior
Isolating the problem (mark completed items with an [x]):
I cannot do this because it is a client's WordPress site
Again, I cannot change the client's settings
WordPress Environment