• Resolved harun2024

    (@harun2024)


    I want to give my Woocommerce Shop Manager permission to manually update “Custom Fields” on the edit product screen, such as “total_sales”. Is this possible without making them a site admin? I have a user role editor, with all Woo permissions enabled (this seems to be the default). I’m not seeing any other permission that matches. Is there another plugin maybe?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for your question! By default, WooCommerce does not allow the Shop Manager role to edit “Custom Fields” like total_sales directly from the product edit screen. This capability is typically restricted to administrators. However, you can achieve this without making the Shop Manager a site admin by using additional tools or code.

    Since you already have a user role editor plugin, ensure that the Shop Manager role has the edit_post_meta and manage_woocommerce capabilities. These capabilities allow editing custom fields and managing WooCommerce products.

    If that does not help, you may need to use custom code to achieve this. However, please note that we do not provide support for customizations. If you need more in-depth support or want to consider professional assistance for customization, I can recommend?WooExperts?and?Codeable.io?as options for getting professional help. Alternatively, you can also ask your development questions in the??WooCommerce Community Slack?as custom code falls outside our usual?scope of support.

    Thank you

      Thread Starter harun2024

      (@harun2024)

      Thank you for your input. Sounds like this is a WordPress function, not a Woocommerce function. However, I’m not finding that edit_post_meta exists as a WordPress capability:

      Roles and Capabilities

      If there is a link to the cited information about edit_post_meta, I’d be pleased to look at it. Otherwise, I can continue to research a solution.

      Plugin Support Mahfuzur Rahman(woo-hc)

      (@mahfuzurwp)

      Hi @harun2024,

      The Shop Manager role already has the capability to edit custom fields on the product edit screen, including fields like “total_sales.” No additional settings or plugins are required.

      To enable this, ensure the user is assigned the Shop Manager role. To assign them the Shop Manager role, follow these steps:

      1. Go to your WordPress dashboard and navigate to Users > All Users.

      2. Find the user you want to assign the role to and click Edit under their name.

      3. In the Role dropdown, select Shop Manager.

      4. Scroll down and click Update User to save the changes.

      Once assigned, they should have the necessary permissions to update custom fields directly.

      You can learn more about the Shop Manager role and its capabilities here: https://woocommerce.com/document/roles-capabilities/#section-2

      Does this align with what you’re looking to achieve? If not, feel free to clarify, and we’ll be happy to assist further!

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