Forums Forums Search Search Results for 'woocommerce'

Viewing 10 results - 271 through 280 (of 1,497 total)
  • Author
    Search Results
  • #242521

    Trevor
    Participant

    I am assuming that you are using the WooCommerce method? You could edit the PHP template being used and add some logic to test if a filter has yet been applied, like this (change the ID to match the form you are using):

    global $searchandfilter;
    $sf_current_query = $searchandfilter->get(1234)->current_query();
    if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) {
      echo '<div>Nothing to see here folks!</div>'; 
    } else {
      // the current products output code here
    }
    #242354

    Trevor
    Participant

    Ah, I should have explained better, I apologize for that. It isn’t the presence on the page of that second form, it is that it is set to WooCommerce method. Can you change it to ‘Custom’ display results method?

    #241973

    Trevor
    Participant

    You need to add Product Category to the form UI also (it is a Taxonomy, not Category), at the moment the form has only a search box in it.

    These screenshots are for the Post Type Archive method, but it looks much the same with the WooCommerce method:

    You need to set autodetect category/taxonomy:

    https://www.screencast.com/t/3B40jPYRF4SA

    And also enable filtering on Taxonomy Archives (the taxonomy also needs to be in the form itself):

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

    #241944

    Anonymous
    Inactive

    Hi

    I have added the woocommerce search & filter pro to my shop side bar
    https://shopanddrop.ie/product-category/mulkerns-eurospar-newry-shop/

    On the category listing dropbar there are no categories showing at all, any clue on how to fix this or have i not set it up properly?

    Also, does this search only search within that main cateory of Mulkerns Eurospar Newry and the sub categories under it? There are several children categories tht have sub categories too, totalling 50 categories under the main category.

    I don’t want other products from other main categories when i start to add other shops as main categories if this is possible?

    #241826

    Trevor
    Participant

    Ajax not working might be an issue of getting the Ajax Container setting correct. We default set it to #main, but many themes change it. For example, WooCommerce generally sets it to .products.

    You would need to examine the page code and see what the class name for the results container is.

    #241611

    Anonymous
    Inactive

    Thank you for the advice, Ross:

    I tried it, and it did indeed fix that problem!

    But, I can’t get ajax to work with results method Post Type Archive.

    I have only been able to get Ajax to work using Archive and WooCommerce.

    #241426

    In reply to: width Container


    Trevor
    Participant

    Could you first change the combobox script to Select2 (there is an option in our settings page to choose which Combobox script to use). Your current form uses Chosen, which is set within 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.

    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.

    Also, do you wish to set or change the indents here:

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

    #241345

    Anonymous
    Inactive

    Hi Trevor

    The product had been loaded via csv file through the woocommerce import products option. I did create a test product manually and still had the same issue. It is only picking up the old products which had been added.

    Regards
    Vinesh

    #240925

    Anonymous
    Inactive

    Will get the Staging site set up.

    Re. your question: the first filter was filtering custom posts so I used the ‘Custom’ option. The second filter I created was for a WooCommerce ‘shop’ page, where I used the ‘WooCommerce Shop’ method. After creating this filter, the one for the custom posts stopped working.

    #240803

    Trevor
    Participant

    You would have just one form for both pages. If prodotti is a product_category, then you need to add product category (a Taxonomy) to the form also, and then set the form to WooCommerce method.

    If you do not want the user to be able to use the Product Category field, use custom CSS to hide it.

    You can then set the form to AutoDetect. These screenshots are for the Post Type Archive method, but you should see similar options.

    You need to set autodetect category/taxonomy:

    https://www.screencast.com/t/3B40jPYRF4SA

    And also enable filtering on Taxonomy Archives:

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

Viewing 10 results - 271 through 280 (of 1,497 total)