• Resolved bertvanderhooft

    (@bertvanderhooft)


    L.s.

    I see with a variable product an additional tab with the variation. I don’t want to have this tab. Howto get rid of that tab?
    Bert

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi Bert,

    I’m not sure which tab you’re talking about, but it is most likely a WooCommerce default tab and not something added by our plugin. Could you provide a URL for a variable product so we can check it out?

    Thanks,
    Kevin.

    Thread Starter bertvanderhooft

    (@bertvanderhooft)

    Hi Kevin,

    It’s a woocommerce tab “Additional Information”.

    The instruction on https://docs.woocommerce.com/document/editing-product-data-tabs/ didn’t work.

    What worked was to change the sequence of that instruction. First the function. Secondly the filter:

    // Remove the additional information tab
    function woo_remove_product_tabs( $tabs ) {
    unset( $tabs[‘additional_information’] );
    return $tabs;
    }
    add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tabs’, 98 );

    It works nicely, combined with the reordering as described in te before mentioned woocommerce page.

    Tip: put it in your knowledge base 😉

    Best regards

    Bert

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Variable products’ is closed to new replies.