Problem with existing customer

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM Problem with existing customer

Viewing 3 reply threads
  • Author
    Posts
    • #107493
      rodmontgt
      Participant

      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

    • #107859

      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,

    • #108104
      rodmontgt
      Participant

      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

    • #108243

      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,

Viewing 3 reply threads
  • You must be logged in to reply to this topic.