• Resolved azalbert

    (@azalbert)


    Hi,

    I encounter a problem with last version of woocommerce under wordpress 5.4.2 : the menu marketing isn’t viewable by users who have only shop manager role.
    Furthermore the coupon menu under woocommerce desappeared so the user can’t edit coupon.

    If i go to the URL /wp-admin/edit.php?post_type=shop_coupon&legacy_coupon_menu=1 i can edit coupon but there is nothing in the menu.

    How solve this and get the link in the menu for shop manager ?

    Thank you.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Any solution for this? I have exactly same problem. Quite annoying…

    Thread Starter azalbert

    (@azalbert)

    Hi,

    I’ve just put the last version of woocommerce and the problem isn’t solved.

    Could you add the menu for shop manager role ?

    Thank you

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @azalbert and @formulaclick, is the issue resolved for you now? What version of WooCommerce and WordPress do you have installed? I was running WooCommerce 4.6.2 with WordPress 5.5.3 before I updated to 4.7.0. In both WooCommerce 4.6.2 and 4.7.0, the shop manager role is able to access the Marketing menu. Have you made any customizations to the role?

    aiacPL

    (@aiacpl)

    Same problem here – we have custom role and everything worked fine. Now we have no link in menu. We tried with those caps, without luck:

    
        $role->add_cap("edit_others_shop_orders");
        $role->add_cap("edit_shop_order_terms");
        $role->add_cap("edit_shop_orders");
        $role->add_cap("read_shop_order");
        $role->add_cap("manage_woocommerce_coupons");
        $role->add_cap("edit_shop_coupon");
        $role->add_cap("read_shop_coupon");
        $role->add_cap("delete_shop_coupon");
        $role->add_cap("edit_shop_coupons");
        $role->add_cap("edit_others_shop_coupons");
        $role->add_cap("publish_shop_coupons");
        $role->add_cap("read_private_shop_coupons");
        $role->add_cap("delete_shop_coupons");
        $role->add_cap("delete_private_shop_coupons");
        $role->add_cap("delete_published_shop_coupons");
        $role->add_cap("delete_others_shop_coupons");
        $role->add_cap("edit_private_shop_coupons");
        $role->add_cap("edit_published_shop_coupons");
    

    If we use link provided by @azalbert we can edit coupons

    Thread Starter azalbert

    (@azalbert)

    hi,

    same problem with WordPress 5.4.4 and woocommerce 4.7.0
    We are using user role editor to modify role of users. So a user can be editor and shop manager, but we don’t modifiy capabilitys of each role.

    Sylvian

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @azalbert. If you deactivate the extension used to modify user roles, can the Shop Manager manage coupons as expected? Likewise, @aiacpl. I’m interested in if the core WooCommerce plugin works as expected when any customizations are disabled. This will help to narrow down the source of the issue, and if it’s caused by a plugin conflict.

    Thread Starter azalbert

    (@azalbert)

    Hi,

    Even if i deactivate plugin User Role editor, Markteting Menu is not showing.

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @azalbert. What if you create a new user with the Shop Manager role with the User Role editor plugin deactivated? Does that user then have the Marketing > Coupons menu item?

    I created a new user with the shop manager role on my site and these are the menu options:

    If you are seeing something different, I recommend conflict testing as explained in this guide.

    Thread Starter azalbert

    (@azalbert)

    Hi, i’ve tested it the last time, but the menu isn’t showing.

    I will test to see where is the conflict and i come back here.

    Thank you

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @azalbert. How did you tests go? Were you able to resolve the issue?

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @azalbert. We haven’t heard from you in a while so I’m going to go ahead and mark this thread as resolved. If you still need help with this issue or have any other questions about the WooCommerce plugin, please start a new thread.

    Thread Starter azalbert

    (@azalbert)

    Hi, i’ve not tested further more. We passed admin the user .
    When we got more time i will search where is the problem.

    We have the same problem. We can give a direct link to the coupon options to our shopmanagers for now. So, the shopmanager role does indeed have all necessary rights, it just won’t show the menu for the coupons. Will look at it again in the new year.

    This worked for me:

    add_filter( 'woocommerce_admin_features', function( $features ) {
        return array_values(
            array_filter( $features, function($feature) {
                return $feature !== 'marketing';
            } ) 
        );
    });

    Hi, azalbert, I have the same problem. Could you solve the problem?

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Marketing menu not showing for shop manager role’ is closed to new replies.