The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
Forums › Forums › Search & Filter Pro › Breadcrumb Navigation Issue
Hi,
I have discovered when using S&F Filter on a Product Category page if you click on a filter the breadcrumb navigation doesnt get updated.
For example, if you visit: http://tinyurl.com/h8oss8m and then click on the Scales – analogue filter the breadcrumb navigation is still displaying Home / Products / Lures & baits.
I appreciate this is partly a Woocommerce/Theme/Template issue but is there anything that can be done to get around this?
I will need to ask Ross, the developer, about this and get back to you.
Hi Andrew
2 things to note:
1) only the area in the results container
(the area of the page that reloads using ajax) will be updated with new content, so to have that update via ajax, your results container would need to be larger or you would need to write some custom javascript code that triggers on this event (we have js events for detecting ajax finish)
2) To test how the logic really works, it would be best to disable S&F. Then you will notice that all your breadcrumbs are lost with any search… because your breadcrumbs work based on the current taxonomy archive… but when S&F searches, it does not take you to the taxonomy archive (check the URL).
So, to get it working without ajax, you would need to faux implement the breadcrumbs and use this to get the current search data).
BTW, we are adding support for taxonomy archives in a future update, so this (without ajax) will no longer be an issue
Thanks
ok I understand. I tried changing the Results container class to .woocommerce_with_sidebar so it includes the breadcrumb navigation.
This seems to work when first clicking on a Product Category filter, it updates the Breadcrumb Navigation to just “Products” which is fine. However, when clicking on another Product Category or Brand the page doesnt get updated again.
Any idea why this is happening?
Are you using Ajax making these changes?
When your Ajax is performed the S&F form is replaced, which is why it only works once.
To re-initialize S&F on the form, use the sf:ajaxfinish
function (see our FAQ page) and then run – $('.searchandfilter')
to increase your container to include the breadcrumbs, it will include the S&F form.
I got this from Ross 😉
OK I added the following script to the theme but its still not working, there no console errors:
$j(document).on("sf:ajaxfinish", ".searchandfilter", function(){
console.log("ajax complete");
//so load your lightbox or JS scripts here again
$j('.searchandfilter');
});
The topic ‘Breadcrumb Navigation Issue’ is closed to new replies.
© 2024 Search & Filter Support. All Rights Reserved.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy