Hi folks,
We’re building an eComm site for an electronics recycler. They’ll have a lot of 1-off products with inventory of 1 — thus, we’ll have a lot of Out of Stock products.
We’re running into an issue where the number of products per page are incorrect. My guess is that the Loop is running against the products, getting 12 of them and then removing the Out of Stock products — instead of discarding Out of Stock and then getting the next twelve. You can see that this wrecks havoc on some pages:
https://getrepowered.org/all-products/page/2/
We need filters on the shop page (so don’t want to mess with wp_query too much), but we also don’t want empty pages.
Have you seen this issue before? Any advice on how to approach the fix?
(Products are super dirty right now, as we just imported 2k from Shopify for retaining customer information.)