Support Forums

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Problem with Woocommerce page filter behaviour

Viewing 10 posts - 11 through 20 (of 22 total)
  • Thomas
    #238816

    Also if I uncheck “Tag, Category & Taxonomy Archives”, then reload the shop page, I still have the same problem. When I select a filter and then deselect it, it remains active

    Trevor Moderator
    #238818

    Instead of placing the shortcode on the page, what if you enable the sidebar on the shop page:

    https://www.screencast.com/t/bR4S35MtxN

    and then edit the sidebar here, remove the category widget and our form widget:

    https://www.screencast.com/t/e2bPwetZvqH
    and
    https://www.screencast.com/t/YfkmnDnBS9

    and then enable the sidebar on the archive page also:

    https://www.screencast.com/t/j6I7vHwWi5Va

    Thomas
    #238861
    This reply has been marked as private.
    Trevor Moderator
    #238956

    The title is most likely output by PHP in the theme template that is OUTSIDE the ajax container (it is outside the page content area, in the subheader), and thus that would not get refreshed.

    We DO have a script that you could launch an Ajax trigger to refresh the title background, maybe, but the code you need would be very complex I think, and would require the services of a third party coder.

    You might ask the author of the theme if they could give you the jQuery to refresh that subheader using Ajax, then it could go inside this script:

    <script>(function ( $ ) {
      "use strict";
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
        // call your ajax script here
      });
    }(jQuery));</script>
    Thomas
    #239047

    I’m already using your script to reboot custom JS after S&F filtering, so that’s not an issue. However I don’t really see how this could be used to change the subheader. I’l have to investigate this.

    Thanks in any case!

    Thomas
    #239055

    So I looked into it, but unless I’m wrong, your function can only be used to reload elements with the S&F container? Are you saying there is a way to reload parent other, unrelated divs on the page as well?

    Trevor Moderator
    #239057

    Our plugin can only reload what is inside that container, yes. But, in general, it is possible to trigger a reload of most parts of a page, as long as you do it right. You would need to trigger a reload of the subheader.

    Thomas
    #240685

    Hi Trevor,

    Finally managed to make this work.

    I have one more question: Do you see any easy way to make the S&F filters contextual? What I mean is, if I select one filter, I would like to Ajax-reloaded page to display only those other filters which, when combined with the already-selected one, display a minimum of 1 result.

    Thanks,
    Thomas

    Trevor Moderator
    #240780

    Do you have these settings:

    In the General settings tab of the form:

    Set Auto Count (both settings) to ON

    And then in the Form UI:

    In each field set Hide Empty to ON

    If not, please try that.

    Thomas
    #240801

    I do have them enabled, but it seems to apply only on to other search form fields. If I select one product category, for instance, I would expect the filters to only display that category and its children.

    Right now other categories remain visible.

Viewing 10 posts - 11 through 20 (of 22 total)

The topic ‘Problem with Woocommerce page filter behaviour’ is closed to new replies.