WooCommerce Product Category glitch

I was adding conditions to a display box to not display when a product is only one of a few categories. I noticed that everything hid, so I tried hiding when the product was not the other categories, which still didn’t work.

I went to add the Product Category field to the product listing to see what the error was and noticed that Product Category doesn’t display when trying to add custom values (see screenshots).

So, not only is Product Category not available to post as a custom field, but there appears to be a disconnect from the Product Category all together.

I noticed several other posts regarding Woo issues, but didn’t find one that covered this topic.


Hello @splaquet,

Thanks for writing to us

As per your screenshot, it looks like you are using the AND operator. I would suggest using the OR operator in your conditions and then checking again.

Thanks

it is using OR. it was hiding behind the dropdown. additionally, I started with a single Condition of Product Category = Generators (which wasn’t working).

Hello @splaquet,

In order to help you with your concern, please share your details in a secure note. Please provide the following details

  • WordPress Login URL
  • Admin-level username and password
  • Exact page URL

You can find the Secure Note button at the bottom of your posts

Thanks

note has been added

Hello @splaquet,

It looks like you’re trying to set a condition on an element within the Component.

I would suggest selecting the Element → Customize → Conditions and setting the condition to:

Post (Has Term) Has Not [Select Your Category]
OR
Post (Has Term) Has [Select Your Category]

Please make sure your specific category is selected from the dropdown. You can refer to the screenshot below for the correct settings.

Hope it helps
Thanks