select option populated with DB table values
-
I’ve just started working with WordPress and i’m still trying to figure out how some things work. During the developing process i’ve found the necessity of populating an select option (dropdown field) with values that can only be found on an specific wp table (wp_usermeta).
It should work like this:
The user has some extra information registered on wp_usermeta on the registration process, they are son_1, son_2. What I wanna do is: when the user select an product, he must define who is the product for (son_1 and son_2) and that information will be necessary to register the purchase itself.
I’m using the plugin wc_fields_factory to add that select option field to my product page and i’d like to change the plugin to show information from the table instead of default values.
I’d like to change the funcionality of the plugin instead of creating the field manually in order to use the other functions that that plugin has.
If some of you could help me with that, i’d be really thankful.
I couldn’t find much information about it on internet in general.
Thanks a lot lotI’m using wordpress 4.9.3 and woocommerce plugin, with storefront template.
- The topic ‘select option populated with DB table values’ is closed to new replies.