I am trying to add a dynamic field on WooCommerce -> Settings -> Products -> My Settings
page
I follow this tutorial but its does not help in what I want to achieve.
http://docs.woothemes.com/document/adding-a-section-to-a-settings-tab/
I want to achieve something like this.
Because I have the time, I have created you an example…
you can find it here:
woocommerce-woorei-dynamic-section-fields.php
just upload it on your plugins folder then activate to test.
You can edit it for your needs.
for reference or to give you a hint, you can look for this files.
in my plugin line 58, take note of the
type
andid
. actuallyid
here can be anything other than empty string.take note also on the functions that comes next to it. Look at the names to get the idea.
then at woocommerce folder, take a look at this.
woocommerceincludesadminclass-wc-admin-settings.php
line 618woocommerceincludesadminclass-wc-admin-settings.php
line 712