Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #490509

    WP 4.3 and Enfold 3.3: Woo Tab Manager is not overriding default tabs again. I tried the “on” to “yes” fix from earlier versions but it is still not working. Product specific tabs do not show on product pages.

    • This topic was modified 9 years, 4 months ago by therecordist.
    #490538

    Found my fix: Also had to change this:
    Change yes to on.

    wp-content/plugins/woocommerce-tab-manager/woocommerce-tab-manager.php
    From:
    if ( ‘yes’ == $override_tab_layout ) {
    // product defines its own tab layout?
    $this->product_tabs[ $product_id ] = get_post_meta( $product_id, ‘_product_tabs’, true );
    To:
    if ( ‘on’ == $override_tab_layout ) {
    // product defines its own tab layout?
    $this->product_tabs[ $product_id ] = get_post_meta( $product_id, ‘_product_tabs’, true );

    Also:
    /wp-content/plugins/woocommerce-tab-manager/admin/woocommerce-tab-manager-admin-functions.php and look for this line 102:
    <label for=”_override_tab_layout”><?php _e( ‘Override default tab layout:’, WC_Tab_Manager::TEXT_DOMAIN ); ?></label> <input type=”checkbox” name=”_override_tab_layout” id=”_override_tab_layout” <?php checked( $override_tab_layout, “yes” ); ?> />

    Replace it with:
    <label for=”_override_tab_layout”><?php _e( ‘Override default tab layout:’, WC_Tab_Manager::TEXT_DOMAIN ); ?></label> <input type=”checkbox” name=”_override_tab_layout” id=”_override_tab_layout” <?php checked( $override_tab_layout, “on” ); ?> />

    #490814

    Hey!

    Glad you figured it out and thank you for sharing your solution! :)

    Best regards,
    Yigit

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.