Before you ask please READ THIS

add sort option in woocommercre

in FatMoon Posts: 124
Hi,
How can I add a drop-down menu in the shop page to allow customers to sort by high to low, low-hight, etc...

Comments

  • AirAir
    Posts: 10,970
    Hey :-)

    I am not sure why we have removed ordering, but it must have been long ago...

    It is time for its return.

    Please go to fatmoon\advance\utilities\woocommerce.php line ~547
    and remove below code
    //remove ordering
    remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
    I will also add option for this in the next update.

    Thanks for asking!

    With kind regards.
  • Posts: 124
    Hi,
    I got this message upon updating. "Scrape nonce check failed. Please try again."
    And now that file fatmoon/advance/utilities/woocommerce.php is empty and my site is down.

  • Posts: 124
    I reinstalled theme to bring the site back up and tried it again. same situation.
  • AirAir
    Posts: 10,970
    It doesn't seem like connected to the change.
    After reinstall you have again removed above mentioned code?

    With kind regards.
  • Posts: 124
    Yes, I tried removing the above code. Same message "scrape nonce check failed" then the site is down. Thanks
  • AirAir
    Posts: 10,970
    It seems like it could be connected to some cache issue. Check this topic for example https://wordpress.org/support/topic/scrape-nonce-check-failed-please-try-again-when-editing-functions-php-2/

    There are few mentions about it across the internet.
  • Posts: 124
    Heyoo! yes, you are right. It was WP cache plugin. Now, can I edit the drop-down menu to exclude "sort by rating", sort by popularity" and sort by the latest"?
  • AirAir
    Posts: 10,970
    Hey :-)

    I know there are some plugins that enable some changes in this menu.
    Like this one https://wordpress.org/plugins/woocommerce-extra-product-sorting-options/

    With kind regards.
  • Posts: 124
    Hey,
    This worked very well. Thank you!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion