I may have missed a plugin that could do this or it maybe custom work
The end result required is that when listing a product via woocommerce that each group that the member is part of, would be available as a checkbox or user list for selection to directly send email notification when the woo product is published.
So I as a member have 3 groups that I would like to inform about a product I’ve listed, hope that make’s sense
If I’ve posted in the wrong group please advise
Thanks
Hi,
Welcome to BuddyDev forums.Thank you for the question. It seems to me the most appropriate channel for adding this feature will be WC Vendors as you are using them for creating products from front end.
Please contact their support and request for the same.
Regards
BrajeshHI,
Thank you for the reply.If you are looking for code to list user’s group, It will be on the following line if you know the user id.
$user_groups = groups_get_user_groups( $user_id ); foreach ( $user_groups['groups'] as $group_id ) { $group = groups_get_group( $group_id ); echo esc_html( $group->name ); }
You can add a meta box for the woo product post type and replace $user_id with get_current_user_id() to have it available on the product screen.
Regards
Brajesh
You must be logged in to reply to this topic.