orry my question was not clear. I have different category and sub-category.Each categories has sub categories ie.
I would like to display the widget when this category or their children are selected in the menu.
I have tried this but doesn't work
is_product_category( array( 'care-cosmetic', 'household', 'savoury', 'sweet' ) )
Thanks for helping