[Resolved] Navigation arrows on Single Product Pages are not navigating through all product

Home Forums Support [Resolved] Navigation arrows on Single Product Pages are not navigating through all product

Home Forums Support Navigation arrows on Single Product Pages are not navigating through all product

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1289818
    Jack

    Hey there,

    The navigation arrows on the WooCommerce single products don’t navigate through the products in a logical order.

    They also only navigate through 3-4 products and then show that I’ve reached the end (I currently have 17 products.)

    An example is this product: https://fitzroyproject.com.au/product/52-charles-street/

    How can I fix this?

    #1289876
    David
    Staff
    Customer Support

    Hi there,

    how were the navigation arrows added?
    Did you import the Imprint site originally ?

    let me know

    #1289918
    Jack

    Hi David,

    That’s correct. Apart from changing the border, they’re the same arrows.

    Cheers

    #1290894
    Tom
    Lead Developer
    Lead Developer

    That’s strange, are all products apart of the same category/do they all have categories?

    #1295991
    Jack

    Sorry for the slow reply Tom.

    They are all from the same category…”Jack Magnus McDonald.”

    The shop page has a Gutenberg Block displaying all products. And they’re ordered by “most recent”…

    But that shouldn’t impact the nav arrows on the single product pages?

    #1296541
    David
    Staff
    Customer Support

    Go to Appearance > Elements and edit the Single Product Next Previous hook

    Replace these two lines:

    $previous = next_post_link('%link', '←');
    $next = previous_post_link('%link', '→');

    with:

    $previous = next_post_link('%link', '←', TRUE, ' ', 'product_cat');
    $next = previous_post_link('%link', '→', TRUE, ' ', 'product_cat');

    This should look the navigation to the same category…. and hopefully fix the issue…

    #1297310
    Jack

    Hi David,

    I just did this but unfortunately it’s still not working.

    Any other ideas?

    #1297911
    David
    Staff
    Customer Support

    Well it has me stumped.
    On all my tests it works fine when using Simple products without any taxonomies.
    Minute we add anything that complicates the product or involves a taxonomy then it all goes ape…

    I am not sure we can fix this….

    #1298619
    Jack

    Bugger. Thanks for your help.

    #1298620
    Jack

    Cheers

    #1299214
    David
    Staff
    Customer Support

    Sorry about that – thanks for pointing out the issue – ill update the site and this topic if we find a reliable solution

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.