Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Vendor mail conflict
Tagged: Vendor`s Mail
- This topic has 1 reply, 2 voices, and was last updated 4 years, 6 months ago by Sushobhan.
- AuthorPosts
- April 16, 2020 at 7:19 pm #119794vitalyParticipant
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!
- April 22, 2020 at 6:15 pm #121821SushobhanKeymaster
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!
- AuthorPosts
- You must be logged in to reply to this topic.