PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Can i have same settings for all users.

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi, i want all users to have the same settings as administrator. I have made a good arrangement as administrator and i want it to be applied for all shop managers also. I tried making some changes in profiles.php with no luck. My untouched code is below. Can you help me? what do i have to change in this code?

public function __construct($settings) {

// $this->option_key .= get_current_user_id(); //we need do this to divide different users options set
$this->settings = $settings;
$sync_profiles = $this->settings->sync_profiles;
$user = get_userdata(get_current_user_id());
$user_roles = $user->roles;
if (!in_array('administrator', $user_roles, true) && $sync_profiles) {
$this->option_key .= 'shop_managers';
} else {
$this->option_key .= get_current_user_id();
}

I also want future changes in administrator view of the plugin to sync for shop managers

Hello

you don't need to change the code, just use this option - https://share.pluginus.net/image/i20221005102436.png

Does it take time to sync profiles between users? Because i checked it and nothing happened yet

Hello

only new profiles will be synced, so  create a  new one

ok thanks

Welcome;)