Home › Forums › WoodMart support forum › Product navigation doesn´t work
Product navigation doesn´t work
- This topic has 13 replies, 2 voices, and was last updated 2 years, 10 months ago by Elise Noromit.
-
AuthorPosts
-
February 9, 2022 at 4:19 pm #351758
b.brennerParticipantHi, the product navigation on single product page (navigation of next/previous products) does not work correctly and seems to be random.
February 10, 2022 at 1:33 am #351826
Elise NoromitMemberHello,
Yes, that is right. That is the way it works by default. If you want to show the product from the same category, add this code to the functions.php of the child theme:
add_filter( 'woodmart_get_prev_product_same_term', '__return_true' );
If you have any questions please feel free to contact us.
Best Regards
February 10, 2022 at 7:20 am #351855
b.brennerParticipantHello, thank you. I would have expected that the product navigation shows the same products in the same order as on the shop page. For example, when I see all products on the shop page, sorted by title, and I click on one product I can use the product navigation to go through these products that I have seen before. This is what the user expects and how it works in other shops.
February 10, 2022 at 5:30 pm #352067
Elise NoromitMemberHello,
Unfortunately, it is not possible.
If you have any questions please feel free to contact us.Best Regards
February 11, 2022 at 7:54 am #352200
b.brennerParticipantHello, thats very sad. Such a basic and important function in a website is really not possible with woodmart? The php code you gave me to make it work within the same category does not help too. Products usually have several categories, usually hierarchically (e.g. clothes – pants – shorts). When I look at 20 different shorts, does Woodmart product navigation suddenly show me skirts? That is no solution.
It’s just as bad when navigating projects: I sorted my projects by title, but the project navigation shows a completely different order. If you click on the “back to the list” button, you don’t get the list but a single project page.
February 13, 2022 at 5:13 pm #352610
Elise NoromitMemberHello,
WoodMart navigation is based on the default WordPress functions:
get_next_post()
andget_previous_post()
and we cannot change these functions. As for the backlist button, please check if you have set the page for the portfolio, choosing the appropriate template in the page settings.
Best Regards
February 14, 2022 at 2:35 pm #352911
b.brennerParticipantHello, when I set the page as portfolio the page is not working anymore. I used the portfolio element within the page together with other elements.
February 15, 2022 at 12:13 am #353006
Elise NoromitMemberHello,
I have navigated and navigation works as it should: https://gyazo.com/e87ddc52f19130059fa9f601ae565be4 and https://gyazo.com/af6893e6c8654c38208bcc2b97bb8fb2
Please clarify the problem.
Best Regards
February 16, 2022 at 1:01 pm #353509
b.brennerParticipantHello the sort order is working now because in the meanwhile I changed the dates of all projects so that the alphabetical order corresponds to the order by date.
What still doesn’t work is the “back to list” button. Instead of going to the list, the current page is reloadedFebruary 17, 2022 at 12:29 pm #353794
Elise NoromitMemberHello,
You need to set “Portfolio” template on the page: https://take.ms/A749o
Please set and check.
Best Regards
February 25, 2022 at 12:59 pm #356000
b.brennerParticipantHello, when I set “Portfolio” template on the page all the content disappears at the frontend.
Attachments:
You must be logged in to view attached files.February 26, 2022 at 1:31 am #356105
Elise NoromitMemberHello,
Such may happen if you have set one and the same page for Portfolio and Home page in the Dashboard > Reading.
If you want to show the portfolio on the home page, you will need to use the Portfolio widget.
Best Regards
February 28, 2022 at 10:23 am #356396
b.brennerParticipantHello, this is not the case. The page I mentioned is not the home page in the ‘Reading’ settings.
Best regardsMarch 1, 2022 at 1:00 pm #356639
Elise NoromitMemberHello,
Sorry for the delay. I cannot enter your site and even see the content. Please provide full valid access.
Please insert the site admin access into the Private content below the message area.Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register