WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Default Sorting (6 posts)

  1. TillyD
    Member
    Posted 2 years ago #

    I have a Sorting Button on my Shop Page. Can anyone suggest how I can remove it, please? Or is this a bug in my setup?

    http://wordpress.org/extend/plugins/woocommerce/

  2. mikejolley
    Member
    Plugin Author

    Posted 2 years ago #

    Add this to theme functions.php:

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

  3. plugger2
    Member
    Posted 1 year ago #

    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?

  4. plugger2
    Member
    Posted 1 year ago #

    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.)

  5. plugger2
    Member
    Posted 1 year ago #

    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

    http://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.

  6. plugger2
    Member
    Posted 1 year ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic