Thank you for the quick answer. I already had a product category selected in the Category section of the git card product. But when I do a get_the_terms($product->get_id(), 'product_cat')
I get an empty string.
Anyway, it’s not blocking in any way, so I’ll mark the topic as resolved ??