Adding a section to the WooCommerce settings ‘Shipping’ tab
-
Your article on “Adding a Section to Settings Tab” (located here: Adding a section to WooCommerce settings tab ) is excellent and easy to follow. It shows how to add a custom section in the WooCommerce Settings -> Products tab. It also explains that you can add custom sections to other tabs by using the appropriate filter name.
However, this does not appear to work if you add the custom section under the “Shipping” tab
The sample wcslider code includes;
add_filter( 'woocommerce_get_sections_products', 'wcslider_add_section' );
I changed to:
add_filter( 'woocommerce_get_sections_shipping', 'wcslider_add_section' );
and ;
add_filter( 'woocommerce_get_settings_products', 'wcslider_all_settings', 10, 2 );
I changed to:
add_filter( 'woocommerce_get_settings_shipping', 'wcslider_all_settings', 10, 2 );
With these two minor changes to the sample wcslider code provided in the article I had the custom section appear under the “Shipping” tab, but when clicked it appears blank. Only a “Save Settings” button appears and no settings.
Is this a bug in WooCommerce?The page I need help with: [log in to see the link]
- The topic ‘Adding a section to the WooCommerce settings ‘Shipping’ tab’ is closed to new replies.