How to change “Sorted by” filter
-
Hello Team,
I want to change the sorted by filter on my shop page and all attribute page. They are looking like:
Popularity
Average rating
Newness
Price: low to high
Price: high to low
However, we want them to be:
Relevance
Latest (Newest – Oldest)
Latest (Oldest – Newest)
Name (A – Z)
Name (Z – A)
Price (Low – High)
Price (High – Low)
Let me know how can we implement this on woodmart theme.
I have attached the current one and inspiration one.
Attachments:
You must be
logged in to view attached files.
Hello,
In WooCommerce (and WoodMart) the “Sort by” dropdown is controlled by WooCommerce itself. WoodMart only styles it.
To change the options as you want, you must filter woocommerce_catalog_orderby in your theme using some Custom Code.
By default, the options are under Appearance > Customize > WooCommerce > Product Catalog > Sorting Options from where you can select the sorting method you prefer: https://ibb.co/CK9TQdd
Best Regards,