- This topic has 10 replies, 3 voices, and was last updated 4 months, 4 weeks ago by David.
May 18, 2020 at 4:20 am #1289818Jack
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?May 18, 2020 at 5:05 am #1289876DavidStaffCustomer SupportMay 18, 2020 at 5:23 am #1289918Jack
That’s correct. Apart from changing the border, they’re the same arrows.
CheersMay 18, 2020 at 3:56 pm #1290894TomLead DeveloperLead DeveloperMay 21, 2020 at 2:52 pm #1295991Jack
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?May 22, 2020 at 5:24 am #1296541DavidStaffCustomer 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', '→');
$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…May 22, 2020 at 3:55 pm #1297310Jack
I just did this but unfortunately it’s still not working.
Any other ideas?May 23, 2020 at 5:19 am #1297911DavidStaffCustomer 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….May 23, 2020 at 5:42 pm #1298619Jack
Bugger. Thanks for your help.May 23, 2020 at 5:45 pm #1298620Jack
CheersMay 24, 2020 at 6:50 am #1299214
- You must be logged in to reply to this topic.