• Resolved giannisdigitup

    (@giannisdigitup)


    Hello,

    We are facing some issues with a site that appears to be a general WooCommerce problem. Apparently you can not edit the Privacy Policy page if you are logged in as shop manager and I would like to ask if the plugin has a feature to edit the shop manager role and allow this role to edit this page.

    Also elementor has a bug which causes a page’s content to brak if a shop manager edits it and the page contains a sticky container. Is the plugin compatible with elementor? Will it fix this issue?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Omar ElHawary

    (@omarelhawary)

    Hi @giannisdigitup,

    Thanks for reaching out Members Suppoprt Team!

    That’s more related to WooCommerce that limits capabilities of role.

    Regarding Elementor issue, please share a screenshot of the issue so I can check.

    Regards,

    Thread Starter giannisdigitup

    (@giannisdigitup)

    Hello,

    I have logged in as a shop manager and I can not edit the Privacy Policy page. It is is greek but the translation is Privacy Policy.

    https://prnt.sc/rbD92gwVJAFy

    Thanks!

    Plugin Support Omar ElHawary

    (@omarelhawary)

    As described in this article, please add this code to theme functions.php file and let me know if it helps.

    add_action( 'map_meta_cap', 'custom_manage_privacy_options', 1, 4 );
    function custom_manage_privacy_options( $caps, $cap, $user_id, $args ) {
    if ( ! is_user_logged_in() ) {
    return $caps;
    }

    $user_meta = get_userdata( $user_id );
    if ( is_array( $user_meta->roles ) && array_intersect( array( 'shop_manager' ), $user_meta->roles ) ) {
    if ( 'manage_privacy_options' === $cap ) {
    $manage_name = is_multisite() ? 'manage_network' : 'manage_options';
    $caps = array_diff( $caps, array( $manage_name ) );
    }
    }
    return $caps;
    }

    Regards.

    Thread Starter giannisdigitup

    (@giannisdigitup)

    I am aware of this snippet. It is a solution we consider to use if we do not find a suitable plugin.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.