Forums Forums Search Search Results for 'woocommerce'

Viewing 10 results - 211 through 220 (of 1,497 total)
  • Author
    Search Results
  • #250579

    In reply to: Filter Out Categories


    Anonymous
    Inactive

    Yeah exactly. I tried that and it’s not quite working.

    Everytime the page loads (on first entry), it automatically loads everything (from most recent to oldest) of all of my products in WooCommerce. Would that even apply to the filter, as it’s not being used until I input something?

    #250557

    Anonymous
    Inactive

    Hello,
    I have problems with pagination an also when I mix two taxonomies, the first with categories and the second with tags. When I filter, pagination still counts all items, so when I change the page, the filter disappear, the ajax doesn’t work and I don’t know which is filtering.

    Is there a way to use one filter, and if there are terms in the second that doesn’t match, they can’t be clicked? Because if I click them, again it shows me whatever else.

    I give you here my development site https://macarenariveracl.stage.site/shop/ , it’s a Woocommerce store that is online now in https://macarenarivera.cl/shop/. My filter there (other) is working, but It doesn’t search.

    Could you be nice and help me solve it? I’m trying to do that since a week ago….
    thanks in advance

    #250497

    Trevor
    Participant

    You would need to have just one form that meets the needs of both of the existing one, and then hide the necessary fields on whichever pages they need to be hidden on. Inspect the pages and look a the body tag classes. You will see unique classnames on WooCommerce pages that you can use.

    #250488

    Anonymous
    Inactive

    Sorry to the late reply. Your email landed in the spam folder.
    I mean if I change the structure of a file in the plugins directory this change will be lost when I update the plugin. With WooCommerce for example I can create a copy of a template file and move it in the child theme folder and then edit it. Is it possible to the same with S&F? Thank you.

    #250475

    Trevor
    Participant

    I have reset the form back to how you had it for now. If a product is completely out of stock (all variations), does it then disappear?

    I can see that you have WooCommerce Inventory settings to hide out of stock products, with using a Post Meta condition. However, I suspect that something is overriding this.

    You are using a Third Party plugin called WooCommerce Stock Manager. Maybe this is causing this?

    As I said earlier, our plugin respects the Inventory no stock setting, which you have.

    #250123

    In reply to: Struggling with set up


    Trevor
    Participant

    I don’t need that, thanks. What you want cannot, yet, be done, on the results page. We have received feature requests to allow the one form to be broken into parts to be placed (and styled) in different places (and differently styled) on the page.

    We have taken those requests on board for our forthcoming V3 (which we hope to release in summer 2020 – but that may flex a little as we polish the code and UI). For example, you might have a form in WooCommerce that has a Search Box (text field), a Sort Order drop down, and then other fields (Product Categories, Product Tags, Variations, etc). You will be able to place the Search Box in the header, and the Sort Order above the products, and the rest of the form in the sidebar.

    But, that is not possible right now.

    As to taking a theme search (like one might see in a header or main menu) and directing that to our search form, this is possible, as long as, on the results page, the Search & Filter form also has a text search. Also, on the search results page, the two forms will NOT ‘talk’ to each other (see my earlier comments about splitting the form up).


    Anonymous
    Inactive

    I have two search forms on my site.

    The first one is a sidebar product filter showing results on the woocommerce shop page.

    The second one is a search bar on the header. I also have it setup to show results on the woocommerce shop page. The plugin is telling me I cannot do that. The woocommerce shop page can only be used on one form. I need both of them to work together.

    When I search from the search bar on the header it works only one time. It shows me results for the first search phrase but not if I search again with another phrase.

    How can I make this work?

    #249903

    Trevor
    Participant

    Ah, that we have little or no control over. Let me explain, and then offer a ‘Select’ replacement script as a possible solution (used by many themes).

    One of the reasons so many themes/sites use ‘Select’ replacement scripts is that much of the formatting of standard select controls is done by the browser, and so you have little or no control over that.

    The Chosen script is included with/used by our plugin by default. However, it is now pretty much abandoned and has not received any major updates in a long time. It has poor support for iOS devices for example.

    In the current version of our plugin, there is an option in our settings page to choose which (Combobox) script to use. If you change this to Select2, that script is then available for you to apply to the form (see below for how). Select2 is maintained now by the WooCommerce team, who are, of course, owned by Automattic, the owners of WordPress, and as such is used by a lot of themes and plugins.

    If you want the select box with a search box at the top, you need to add this JavaScript to the page:

    <script>
    (function ( $ ) {
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
        $('select.sf-input-select').select2();
      });
    }(jQuery));
    jQuery(document).ready(function($){
      $('select.sf-input-select').select2();
    });
    </script>

    If you want it without the search box at the top of the select boxes, then this:

    <script>
    (function ( $ ) {
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
        $('select.sf-input-select').select2({minimumResultsForSearch: -1});
      });
    }(jQuery));
    jQuery(document).ready(function($){
      $('select.sf-input-select').select2({minimumResultsForSearch: -1});
    });
    </script>

    This post shows the complete Select2 CSS that we already include in our plugin:

    https://support.searchandfilter.com/forums/topic/customise-dropdown-combobox/#post-180345

    At the end is an example of how to modify it.

    #249350

    Anonymous
    Inactive

    Hi,

    We have a pro version of the plugin.

    In our shop, we different kind of types of products (clothes, electronics, etc).

    And we would like to show product attributes that are in the results of the WooCommerce shop page.

    Let’s say in the results, I don’t have clothes. I don’t want the filter to show the attributes associated with clothes and not show the heading of the attribute block.

    Is that possible to do ?

    If so how can we acheive this ?

    I tried different options and the attributes always shows.

    Thanks for your time !

    #249282

    Trevor
    Participant

    We have received feature requests to allow the one form to be broken into parts to be placed (and styled) in different places (and differently styled) on the page.

    We have taken those requests on board for our forthcoming V3 (which we hope to release in summer 2020 – but that may flex a little as we polish the code and UI). For example, you might have a form in WooCommerce that has a Search Box (text field), a Sort Order drop down, and then other fields (Product Categories, Product Tags, Variations, etc). You will be able to place the Search Box in the header, and the Sort Order above the products, and the rest of the form in the sidebar.

    But, that is not possible right now.

    As to taking a theme search (like one might see in a header or main menu) and directing that to our search form, this is possible, as long as, on the results page, the Search & Filter form also has a text search. Also, on the search results page, the two forms will NOT ‘talk’ to each other (see my earlier comments about splitting the form up).

    You need to decide where you want to send the search (either a page with a slug or not), and use a WordPress rewrite in your child theme functions.php file.

    There is an example here (the site shown uses a slug name for the search results page, which looks nicer):

    https://support.searchandfilter.com/forums/topic/using-default-wp-search-bar-to-show-sf-results-page/#post-243811

    Here there is an example of one that doesn’t use a slug:

    https://support.searchandfilter.com/forums/topic/how-to-maintain-search-string-while-filtering/#post-205209

Viewing 10 results - 211 through 220 (of 1,497 total)