• Resolved codeagency

    (@7grafix)


    Hello,

    I have installed ATUM plugin, but some users with user role shop manager can not see the purchase price field.
    Only full admin user roles can see it.

    We also use a plugin admin menu editor pro to show/hide certain menu items to keep the menu clean for our customers.
    For ATUM plugin, we have set the menu items settings and addons invisible.
    By default, we hide all stuff our clients don’t need as we have a maintenance contract with our clients to take care of all technical part. So they don’t want to see those features and to prevent suddenly mistakes by deactivating/deleting plugins and things like that.

    Does this affect the visibility of the purchase pricing field or is this just a bug?

    Can we somehow override it, e.g. in functions.php, to make sure the ATUM purchasing price is visible to shop manager user role?

    Thanks for letting me know!

    BR,

    Fabio

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Salva Machi

    (@salvamb)

    Hi @7grafix,

    I don’t know if the plugin you are using can customize the user capabilities, but if not, you can use the “User Role Editor” plugin for that.

    In the “User Role Editor” you can set up several capabilities related to ATUM. This is a list of all the currently available:

    • edit_purchase_price
    • view_purchase_price
    • edit_purchase_order
    • read_purchase_order
    • read_purchase_order
    • delete_purchase_order
    • edit_purchase_orders
    • edit_others_purchase_orders
    • create_purchase_orders
    • delete_purchase_orders
    • delete_other_purchase_orders
    • edit_inventory_log
    • read_inventory_log
    • delete_inventory_log
    • edit_inventory_logs
    • edit_others_inventory_logs
    • create_inventory_logs
    • delete_inventory_logs
    • delete_other_inventory_logs
    • read_inbound_stock
    • edit_out_stock_threshold
    • edit_supplier
    • read_supplier
    • delete_supplier
    • edit_suppliers
    • edit_others_suppliers
    • publish_suppliers
    • read_private_suppliers
    • create_suppliers
    • delete_suppliers
    • delete_private_suppliers
    • delete_published_suppliers
    • delete_other_suppliers
    • edit_private_suppliers
    • edit_published_suppliers
    • view_admin_menu
    • view_admin_bar_menu
    • read_order_notes
    • create_order_notes
    • delete_order_notes
    • export_data
    • view_statistics

    Best Regards,
    Salva.

    • This reply was modified 5 years, 10 months ago by Salva Machi.
    Thread Starter codeagency

    (@7grafix)

    Hello Salva,

    Thanks for your feedback.
    I know I can change those settings with such plugin, my concern is why the user “shop manager” does not has permissions by default to use ATUM plugin?
    That doesn’t make any sense. The shop manager is by far the most relevant user that should manage anything inside a WooCommerce. They have permissions to update stock, sale price etc… but can not enter purchase price or create purchase orders with ATUM?
    That doesn’t make much sense in my opinion.

    I will make the changes with my permissions plugin I’m using, but I was hoping a more straight forward approach would come from ATUM.
    Basically you build a plugin for a shop owner for easier managing it’s stock, but basically all the features are in lockdown and only available for the admin user…

    Plugin Author Salva Machi

    (@salvamb)

    Hi codeagency,

    We didn’t assign all the ATUM capabilities by default because some users could not want to have them by default.
    The user roles are being used in multiple ways. So we decided to add them to the administrator and to give more flexibility for all the rest.

    Also, we’ve planned an add-on for ATUM that will be able to manage all the ATUM capabilities and will create other custom roles.

    Anyway, for the users who want to assign all the capabilities to other user roles than the administrator, we added a filter to do so. This is an example that should work for you:

    add_filter('atum/capabilities/admin_roles', function($roles) {
      $roles[] = get_role('shop_manager');
      return $roles;
    });

    Just add to your functions.php and all the ATUM capabilities will be added to the shop_manager too.

    Best Regards,
    Salva.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘purchasing price not visible for shop manager’ is closed to new replies.