Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Add this to theme functions.php:

    remove_action( 'woocommerce_pagination', 'woocommerce_catalog_ordering', 20 );

    I appended this line of code to the file:

    public_html/wp-content/themes/resort/includes/theme-functions.php

    after all the function definitions but just before the “end of file” comment, but the sorting drop down list box persists. The list box is also stuck at “Default sorting” — I can’t change the selection.

    I’m using woocommerce 2.0.10, “resort” theme. Should this still work with this version, or is there a different fix?

    Also tried it in

    public_html/wp-content/themes/resort/functions.php

    in case that’s actually where you meant, but also to no avail. (Pasted it into the “custom functions” section, just before “the sky will fall in” msg.)

    Interestingly, the list box gets “unstuck” when the responsive theme (“resort”) detects the screen width to be too small to display the menu, and it shows the menu button instead. Then the list box is usable. But when the screen width is increased back to “full display” mode, the list box goes inactive again. So that aspect may be actually be a bug in the “resort” theme.

    Edit: Actually, this bug is evident even in the “resort” demo page

    https://demo2.woothemes.com/?name=resort

    so I think that nails that as a theme bug!

    I’d still like to be able to make the product sort list box go away though… I really don’t have enough products to justify, and it’s potentially a bit annoying since it doesn’t work as it should all the time anyway.

    Update on “inactive product sort listbox” bug: The bug doesn’t show in IE10, but it does in Firefox 21.0 (Windows 7 x64).

    It does seem to be a bug specific to the “resort” theme; as a test I tried clicking on “shop” in the “canvas” demo, and the product sort list box worked OK under Firefox 21.0.

    Which is all I’m going to say about that bug. Now how can I simply make the (sometimes) problematic product sort listbox go away entirely? As I mentioned above, I tried inserting

    remove_action( ‘woocommerce_pagination’, ‘woocommerce_catalog_ordering’, 20 );

    into

    public_html/wp-content/themes/resort/functions.php

    but to no effect…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WooCommerce – excelling eCommerce] Default Sorting’ is closed to new replies.