Set different “products per page” number for specified WooCommerce Category

You might want to get different product per pages for each category.

For example for Phones category, you want to display 10 phones per page, for Furniture, you want only 4 products per page, for Accessories, you want to display 100 products per page.

To achieve that is easy, here is how:

Continue reading “Set different “products per page” number for specified WooCommerce Category”

Remove pagination trails from WooCommerce Breadcrumb

Today i am sharing small snippet that removes Pagination Trail from WooCommerce breadcrumbs.

Some shop owners may dislike this built-in feature and would like remove WooCommerce pagination links from WooCommerce navigation breadcrumb.

First let’s see how is before-after state of this change.



Now let’s write a snippet for that:

Continue reading “Remove pagination trails from WooCommerce Breadcrumb”

Make your WooCommerce search smarter and increase your conversions & sales

Plugin Description

Most WooCommerce store owners just ignores their website’s search section and lose a lot of potential customers due to this. That’s why they keep their theme’s poor search module unchanged. Or in best case they use simple live ajax search, which is not much effective and which is really slow.(in each simple typing a website sends request to server, then server processes the query and returns the needed results)

But E-Commerce search module should be fast, smart, effective and interactive. It should be some kind of bot-assistant which offers your products to customers with all possible ways. It doesn’t matter what they types – search module should recognize their typed words, analyize it, correct it if there is any misspelling and finally suggest related products.
Even if there is no any related product, it should offer some popular items in website – may be a visitor would like to purchase.

WooCommerce Search Box plugin does exactly so. It has unique search algorythm which works at both front-end and backend sides.
When user types something – related products appear lightning fast, without ajax server request. Everything works so fast.

And then, if the visitor makes a typo misspelling, the plugin recognizes it with similarity algorithm and gives the results for auto-corrected keyword.
What happens when a visitor presses enter and leaves the window with live search suggestions. Backend search results comes from theme’s backend code, that’s why it is not smart and it can not show same smart results which was available in live suggestions box. And that would be bad. That’s why WooCommerce Search Box filters backend results with WordPress hooks and forces website to show same smart results with live suggestions box, which is really great.

Or what if a visitor types synonym word instead of the one in product name? (for example, a visitor can type bike instead of bicycle.) You see, there are so many cases where we lose potential customers and their purchases via poor search results. That’s why e-commerce search module should be as much better as it is possible.


  • Same smart search results at live front-end and back-end sides.
  • Typo correction – showing products by auto-corrected keyword if there is a misspelling.
  • Search by Stock Keeping Unit (SKU).
  • Search by custom fields, attributes and description alongside with product title.
  • String Multi-Sequence Checker (It checks all possible combinations of typed keywords).
  • Featured Products at start window.
  • Some custom helper or welcome message at start window.
  • Suggested some popular products when “no results found” appears.
  • Personalized “last visited” products block.
  • Search by similar, synonym words.
  • Search Analytics Admin Page – which collects search keywords and shows useful data charts.
  • Search by Product Category.
  • Supporting all languages and UTF-8.
  • Converting special letters (f.e. é,ç) if a visitor typed similar ones (f.e. e,c)
  • Showing correct prices after all possible active taxes or just without taxes.

Download WooCommerce Smart Search Plugin now

Amazon like Last Visited Products for WooCommerce

2 days ago we, Totheme Labs team released new plugin for WooCommerce, called “Recently Viewed Products for WooCommerce”.

It is beautiful product history plugin for WooCommerce. Shop owner can create separated page, widget, footer popups to display this data to his customers.

Once it is activated, it collects the customer visit data, and shows his history as beautiful charts.

The solution would be useful for shop owners who want to increase sales at their WooCommerce Store.

For example, has been successfully used similar module  in the latest several years. recently viewed products module.

So if you are WooCommerce shop owner, you can easily get similar solution for your web store.

Get the plugin now

Make any search form to take a visitor to WooCommerce Search Results page instead of default WP Search Results page

Usually WooCommerce themes have their own search forms, from simple “input-submit” to advanced “input-filter1-filter2-…-checkbox1-submit” ones.

But sometimes shop owners meet a such problem: Their search form takes the visitor to WP search results page instead of WooCommerce rich search result one.

What is the difference between these two results page?

WP Search results page is simple – it shows all results (in most cases its UI has simple bloggy style, and yeah, bloggy view in WooCommerce search is not suitable UI)

WooCommerce Search Results page is more complitated – Usually it has a product category, parameter filter at sidebar, and its UI is not bloggy, it has normal grid which is important for product view.

woocommerce search results bloggy view

Why does it happen? It happens only when there is missing post_type parameter in url.

When search form submit takes you to  it will show you default WP search view. When search form submit takes you to it will show you correct UI. Normal shop search results page.

So we just need to add missing parameter to search forms, and everything will be ok.

To add this we need very simple script at the footer.

P.S. You may also want to have smart search suggestion box to the WooCommerce with this plugin.

Check if some plugin installed & active or not

If you want to check this inside the some hook, which runs after plugins_loaded hook, it is very simple. Just check some plugin specific constant or function exists or not.
For example, to check WooCommerce we will need to check any WOO constant is defined or not. Or it is enough to check if class WooCommerce exists or not.

Check if WP plugin installed & active?

But what if you want it to check it before the plugins loaded? In this case you will not be able to check some constant,function, class of the plugin is defined or not, because they are not loaded yet. So we will need some additional trick for that. We can check $wpdb->options table and get the list of active plugins, process it and get the results. Let’s see how it works.