automatically add product attribute (woocommerce)

This topic contains 1 reply and 2 voices, and was last updated by Nayem 9 years, 5 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
November 11, 2014 at 8:02 pm 30219
Nayem on my products, I would like to show the username( as well as a link to their profile, but that is separate).I have accomplished this using the username as an attribute on the product, except I can only add it to the product with a dropdown select list(exclude get_current_user_id()). I cant seem to find a way to have the field hidden and still select the default value it returns. If i add a hidden field, no attribute shows up, and if I add the username taxonomy and use conditional logic to keep it hidden, nothing will automatically assign the attribute. any suggestions?
November 12, 2014 at 3:02 pm 30269
Nayem Nayem

Hello Collin,

Working with product variation through WPUF is not possible.

If you want to show the user name who uploaded the product, you can use get_the_author(); function in your theme. To know more about this function, you can read this doc http://codex.wordpress.org/Function_Reference/get_the_author

Viewing 1 Posts - 1 through 1 (of 1 total)