random display order of Next/previous products navigation ?
-
On the product page I have turned on the PRODUCTS NAVIGATION:Display next/previous products navigation function.
What determines which product is “next”? It seems to be quite random. Is that just how it is or is there a setting?
It’s not the same order as shown on category page. It’s not alphabetical. I’ve set menu order of all products to 0, so it’s not that. It will often show similar products (same category, same brand) for a few or even several products but then skip to something very different, then just apparently random products. It doesn’t show everything within the same category before showing random products.
Hello,
By default, the WooCommerce plugin doesn’t have products next/previous arrows functionality at all. To implement this feature we use standard WordPress PHP get_next_post
and get_prev_post
functions that can obtain adjacent posts from the database. Unfortunately, it takes products from the whole table and depends only on the shop page order. The system can’t know that you previously visited this product’s category page. Yes, it would be much better to show next/prev product from the same category. But how the system might know which one? The product can be from multiple categories. Then, from which category next product should be taken? Or for example, if I use filter by price or by color/size the order for products changes again. And naturally, that when you open some product from that page you must see products from the same color/size or from the same price filter interval. And there are a lot of such cases that make it impossible to make product arrows buttons work as expected.
We spent a lot of time investigating this issue but, unfortunately, there is no solution for this problem. You can check any other theme for WooCommerce and you will see the same issue.
Kind Regards