Home Forums WoodMart support forum Pagination

Pagination

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #645279

    piotrburchart
    Participant

    Hi,
    Is it possible to set the pagination according to the order of products arranged in the category/in order?
    For example: when I am on the Shell Angels category and I press the first product and then I use the navigation (next and previous buttons), the products do not go in order on the category page. Please watch the video:
    https://jumpshare.com/s/uZ0k5ybeQlCV0e5hI1zP

    Piotr

    #645432

    Artem Temos
    Keymaster

    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.

    Kind Regards

    #645519

    piotrburchart
    Participant

    Good morning,
    So it doesn’t matter how you sort products in a specific category?
    Thank you

    #645554

    Artem Temos
    Keymaster

    Could you please clarify what sorting you mean? Send us a screenshot.

Viewing 4 posts - 1 through 4 (of 4 total)