Vendor mail conflict

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!

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #119794
      vitaly
      Participant

      Good day!

      When the Vendor installs its mail other than a woocommerce account. Vendors orders made as a client of the Marketplace, confirmation of password changes, etc., come to the mail installed in WCFM.

      Tell me how to prevent the Vendor from changing the mail in Store Settings WCFM. And, if possible, how to forcibly set the mail of a woocommerce account as the mail of a Vendors’s Store.

      Thank You!

    • #121821
      Sushobhan
      Keymaster

      Hi,
      To prevent vendors from changing store email use the following snippet-

      add_filter('wcfm_marketplace_settings_fields_general', function($field) {
          if(isset($field['store_email']) && !current_user_can('administrator')) {
              unset($field['store_email']);
          }
          return $field;
      });

      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
      Let me know how it goes.
      Thanks!

Viewing 1 reply thread
  • You must be logged in to reply to this topic.