Any hero want to take a guess at why this items ap...
# suitecommerce
s
Any hero want to take a guess at why this items api call has pagination at 48 items, 85 items total count but only returns 15 items? The identical category on another regional domain works fine/as expected. Only difference between the two is pricing & inventory locations - but all pricing is complete for all currencies and stock available at all locations.... https://eu.monsroyale.com/api/items?c=3934103&commercecategoryurl=%2Fmens&country=US&currency=EUR&fieldset=search&include=facets&language=en&limit=48&n=12&offset=0&pricelevel=35&sort=custitem_ranking_sort_nh%3Aasc
p
Cache maybe, it retrieves 85 for me
message has been deleted
s
@pablod - the total count is right but first array of items should equal 48 (the default pagination on our site) but only has 15 items in it...
And so on the site the first page of results is 15 items... https://eu.monsroyale.com/mens
Thanks for looking btw, any input is appreciated 🙂
k
probably has to do with the inventory settings and pricing as you mention - maybe some of the locations are not assigned to the web store
👆🏽 2
s
It's a single location per subsidiary/storefront and stock is there, nothing has changed in that respect for years. Which leaves pricing, which all seems correct....
Haha, what the actual - that category now works. All I did was go in manually to it in admin and move the ordering of one product and save. That triggered a commerce category update seen in the index status list and there you go, all 85 visible. So populating commerce categories by CSV and the rebuilding search index doesn't work as expected....
And the new guy is going to spend the next hour manually edit/saving a whole lot of categories but it will work at least. BTW "RUN SERVER SUITESCRIPT AND TRIGGER WORKFLOWS" is checked on all csv mappings
@Mike Lynch
Oh, except populating categories by CSV and reindexing did work exactly as expected on the first 3 of 6 sites we worked through, identical process. NS FTW.