In order to post, you must be logged in and have a membership.

Home Forums Woocommerce Empty category


Viewing 1 reply thread
  • Author
    • #2177
      Daren Morreale

      I created the menu to have categories in a drop-down menu. It shows every category whether it has a product in it or not. The problem is when someone selects an empty category it shows the archive and nothing else except the WPGridbuilder filter. Is there a way to get it to show random products and include a message that says something like "You choice has no results, please take a look at these items, or return to the main shop page" with a link.

    • #2180

      Hi Daren,

      That's a really interesting one and I think right now it'll have to be done with a custom query because you need it to essentially check that the product count is greater than 1.

      Something like show category if not empty. I will think on that one

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram