Blog

Product Sorting Options

This is a complete tutorial about product sorting options in WooCommerce.

I will show you how to hide some specific options, rename them, change the order options are being displayed and of course we are going to add our own custom product sorting.

You can find product sorting dropdown on the shop page or in the product archives.

Product sorting dropdown in WooCommerce
Product sorting options

Remove Dashboard from My Account Menu

I have a detailed tutorial about my account menu in WooCommerce on my blog and there you can find a chapter about removing menu links.

But the thing is that you can not just remove any link that easy. The problems may appear if you would like to remove “Dashboard” from my account menu.

So our goal for this tutorial is not only to remove a “Dashboard” menu link but also to perform a redirect to the next menu link. It is “Orders” by default.

I hope it is crystal clear why we need a redirect. Let’s imagine a situation when a customer signs in to your WooCommerce website. What My Account page will be displayed by default? Right. Besides, wp_get_page_permalink( 'myaccount' ) is probably used in your theme files, this function also sends users to the Dashboard page! So I think it is not enough just to redirect users after signing in, we should redirect them every time they are trying to access the Dashboard.

Remove Dashboard from my account menu in WooCommerce
“Orders” page will be opened by default every time customers go to “My account”.

How to Remove Result Count

In this tutorial I will introduce two ways of how to remove “Showing X of X results” or “Showing the single result” text from WooCommerce product archive pages.

Example of what we going to remove is on the screenshot below.

removing result count in WooCommerce

Template Files for Product Category and Product Tag Pages

What PHP file does WooCommerce Shop Page use?

How to Hide Out of Stock Products

By default, when a product is out of stock it is still going to be displayed on your shop and product archive pages and there is going to be “Read more” button instead of “Add to cart”, like this:

Out of stock items are displayed by default

But if you are reading this, I suppose you do not want them to be displayed, right? ;)

Change Related Products Text