• Resolved phantasmix

    (@phantasmix)


    Shop Managers get this error message when trying to add a new coupon:
    Sorry, you are not allowed to access this page.

    We don’t have any coupon-related plugins. These are the only Woo plugins in use:
    – woocommerce
    – woocommerce paypal checkout
    – woocommerce sequential order number
    – facebook for woocommerce

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    I suppose that you use User Role Editor Pro with option “Activate “Create” capability for posts/pages/custom post types” turned ON.
    In this case go to “Users->User Role Editor”, select “Shop Manager” role and look if “create_coupons” capability from “Custom Post Types->Coupons” group is granted to “Shop Manager” role.
    Check another post types needed for your shop manager too.

    Thread Starter phantasmix

    (@phantasmix)

    Vladimir,
    for this particular website I’m using the free plugin version.

    And apologies, thought this would’ve been implied: all of the Woocommerce capabilities are turned on for the Shop Manager role. All 53 out of 53, including 17/17 Coupons capabilities.

    I didn’t quite understand the first part of your message: are you saying there should be something else turned on for them, like post creation? That is currently turned off.

    Thank you

    Plugin Author Vladimir Garagulya

    (@shinephp)

    I just got a similar error message at the test site with URE Pro, which forces WordPress to user ‘create_’ capability.
    If you don’t use URE Pro, but ‘create_coupons’ capability exists, may be some other plugin requires it. Try to grant it to the role.

    Thread Starter phantasmix

    (@phantasmix)

    Woocommerce itself requires a lot of the post/page publishing capabilities according to this list:
    https://github.com/woocommerce/woocommerce/blob/250fcc96a3ea4b1150eb3e94fa45e968ce4340aa/includes/class-wc-install.php#L942

    Just reverted the Shop Manager role to these and they’re now able to add coupons. I had some of the core caps turned off.

    Thank you for pointing me in the right direction, Vladimir.

    Thread Starter phantasmix

    (@phantasmix)

    Resolved

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shop Managers can’t add coupons’ is closed to new replies.