BuddyDev

Search

Buddyboss – Woocommerce – WCVendors

  • Participant
    Level: Initiated
    Posts: 1
    SMS on #41008

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 24850
    Brajesh Singh on #41009

    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
    Brajesh

  • Participant
    Level: Initiated
    Posts: 1
    SMS on #41024

    Brajesh thanks for the response

    Let me rephrase, is it possible to have groups available in a woocommerce product

    So I as a member have 3 groups that I would like to inform about a product I’ve listed

    I can deal with the WCVendors dash as a separate issue

    Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24850
    Brajesh Singh on #41030

    HI,
    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.

This topic is: not resolved