A customer reported issue. They have more than 20 buttons on their site, but they can only see the last 20 buttons in the modal.
I was able to replicate the issue. I've created 21 buttons, and note that button number 1 is missing, and the total count of the button is stuck at 20.
Related: #20411
cc @galakhyati
Another user reported this issue. They had approx 40 products created and only last 20 are displayed.
Live chat: #4762335-hc
Another report in 1390722-zen.
Here's a GIF @aamills created while helping me re-create this:
_Direct image link: https://cloudup.com/cmvbHZ0qkrd_
The workaround for my user in the meantime is to find the shortcodes they have on one page and copy and paste it to another page.
This is not a good situation as it seems pretty core to the usability of Simple Payments for our users.
Adding another report to this issue: 1511295-zen
When user adds more than 20 items on their page https://lucecreativedesign.wordpress.com/?page_id=584, the one furthest down disappears.
I confirmed this issue on a test page, same result as the original report.
FYI @rodrigoi
Any updates on this? The customer is back inquiring on #1528334-zen.
On a quick glance it seems like the reason for this is that the API by default only returns 20 items and there's no functionality to fetch more items in case there are some.
Adding a new report - #8345598-hc
Adding another new report of this issue #11405405-hc
@flootr @rodrigoi @simison I don't see much activity on this thread. Is there anything we can do to get more eyes on it?
Calypso classic editor is going away soon and replaced with Gutenberg editor and with that, this feature (a list to choose simple payments buttons) will be no more.
cc @Automattic/lannister for priority of something like this considering the above.
Pretty sure it happens because of when it requests the buttons (posts with a custom post type) the limits is 20
as default. A not perfect but quick solution is passing the posts number as a request parameter (number field), increasing it to 50, 100, or whatever we decide. The ideal solution is to paginate the list, imo.
Thank you so much for getting this fixed, @retrofox !!!! (please excuse the generous use of exclamation points)
Most helpful comment
Thank you so much for getting this fixed, @retrofox !!!! (please excuse the generous use of exclamation points)