Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Problem with existing customer
- This topic has 3 replies, 2 voices, and was last updated 4 years, 9 months ago by Ramamurthy Krishnan.
- AuthorPosts
- February 17, 2020 at 10:44 pm #107493rodmontgtParticipant
the problem is that each vendor has their own customers but if another vendor wants to add a customer with the same email the system gives an error saying that the email already exists, so the vendor cannot add that customer neither select it because isn’t its customer
- February 19, 2020 at 5:36 pm #107859Ramamurthy KrishnanKeymaster
Hi,
Please add the below code to your child theme’s functions.php file. If you are not using any child then use “Code Snippets” plugin to add this code.
add_filter( 'wcfm_get_customers_args', 'cus_wcfm_get_customers_args', 10, 3 ); function cus_wcfm_get_customers_args() { $args['role__in'] = array( 'customer' ); $args['include'] = ''; return $args; }
Thanks,
- February 21, 2020 at 4:08 am #108104rodmontgtParticipant
Thanks for the code, now the problem is that all vendors can see the customers of everyone, I don’t know if there is a way link an existing customer to a vendor that doesn’t have that customer in its list, if not I would like to know how to hide email address from the customer view
- February 22, 2020 at 12:00 am #108243Ramamurthy KrishnanKeymaster
Hi,
Please add the below css code in your theme’s style.css file to hide email address from the customer view.
#customers_details_general_expander .user_email, #customers_details_general_expander #user_email { display: none !important; }
Thanks,
- AuthorPosts
- You must be logged in to reply to this topic.