Adding new tabs and disabling default ones
-
I need to add two new tabs to my products and remove the default tabs.
For the latter problem I’m using Tab Manager extension.
To add new tabs I’m using the following the following snipped with WooCommerce 2.02:
function sg_woocommerce_map_tab() { echo '<li><a href="#tab-new">' . __( 'My tab label', 'mytextdomain' ) . '</a></li>'; } add_action( 'woocommerce_product_tabs', 'sg_woocommerce_map_tab', 40 ); function sg_woocommerce_map_panel() { require_once TEMPLATEPATH . 'parts/map.php'; // I've tried also with include or commenting out the above line or using other code, no change in my issue } add_action( 'woocommerce_product_tab_panels', 'sg_woocommerce_map_panel', 40 );My issue is that, using the code above I get an infinite loop for the tab I’m trying to add on the product page. On the Tab Manager admin page (the third one, to select default tabs) I get a 404.
Tried to contact WooCommerce support but after 13 days I’m still stuck.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Adding new tabs and disabling default ones’ is closed to new replies.