Adding settings under a new section under Checkout
-
I’ve followed this guide, and it works like its supposed to.
https://docs.woothemes.com/document/adding-a-section-to-a-settings-tab/But I would like to add the section and settings under Checkout instead of Products. I’ve managed to add the section, but I can’t get the settings to show. I suppose it’s because I use the wrong filter, but I can’t find any documentation telling me the names of the filters for those tabs.
This is the filters that I’m using:
add_filter( 'woocommerce_get_sections_checkout', array($this, 'pickup_time_add_section')); add_filter( 'woocommerce_get_settings_checkout', array($this, 'pickup_time_options'), 10, 2);
If I change “woocommerce_get_sections_checkout” to “woocommerce_get_sections_products” and “woocommerce_get_setings_checkout” to “woocommerce_get_settings_products”, both the section and settings shows fine under “Products”
Thanks in advance
- The topic ‘Adding settings under a new section under Checkout’ is closed to new replies.