Forum Replies Created

Viewing 5 replies - 16 through 20 (of 20 total)
  • For anyone who doesn’t want to modify the plugin source code, and just wants to use built in functionality, if you change the Category orderby setting under http://example.com/wp-admin/options-general.php?page=woocommerce-collapsing-categories to simply be ‘name’ then it works properly.

    The explanation from my research, and why fakeartist’s solution works:

    In “/wp-content/plugins/woocommerce/includes/wc-term-functions.php” there is a function called ‘wc_terms_clauses’ that sets up all of the parameters for sorting whenever terms are retrieved. It does that through the filter ‘terms_clauses’ as seen below:
    add_filter( 'terms_clauses', 'wc_terms_clauses', 10, 3 );
    It is built such that it only will do any special sorting if you are retrieving the terms in their default order which is ‘name’. Now WooCommerce Collapsing Categories uses the function ‘wp_list_categories’ to grab the categories. In the course of events this calls the ‘terms_clause’ filter and WooCommerce sorts the terms if the orderby clause is set to ‘name’. But line 208, as mentioned by fakeartist overrules the default order of ‘name’ and uses whatever you have specified in the backend. So if in the settings panel you have set the value of ‘orderby’ to anything other than ‘name’ WooCommerce’s sorting will not be applied.

    I hope that helps someone else out.

    -Daniel

    I found the same issue but I also found that if you just reload the widgets page (without clicking save) then it works.

    This plugin is useful (even with the issues). If this bug could be fixed that would be lovely. I don’t know if it would help but what happens to the widgets on the left hand side when they are dragged over to the sidebars on the right?

    Anyhow thanks for a great plugin.

    Do you have any form of a test site where this problem can be reproduced so we can see it without using images?

    Ok Questions and suggestions as as follows:

    • What server software are you running your site on, IIS/Apache?
    • If Apache do you see an error_log file when you log in via FTP?
    • What other plugins do you have installed?
    • What theme are you using and have you tried reverting back to an original WordPress theme (twentytwelve/twentythirteen)?
    • Can you reproduce the issue on a fresh WordPress installation?

    Answers to the above will help in narrowing down the issue.

    What are your settings on the back end? I am using version 2.2 and it works perfectly fine on WordPress 3.9.1. My settings are as follows:

    Title: Archives
    Trigger Symbol: Empty Space
    Effect: Slide (Accordion)
    Month Format: Full Name (January)
    Expand: Only post date
    Extra options:
    [ ] Show number of posts
    [x] Show posts under months
    [ ] Show only post from selected category in a category page
    [ ] Only expand/reduce by clicking the symbol
    Exclude categories: (none selected)

Viewing 5 replies - 16 through 20 (of 20 total)