Hello,
I added a metabox field to WooCommerce products using ACF. This field appears for all products, but the content is different for each product; some products don’t have any content.
Here’s what I need: I can display the ACF field data in the product tabs using Elementor and Custom Tabs. However, for products without content, the tab appears empty. I want to make this dynamic—if the product’s ACF field has content, the tab should show; if it’s empty, the tab should not appear.
The Woodmart theme handles this well: in the product edit panel under “Tabs,” if you fill the field, the tab appears; if left empty, it doesn’t show. I want the same functionality.
While it’s possible to manually fill content for each product, I’m looking for a global solution that covers the ACF fields I’ve created. I want it to work the same way for all products.
Thanks.