A
A
Anna Chumachenko2018-04-19 14:31:30
WordPress
Anna Chumachenko, 2018-04-19 14:31:30

How to remove the default Woocommerce category?

If I don’t need a category at all on some products, how can I disable the assignment and display of the category by default? (And also, if you know how to do it, if I don’t need a price for a certain product, it goes on order, I remove the price, there is no buy button, how can I make it possible to order without showing the price for some product?)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Orkhan Hasanli, 2018-04-20
@Againts7

Hello!
The answer to your first question is https://calebburks.com/hide-uncategorized-default-...
you can download a plugin that will "hide" the default category.
The answer to your second question is you need plugins like Pre Order.
https://wordpress.org/plugins/yith-pre-order-for-w...
https://woocommerce.com/products/woocommerce-pre-o...

Y
Yan Alexandrov, 2020-10-22
@YanAlexandrov

Although late, but still, suddenly someone will come in handy. Can be done with a hook:

add_filter( 'option_default_product_cat', function( $value, $option ) {
  return false;
}, 9999, 2 );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question