Home Forums WoodMart support forum Dynamic Display of WooCommerce Tabs

Dynamic Display of WooCommerce Tabs

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #714935

    selqs
    Participant

    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.

    #714992

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Try to use WoodMart Custom Tabs instead of Elementor tabs. WoodMart already has built-in Conditions, which is exactly what you need.

    Navigate to Products > Custom Tabs > Edit your tab and set the display condition.

    Please check this manual: https://xtemos.com/docs-topic/custom-tabs/

    If you have any questions feel free to contact us.

    Best Regards

    #714994

    selqs
    Participant

    Hello, I’m aware of the setting you mentioned. However, that setting only allows us to control visibility conditionally in areas like products or categories.

    What I’m referring to is adding a custom tab next to the existing tabs such as “Description” and “Additional Information” on the product page. This custom tab should only be displayed if it has content for that specific product; otherwise, it should remain hidden.

    In other words, I’m talking about a structure similar to the product-specific “custom tabs” field in a metabox.

    As shown in the screenshot, the custom tabs section appears on the product page only when it contains content. I would like to make this functionality available globally across the site.

    #715031

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Sorry, but there is no option in Theme Settings available for that.

    It requires customizations, and this is beyond our limitations and support policy.

    Regards.
    Xtemos Studios

Viewing 4 posts - 1 through 4 (of 4 total)