Home Forums Plugin Support WP User Frontend Pro automatically add product attribute (woocommerce)

This topic is: resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Nayem 4 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #30219

    Post count: 10

    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?


    Post count: 6480

    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 2 posts - 1 through 2 (of 2 total)

The topic ‘automatically add product attribute (woocommerce)’ is closed to new replies.