Hide vendor’s email

WCMp Advanced Frontend Manager

Resolved
Viewing 7 reply threads
  • Author
    Posts
    • #115486

      Hello, how can i let the vendors choose if they want their email to appear on their store profile?
      some vendors do not want their email to be visible to clients

    • #115504

      Hi,
      Please add this code in the function.php of the current active theme :

      add_filter('wcmp_vendor_store_header_hide_store_email', 'wcmp_remove_vendor_email_from_store',10, 2);
      function wcmp_remove_vendor_email_from_store( $return, $vendor_id){
      	$vendor_array = array(2, 3);// Enter vendors id for hide email sapareted by comma.
      	if(in_array($vendor_id, $vendor_array)){
      		$return = true;
      	}
      	return $return;
      }
      Copy

      Regards,

    • #115506

      Thank you!
      will this allow the vendor to select whether or not he want to show his email on his page banner?

    • #115562

      Hi,
      As per your requirement you have to add custom code for your end using the above filter.

      Let me know if you need any hook and filter for vendor dashboard set field for this functionality.

      Regards,

    • #115672

      A set field would be amazing,
      Is it possible to have a checkbox near the email of the vendor?
      [] show email on store profile

      Thank you for your continuous support!

    • #115723

      Hi,
      you can set a checkbox under the vendor dashboard >> store settings >> store front using below hook

      do_action('wcmp_after_shop_front');
      Copy

      and then save this field using below hook

      do_action('before_wcmp_vendor_dashboard');
      Copy

      then you have to use below filter to hide the email on vendor shop page.

      wcmp_vendor_store_header_hide_store_email
      Copy

      Regards,

    • #115829

      Thank you!

    • #115843

      Thank you for the update. We are closing the ticket now. In case any issue arises kindly raise a new ticket.

Viewing 7 reply threads

The topic ‘Hide vendor’s email’ is closed to new replies.