• Resolved todcan

    (@todcan)


    Not sure if this is intended permissions
    I found that after updating to Version 18.8, I must be WP user level “Administrator” to save Product Meta Basic Settings.
    If I am logged in with WP user level “Shop manager”, then I can edit fields but the “Save fields” Button never saves just shows spinner gif

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    Yes, we have restriction so only can save settings using following script:

    if( ! current_user_can('administrator') ) ...

    Where does this go? and where is the script, I also need this asap

    It would be a great option to add a setting in ppom to allow shop managers access and not only admin, a tick box somewhere to allow shop managers, would it be possible to add this to the next update Najeeb?

    Thanks Neil

    Hi @nellybongo,

    Yes, it is good have such feature to change permissions via PPOM setting for PPOM settings.

    Hi Najeeb,
    As Administrator, I have added ‘Shop Manager’ to PPOM Permissions in PPOM settings as you mentioned above, however I still cannot edit anything PPOM as ‘Shop Manager’. I can only select a PPOM Meta Group item that has been previously created for a product. Any idea why adding Shop Manager did not work?
    Thanks, Pat

    The fix for this is stupidly simple, although I had to dig through the plugin to find it.

    Add the following line to your functions.php file (theme or plugin, shouldn’t matter):
    add_filter('ppom_menu_capability', function () {return "manage_woocommerce";});

    Line 84 of [plugin folder]/classes/admin.class.php uses that filter to determine what capability is required to access the menu.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘“Shop manager” cant edit/save settings’ is closed to new replies.