Checkout the content-single-product.php
WooCommerce template for an idea of what functions are hooked where. It is very well commented.
The following should remove the additional info from the tabs:
add_filter( 'woocommerce_product_tabs', 'wpa_116999_remove_info' );
function wpa_116999_remove_info( $tabs ){
unset($tabs['additional_information']);
return $tabs;
}
And then wherever you’d like to add the Additional Info you’ll just need to called the woocommerce_product_additional_information_tab()
function. I wouldn’t bother registering a widget. Depending on your theme you can either add it to a relavent hook in your functions.php, or create a child theme and paste it directly into sidebar-shop.php
or sidebar.php
. It is hard to be precise on this point because every theme is so different, but that’s the general idea.
In your functions.php, editing the fictional sometheme_before_sidebar
hook to an appropriate hook for your theme:
if(function_exists('woocommerce_product_additional_information_tab'))
add_action('sometheme_before_sidebar', 'woocommerce_product_additional_information_tab');
or directly in the child theme’s sidebar.php file:
if(function_exists('woocommerce_product_additional_information_tab'))
woocommerce_product_additional_information_tab();